File: libnozzle

package info (click to toggle)
kronosnet 1.33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,092 kB
  • sloc: ansic: 25,419; sh: 5,295; makefile: 666
file content (22 lines) | stat: -rwxr-xr-x 815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -ex

DEB_HOST_GNU_TYPE=$(dpkg-architecture -q DEB_HOST_GNU_TYPE)
PKGCONF=$DEB_HOST_GNU_TYPE-pkgconf

# Work around us carrying upstream bf929fc3 as a Debian patch, which
# touches configure.ac (otherwise make tries to remake the build system):
touch aclocal.m4 configure config.status libnozzle/tests/Makefile.in libnozzle/tests/Makefile

mkdir -p /dev/net
[ -c /dev/net/tun ] || mknod -m666 /dev/net/tun c 10 200

# api-test-coverage would need a build, so call check-TESTS, not check:
make LIBS="$(${PKGCONF} --libs libnozzle) \$(PTHREAD_LIBS) \$(libnl_LIBS)" \
  VERBOSE=1 -C libnozzle/tests all check-TESTS || ret=$?

if [ "$AUTOPKGTEST_ARTIFACTS" ]; then
    mkdir "$AUTOPKGTEST_ARTIFACTS/libnozzle"
    mv libnozzle/tests/*.log libnozzle/tests/*.trs "$AUTOPKGTEST_ARTIFACTS/libnozzle"
fi

exit $ret