From ca7e146078443bf763666ecf63268a733cdd0950 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 25 Mar 2015 01:18:58 +0100 Subject: [PATCH] Fix build with OBJDIR --- tests/tests.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index 580fd17..1c5cf12 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -16,6 +16,7 @@ #variables +[ -n "$OBJDIR" ] || OBJDIR="./" #executables DATE="date" @@ -29,8 +30,8 @@ _fail() shift echo -n "$test:" 1>&2 (echo - echo "Testing: ./$test" "$@" - "./$test" "$@") >> "$target" 2>&1 + echo "Testing: $OBJDIR$test" "$@" + "$OBJDIR$test" "$@") >> "$target" 2>&1 res=$? if [ $res -ne 0 ]; then echo " FAILED (error $res)" 1>&2 @@ -48,8 +49,8 @@ _test() shift echo -n "$test:" 1>&2 (echo - echo "Testing: ./$test" "$@" - "./$test" "$@") >> "$target" 2>&1 + echo "Testing: $OBJDIR$test" "$@" + "$OBJDIR$test" "$@") >> "$target" 2>&1 res=$? if [ $res -ne 0 ]; then echo " FAILED" 1>&2