Add details about running leak and bench tests

This commit is contained in:
Lovell Fuller 2014-10-20 15:54:44 +01:00
parent ca561daedf
commit a531b5917e
2 changed files with 32 additions and 5 deletions

View File

@ -5,7 +5,7 @@ node_js:
before_install: before_install:
- sudo add-apt-repository ppa:lyrasis/precise-backports -y - sudo add-apt-repository ppa:lyrasis/precise-backports -y
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq automake gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-turbo8-dev libpng12-dev libwebp-dev libtiff4-dev libexif-dev libxml2-dev swig graphicsmagick libmagick++-dev - sudo apt-get install -qq automake gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg-turbo8-dev libpng12-dev libwebp-dev libtiff4-dev libexif-dev libxml2-dev swig libmagick++-dev
- git clone https://github.com/jcupitt/libvips.git - git clone https://github.com/jcupitt/libvips.git
- cd libvips - cd libvips
- git checkout 7.38 - git checkout 7.38

View File

@ -465,21 +465,48 @@ var counters = sharp.counters(); // { queue: 2, process: 4 }
## Testing ## Testing
### Ubuntu 12.04 ### Functional tests
#### Ubuntu 12.04
[![Ubuntu 12.04 Build Status](https://travis-ci.org/lovell/sharp.png?branch=master)](https://travis-ci.org/lovell/sharp) [![Ubuntu 12.04 Build Status](https://travis-ci.org/lovell/sharp.png?branch=master)](https://travis-ci.org/lovell/sharp)
### Centos 6.5 #### Centos 6.5
[![Centos 6.5 Build Status](https://snap-ci.com/lovell/sharp/branch/master/build_image)](https://snap-ci.com/lovell/sharp/branch/master) [![Centos 6.5 Build Status](https://snap-ci.com/lovell/sharp/branch/master/build_image)](https://snap-ci.com/lovell/sharp/branch/master)
### It worked on my machine #### It worked on my machine
``` ```
npm test npm test
``` ```
Running the comparative performance tests requires _ImageMagick_ and _GraphicsMagick_. ### Memory leak tests
```
cd sharp/test/leak
./leak.sh
```
Requires _valgrind_:
```
brew install valgrind
```
```
sudo apt-get install -qq valgrind
```
### Benchmark tests
```
cd sharp/test/bench
npm install
npm test
```
Requires both _ImageMagick_ and _GraphicsMagick_:
``` ```
brew install imagemagick brew install imagemagick