diff options
Diffstat (limited to 'autotest-external.sh')
-rwxr-xr-x | autotest-external.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/autotest-external.sh b/autotest-external.sh index bc40e2474cd..4111aeeca20 100755 --- a/autotest-external.sh +++ b/autotest-external.sh @@ -1,11 +1,8 @@ #!/usr/bin/env bash # -# ownCloud -# -# @author Thomas Müller -# @author Morris Jobke -# @copyright 2012-2015 Thomas Müller thomas.mueller@tmit.eu -# @copyright 2014 Morris Jobke hey@morrisjobke.de +# SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors +# SPDX-FileCopyrightText: 2014-2016 ownCloud, Inc. +# SPDX-License-Identifier: AGPL-3.0-only # #$EXECUTOR_NUMBER is set by Jenkins and allows us to run autotest in parallel @@ -31,8 +28,13 @@ function print_syntax { } if ! [ -x "$PHPUNIT" ]; then - echo "phpunit executable not found, please install phpunit version >= 4.8" >&2 - exit 3 + echo "phpunit executable not found, trying local one from build/integration" >&2 + if [ -x "$PWD/build/integration/vendor/phpunit/phpunit/phpunit" ]; then + PHPUNIT="$PWD/build/integration/vendor/phpunit/phpunit/phpunit" + else + echo "phpunit executable not found, please install phpunit version >= 9.0" >&2 + exit 3 + fi fi PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2) |