diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/tests/testsuite.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/tests/testsuite.sh b/debian/tests/testsuite.sh new file mode 100755 index 0000000..5c421ea --- /dev/null +++ b/debian/tests/testsuite.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -uxe + +if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then + vars="CC=$DEB_HOST_GNU_TYPE-gcc LD=$DEB_HOST_GNU_TYPE-ld" +else + vars="" +fi + +# copy built-tree to tmp test dir to gurantee no files are left behind +dir=$(mktemp -d) +cp -a . "${dir}" +cd "${dir}" + +# build and run tests +make $vars check |