diff options
Diffstat (limited to 'debian/tests/build')
-rw-r--r-- | debian/tests/build | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/debian/tests/build b/debian/tests/build index b23e556..01b1248 100644 --- a/debian/tests/build +++ b/debian/tests/build @@ -1 +1,12 @@ -#!/bin/true +#!/bin/sh + +set -e + +CPUS=$(getconf _NPROCESSORS_ONLN) +case "$CPUS" in + [0-9]|[0-9][0-9]|[0-9][0-9][0-9]) ;; + *) CPUS=1 +esac + +set -x +DEB_BUILD_OPTIONS="parallel=$CPUS nohppa nomult nocross" dpkg-buildpackage -d -B --no-sign |