Debian Codegraph @

debian/tests/testsuite

raw symbols SCIP
1 #!/bin/sh
2
3 set -eu
4 : Prepare environment
5 unset http_proxy
6 unset https_proxy
7 unset no_proxy
8 JOBS=$(echo ${DEB_BUILD_OPTIONS:-} | gawk 'BEGIN{f=0}match($0, /parallel=([0-9]+)/, m){f=1;print m[1]}END{if(f==0) print 1}')
9 EXCLUDED_TESTS=$(debian/rules excluded-tests)
10 if [ "$(dpkg-architecture -qDEB_HOST_ARCH)" = i386 ]
11 then
12 NO_64BIT_TIME=ON
13 else
14 NO_64BIT_TIME=OFF
15 fi
16 set -x
17 : Build and run test suite
18 cmake -DCMake_TEST_NO_64BIT_TIME:BOOL=${NO_64BIT_TIME} -DCMake_TEST_EXTERNAL_CMAKE=/usr/bin -S . -B "$AUTOPKGTEST_TMP" --fresh
19 cmake --build "$AUTOPKGTEST_TMP" --verbose --parallel=$JOBS
20 ctest --output-on-failure --parallel=$JOBS -E "(${EXCLUDED_TESTS})" --test-dir "$AUTOPKGTEST_TMP"
21