X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/61fef4ddbec8f70bb9e213ac0491d4e6cfefab30..2ed62ba6abcad809d1898a40950f86217af73812:/test/integration/run-tests diff --git a/test/integration/run-tests b/test/integration/run-tests index e90b4b755..fad249994 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -1,10 +1,4 @@ #!/bin/sh - -TESTDIR="$(readlink -f "$(dirname "$0")")" -. "$TESTDIR/framework" - -find_project_binary_dir - set -e TESTTORUN='' @@ -95,7 +89,11 @@ if [ -n "$APT_TEST_JOBS" ]; then if [ "$MSGCOLOR" != 'NO' ]; then export MSGCOLOR='ALWAYS' fi - exec parallel -j "$APT_TEST_JOBS" "./$(basename "$0")" -- $(echo "$TESTLIST") + parallel=parallel + if command -v moreutils-parallel >/dev/null 2>&1; then + parallel=moreutils-parallel + fi + exec $parallel -j "$APT_TEST_JOBS" "./$(basename "$0")" -- $(echo "$TESTLIST") fi TOTAL="$(echo "$TESTLIST" | wc -l)" for testcase in $TESTLIST; do