From a531b5917ef7d68861fd697d61d6cf0d4f132ee1 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Mon, 20 Oct 2014 15:54:44 +0100 Subject: [PATCH] Add details about running leak and bench tests --- .travis.yml | 2 +- README.md | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index c539e130..ca30fbc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ node_js: before_install: - sudo add-apt-repository ppa:lyrasis/precise-backports -y - 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 - cd libvips - git checkout 7.38 diff --git a/README.md b/README.md index 4c63212b..df34988c 100755 --- a/README.md +++ b/README.md @@ -465,21 +465,48 @@ var counters = sharp.counters(); // { queue: 2, process: 4 } ## 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) -### 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) -### It worked on my machine +#### It worked on my machine ``` 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