blob: f9562b3c4360af04a6379d6e6bf481c8b4b2d1fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if ! grep -q -E '^Seccomp:[[:blank:]]+0$' /proc/self/status; then
echo "Skipping autpkgptest as the test environment already applies a seccomp filter"
exit 77
fi
SRCDIR="$(pwd)"
mkdir "$AUTOPKGTEST_TMP/tests" "$AUTOPKGTEST_TMP/tools"
cp -a tests/. "$AUTOPKGTEST_TMP/tests/"
cd "$AUTOPKGTEST_TMP/tests"
# build tools needed for tests
for tool in scmp_api_level scmp_arch_detect scmp_sys_resolver; do
echo "Building $tool ..."
gcc -O2 -g "$SRCDIR/tools/$tool.c" "$SRCDIR/tools/util.c" -lseccomp -o ../tools/$tool
done
|