Debian Codegraph @

debian/tests/run-test

raw
1 #!/bin/bash
2
3
4
5 set -e
6 pkg=libahp-xc
7 CUR_DIR=`pwd`
8 export LC_ALL=C.UTF-8
9
10 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
11 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
12 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
13 fi
14
15 cp -a ${CUR_DIR}/debian/tests/source/* "${AUTOPKGTEST_TMP}"
16 cd "${AUTOPKGTEST_TMP}"
17
18 echo "Compiling and linking ..."
19 gcc -g -Wall test-lib.c -lahp_gt -o test-lib
20
21 echo "Running test ..."
22 echo -e " Test 1" ./test-lib
23 echo -e " PASS"
24