Debian Codegraph @

debian/tests/00-test-integration

raw
1 #!/bin/sh
2
3 exec 2>&1
4
5 set -xe
6
7 # NOTE: called by either 00-test-integration.clang or 00-test-integration.gcc
8
9 SOURCE_DIR=$PWD
10 BUILD_DIR=$AUTOPKGTEST_TMP/build-test-integration
11
12 CTEST_OPTIONS="--timeout 2400 --repeat until-pass:5 --output-on-failure"
13
14 cmake -GNinja -S $SOURCE_DIR/test/integration/ -B $BUILD_DIR \
15 -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
16 -DCMAKE_BUILD_TYPE=Release
17
18 cmake --build $BUILD_DIR
19
20 ctest $CTEST_OPTIONS -j1 --test-dir $BUILD_DIR