Skip to content

Commit

Permalink
Fix build with OBJDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
khorben committed Mar 25, 2015
1 parent 4084c92 commit ca7e146
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


#variables
[ -n "$OBJDIR" ] || OBJDIR="./"
#executables
DATE="date"

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ca7e146

Please sign in to comment.