Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 pkg="seaview"
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
15 gunzip -r *
16
17 seaview -build_tree -distance K2P -o tree.ph example.nxs
18
19 # This requires PDF support
20 touch test_status.log
21 timeout 10s seaview -plotonly -svg tree.ph 2> test_status.log || true
22
23 # Check if any stderr is logged into the log file
24 if [ `cat test_status.log | wc -l` != 0 ]
25 then
26 echo 'Test2 failed, printing error log'
27 cat test_status.log
28 exit 1
29 fi
30
31 echo "PASS"