Note that in the second case, the path is relative to the test case directory.
An absolute path may also be used in both cases.
+Testing installed binaries instead of built
+===========================================
+
+To run the extended testsuite using the systemd installed on the system instead
+of the systemd from a build, use the NO_BUILD=1:
+
+$ sudo NO_BUILD=1 test/run-integration-tests
+
Configuration variables
=======================
#!/usr/bin/env bash
set -e
-BUILD_DIR="$($(dirname "$0")/../tools/find-build-dir.sh)"
+if [ "$NO_BUILD" ]; then
+ BUILD_DIR=""
+elif BUILD_DIR="$($(dirname "$0")/../tools/find-build-dir.sh)"; then
+ ninja -C "$BUILD_DIR"
+else
+ echo "No build found, please set BUILD_DIR or NO_BUILD" >&2
+ exit 1
+fi
+
if [ $# -gt 0 ]; then
args="$@"
else