File: common

package info (click to toggle)
libseccomp 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,408 kB
  • sloc: ansic: 17,386; sh: 6,482; python: 1,656; makefile: 438
file content (15 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

LIBSECCOMP_TSTCFG_JOBS="$(echo "$DEB_BUILD_OPTIONS" | sed -n -e "s/^.*parallel=\([0-9]\+\).*$/\1/p")"
export LIBSECCOMP_TSTCFG_JOBS