Debian Codegraph @

debian/tests/compile-example-testcwidget

raw
1 #!/bin/sh
2
3 # Author: Manuel A. Fernandez Montecelo <[email protected]>
4 #
5 # autopkgtest check: Build and run a program against the library, to verify that
6 # the headers and pkg-config file are installed correctly
7
8
9 set -e
10
11 WORKDIR=$(mktemp -d)
12 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
13 cd $WORKDIR
14
15 SRCFILE=testcwidget.cc
16 BINFILE=testcwidget
17
18 cp /usr/share/doc/libcwidget-dev/examples/$SRCFILE .
19
20 g++ -o $BINFILE $SRCFILE `pkg-config --cflags --libs cwidget` -I /usr/include/cwidget
21 echo "build: OK"
22
23 [ -x $BINFILE ]
24 # interactive, cannot invoke and close from command line
25 #./$BINFILE
26 echo "run: OK"