diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-07-25 20:04:16 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-07-25 20:04:16 +0200 |
commit | f6bfb482a32543deed925b127c972a7c258df4a1 (patch) | |
tree | 2298e43e7f44e0683e1eeec3e8cfd6781072f07a /test | |
parent | 8d87641558a7e0ee53b03e325614532aa686e01b (diff) |
Strip the .sh extension from the libapt testrunner and
make it a bit more robust against calling from outside
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 |