File: testsuite.sh

package info (click to toggle)
iproute2 6.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,180 kB
  • sloc: ansic: 124,139; sh: 1,313; cpp: 885; makefile: 682; yacc: 421; lex: 145; python: 43
file content (16 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (5)
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