| 1 |
SRCDIR="$(pwd)" |
| 2 |
|
| 3 |
mkdir "$AUTOPKGTEST_TMP/tests" "$AUTOPKGTEST_TMP/tools" |
| 4 |
cp -a tests/. "$AUTOPKGTEST_TMP/tests/" |
| 5 |
|
| 6 |
cd "$AUTOPKGTEST_TMP/tests" |
| 7 |
|
| 8 |
# build tools needed for tests |
| 9 |
for tool in scmp_api_level scmp_arch_detect scmp_sys_resolver; do |
| 10 |
echo "Building $tool ..." |
| 11 |
gcc -O2 -g "$SRCDIR/tools/$tool.c" "$SRCDIR/tools/util.c" -lseccomp -o ../tools/$tool |
| 12 |
done |
| 13 |
|
| 14 |
LIBSECCOMP_TSTCFG_JOBS="$(echo "$DEB_BUILD_OPTIONS" | sed -n -e "s/^.*parallel=\([0-9]\+\).*$/\1/p")" |
| 15 |
export LIBSECCOMP_TSTCFG_JOBS |