blob: 5c421eae7e1bbe9627bf307cab25fce0db66d738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|