| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -eu |
| 4 | |
| 5 | . debian/tests/commonscip-shell source . . `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=$(echoscip-shell system . . echo. "$filename" | cutscip-shell system . . cut. -f 1 -d '.') |
| 12 | echoscip-shell system . . echo. "Building $testname ..." |
| 13 | gccscip-shell system . . gcc. -O2 -g "${testname}.c" util.c -pthread -lseccomp -o "$testname" |
| 14 | done |
| 15 | |
| 16 | echoscip-shell system . . echo. "Running test suite ..." |
| 17 | ./regression -T live |