1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/bin/sh
set -e
# Allow outside-of-autopkgtest runs
if [ -z "$AUTOPKGTEST_TMP" ]; then
AUTOPKGTEST_TMP=$(mktemp -d)
fi
cp -r ./ $AUTOPKGTEST_TMP/source
cd $AUTOPKGTEST_TMP/source
echo "Run standard ./configure"
./configure
cd testsuite
make testpappl.o pwg-driver.o
LIBS="$(pkg-config --libs pappl) -lpthread -lcups"
echo "Build testpappl tests against dynamic libpappl"
cc -o ./testpappl ./testpappl.o ./pwg-driver.o ${LIBS}
# Prepare the tests' playground
mkdir -p testpappl.output
# This needs to _also_ be tested in autopkgtest, for avahi-daemon tests
./testpappl -c -l testpappl.log -L debug -o testpappl.output -t all
cd -
cd -
|