diff options
author | Sam Bingner <sam@bingner.com> | 2018-10-12 16:38:39 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-10-12 16:38:39 -1000 |
commit | ab753fcde40b28248172c552ce2b1f23eddfc9f4 (patch) | |
tree | 2ff2724ef77294878f91b528843a0f0b6dba5462 /data/cwidget/debian/tests | |
parent | 295030d5719c3af352cfc5394b8ce13e3a1e0fb9 (diff) |
Update more packages
Diffstat (limited to 'data/cwidget/debian/tests')
-rw-r--r-- | data/cwidget/debian/tests/compile-example-testcwidget | 27 | ||||
-rw-r--r-- | data/cwidget/debian/tests/control | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/data/cwidget/debian/tests/compile-example-testcwidget b/data/cwidget/debian/tests/compile-example-testcwidget new file mode 100644 index 000000000..a1a5692de --- /dev/null +++ b/data/cwidget/debian/tests/compile-example-testcwidget @@ -0,0 +1,27 @@ +#!/bin/sh + +# Author: Manuel A. Fernandez Montecelo <mafm@debian.org> +# +# autopkgtest check: Build and run a program against the library, to verify that +# the headers and pkg-config file are installed correctly + + +set -e + +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM +cd $WORKDIR + +SRCFILE=testcwidget.cc +SRCFILEGZ=testcwidget.cc.gz +BINFILE=testcwidget + +gunzip -c /usr/share/doc/libcwidget-dev/examples/$SRCFILEGZ > $SRCFILE + +g++ -o $BINFILE $SRCFILE -std=c++11 `pkg-config --cflags --libs cwidget` -I /usr/include/cwidget +echo "build: OK" + +[ -x $BINFILE ] +# interactive, cannot invoke and close from command line +#./$BINFILE +echo "run: OK" diff --git a/data/cwidget/debian/tests/control b/data/cwidget/debian/tests/control new file mode 100644 index 000000000..14cc57793 --- /dev/null +++ b/data/cwidget/debian/tests/control @@ -0,0 +1,2 @@ +Tests: compile-example-testcwidget +Depends: libcwidget-dev, build-essential |