Debian Codegraph @

debian/tests/all

raw
1 #!/bin/sh
2 # autopkgtest check: Build and run a programs against benchmark
3 # (C) 2017
4 # Author: Anton Gladky <[email protected]>
5
6 set -e
7 CURDIR=$(pwd)
8
9 for TEST in hello classic epoch_shift example1 example2 example3 example4 ; do
10 echo Test: $TEST
11 WORKDIR=$(mktemp -d)
12 echo $WORKDIR
13 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
14 cd $CURDIR
15 cp -r examples/$TEST.cc $WORKDIR/
16 cd $WORKDIR
17
18 g++ $TEST.cc -o test -lcctz
19 echo "build: OK"
20 [ -x test ]
21 ./test
22 echo "run: OK"
23 done