| 1 | #!/bin/sh |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | . debian/tests/common |
| 6 | |
| 7 | # manually build necessary files against the installed libseccomp |
| 8 | |
| 9 | # build live tests |
| 10 | for filename in *-live-*.tests; do |
| 11 | testname=$(echo "$filename" | cut -f 1 -d '.') |
| 12 | echo "Building $testname ..." |
| 13 | gcc -O2 -g "${testname}.c" util.c -pthread -lseccomp -o "$testname" |
| 14 | done |
| 15 | |
| 16 | echo "Running test suite ..." |
| 17 | ./regression -T live |