File: run.sh

package info (click to toggle)
eztrace 2.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,012 kB
  • sloc: ansic: 37,703; sh: 1,246; cpp: 1,181; perl: 910; makefile: 738; fortran: 327; f90: 320; python: 124
file content (25 lines) | stat: -rwxr-xr-x 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
CUR_PATH=$(dirname  $(realpath $0))

if [ $# -gt 0 ]; then
    # if the script is invoked from make test, the binary is already compiled in CMAKE_BINARY_DI
    export BUILD_DIR="$1"
fi

source "$CUR_PATH/../test_utils/test_utils.sh"

check_dependencies "$OTF2_PRINT_PATH" || exit 1
check_module "pthread" || exit 1

# Building tests
if [ -z "$BUILD_DIR" ]; then
    check_compilation || exit 1
fi

nfailed=0
# Running test scripts
for test in $CUR_PATH/test_*.sh; do
    run_test "$test" || ((nfailed++))
done

exit $nfailed