Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 pkg="libparasail-dev"
5
6 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
7 AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
8 trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
9 fi
10
11 cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
12
13 cd $AUTOPKGTEST_TMP
14 gunzip -r *
15
16 for testfile in *.cpp; do
17 echo "BEGIN TEST $testfile"
18 g++ $testfile -Wall -lparasail -lm -o testcompiled
19 [ -s testcompiled ]
20 [ -x testcompiled ]
21 rm testcompiled
22 echo "Test for $testfile passes!"
23 echo "=========================="
24 done