File: libknet

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 (19 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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 libknet/tests/Makefile.in libknet/tests/Makefile

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

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

exit $ret