3 # Build directory (allowing flexible out-of-tree builds).
6 # Constants used in multiple scenarios.
9 # Find script directory and load helper functions.
10 scriptdir
=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
11 . ${scriptdir}/shared_test_functions.sh
13 # We need a ${bindir}.
14 if [ -z ${bindir} ]; then
15 printf "Warning
: Scrypt binary directory not given.
\n"
16 printf "Attempting to use default values
for in-source-tree build.
\n"
20 # Find system scrypt, and ensure it supports -P.
21 system_scrypt=$( find_system scrypt enc -P )
23 # Check for optional valgrind.
24 check_optional_valgrind
26 # Clean up previous directories, and create new ones.
29 # Generate valgrind suppression file if it is required. Must be
30 # done after preparing directories.
31 ensure_valgrind_suppression ${bindir}/tests/valgrind/potential-memleaks
33 # Run the test scenarios; this will exit on the first failure.
34 run_scenarios ${scriptdir}/??-*.sh