debian/tests/testbuild
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | scriptdir=${0%/*} |
| 4 | |
| 5 | for t in "${@}"; do |
| 6 | echo "================= building ${t} ====================" |
| 7 | make -C "${scriptdir}" "${t}" |
| 8 | if [ -z "${DEB_HOST_GNU_TYPE:-}" ] && [ -x "${scriptdir}/${t}" ]; then |
| 9 | echo "----------------- running ${t} ---------------------" |
| 10 | "${scriptdir}/${t}" |
| 11 | else |
| 12 | echo "cross-build detected: skip running ${t}" |
| 13 | fi |
| 14 | done |
| 15 | |
| 16 |