From f6bfb482a32543deed925b127c972a7c258df4a1 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 25 Jul 2010 20:04:16 +0200 Subject: [PATCH] Strip the .sh extension from the libapt testrunner and make it a bit more robust against calling from outside --- test/libapt/{run-tests.sh => run-tests} | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename test/libapt/{run-tests.sh => run-tests} (89%) diff --git a/test/libapt/run-tests.sh b/test/libapt/run-tests similarity index 89% rename from test/libapt/run-tests.sh rename to 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 -- 2.47.2