diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/libapt/run-tests (renamed from test/libapt/run-tests.sh) | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/libapt/run-tests.sh b/test/libapt/run-tests index cb7769e4a..0f55f7386 100755 --- a/test/libapt/run-tests.sh +++ b/test/libapt/run-tests @@ -1,11 +1,12 @@ #!/bin/sh set -e -echo "Compiling the tests ..." -test -d '../../build/obj/test/libapt/' || mkdir -p '../../build/obj/test/libapt/' -make -echo "Running all testcases ..." -LDPATH=$(pwd)/../../build/bin +local DIR=$(readlink -f $(dirname $0)) +echo "Compiling the tests …" +test -d "$DIR/../../build/obj/test/libapt/" || mkdir -p "$DIR/../../build/obj/test/libapt/" +$(cd $DIR && make) +echo "Running all testcases …" +LDPATH="$DIR/../../build/bin" EXT="_libapt_test" for testapp in $(ls ${LDPATH}/*$EXT) do |