From 37380cba4379897674d0ff8c5115f10691d4474a Mon Sep 17 00:00:00 2001 From: Dan Dedrick Date: Wed, 16 Nov 2016 16:10:01 -0500 Subject: tests: Fix run make check out of place When building out of the place the executables are not in the same location as the scripts being called. This means that the test scripts need to be able to handle the executables being the in the current directory and the script/source files being in a different directory. This will work now work with both building in place and building out of place and can be tested as follows: /autogen.sh && mkdir -p build && cd build && ../configure && make check --- tests/internals/test_internals_valgrind.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/internals/test_internals_valgrind.sh') diff --git a/tests/internals/test_internals_valgrind.sh b/tests/internals/test_internals_valgrind.sh index a84c664..4511ccd 100755 --- a/tests/internals/test_internals_valgrind.sh +++ b/tests/internals/test_internals_valgrind.sh @@ -1,3 +1,5 @@ #!/bin/sh -cd `dirname "$0"` +if [ ! -x ./test_internals ]; then + cd `dirname "$0"` +fi valgrind --error-exitcode=100 ./test_internals -- cgit v1.2.3