File: testsuite

package info (click to toggle)
pappl 1.3.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,652 kB
  • sloc: ansic: 48,688; sh: 3,313; makefile: 345; objc: 240
file content (31 lines) | stat: -rwxr-xr-x 649 bytes parent folder | download | duplicates (2)
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 -