summaryrefslogtreecommitdiff
path: root/test/integration/run-tests
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-10 14:16:52 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-10 16:17:19 +0200
commit61fef4ddbec8f70bb9e213ac0491d4e6cfefab30 (patch)
tree5c27cbf2af240677949568c0e1ec34a79a9a4773 /test/integration/run-tests
parent4d22a5704a0ebe19a5fa2524ac90a26c824325de (diff)
test: Automatically discover CMake build directory
Look at the project root, and all directories directly below it and pick the directory with the newest CMakeCache.txt file. Gbp-Dch: ignore
Diffstat (limited to 'test/integration/run-tests')
-rwxr-xr-xtest/integration/run-tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/run-tests b/test/integration/run-tests
index 78f24fbaf..e90b4b755 100755
--- a/test/integration/run-tests
+++ b/test/integration/run-tests
@@ -1,4 +1,10 @@
#!/bin/sh
+
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
+
+find_project_binary_dir
+
set -e
TESTTORUN=''