diff options
-rwxr-xr-x | dist | 3 | ||||
-rwxr-xr-x | go | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -1,11 +1,12 @@ #!/bin/sh +set -e # SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net # Licence for this file: LGPL v2.1 See LICENCE for details. # Makes the distribution tarball rm -rf Release -./go +./go -j4 cd Release make package_source gunzip *.tar.gz @@ -2,6 +2,8 @@ # SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net # Licence for this file: LGPL v2.1 See LICENCE for details. +case $1 in -j*) j=$1; shift;; esac # support -jX for parallel build/test + build=$1 test x$build = x && build=Release @@ -11,5 +13,5 @@ mkdir -p $build cd $build cmake -DCMAKE_BUILD_TYPE=$build .. && - make && - (make test || echo "FAILURE details in $build/Testing/Temporary/LastTest.log") + make $j && + (ctest $j || echo "FAILURE details in $build/Testing/Temporary/LastTest.log") |