aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/run-tests-for-all-php-versions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/run-tests-for-all-php-versions.sh')
-rwxr-xr-xvendor/smarty/smarty/run-tests-for-all-php-versions.sh51
1 files changed, 10 insertions, 41 deletions
diff --git a/vendor/smarty/smarty/run-tests-for-all-php-versions.sh b/vendor/smarty/smarty/run-tests-for-all-php-versions.sh
index 6ecd9afbc..b64f01e40 100755
--- a/vendor/smarty/smarty/run-tests-for-all-php-versions.sh
+++ b/vendor/smarty/smarty/run-tests-for-all-php-versions.sh
@@ -1,44 +1,13 @@
#!/bin/bash
-Help()
-{
- # Display Help
- echo "Runs PHPUnit tests for all PHP versions supported by this version of Smarty."
- echo
- echo "Syntax: $0 [-e|h]"
- echo "options:"
- echo "e Exclude a group of unit tests, e.g. -e 'slow'"
- echo "h Print this Help."
- echo
-}
-
-Exclude=""
-
-# Get the options
-while getopts ":he:" option; do
- case $option in
- e) # Exclude
- echo $OPTARG
- Exclude=$OPTARG;;
- h) # display Help
- Help
- exit;;
- \?) # Invalid option
- echo "Error: Invalid option"
- exit;;
- esac
-done
-
-if [ -z $Exclude ];
-then
- Entrypoint="./run-tests.sh"
-else
- Entrypoint="./run-tests.sh $Exclude"
-fi
# Runs tests for all supported PHP versions
-docker-compose run --entrypoint "$Entrypoint" php71 && \
-docker-compose run --entrypoint "$Entrypoint" php72 && \
-docker-compose run --entrypoint "$Entrypoint" php73 && \
-docker-compose run --entrypoint "$Entrypoint" php74 && \
-docker-compose run --entrypoint "$Entrypoint" php80 && \
-docker-compose run --entrypoint "$Entrypoint" php81
+# Usage examples:
+# - ./run-tests-for-all-php-versions.sh --group 20221124
+# - ./run-tests-for-all-php-versions.sh --exclude-group slow
+
+docker-compose run php71 ./run-tests.sh $@ && \
+docker-compose run php72 ./run-tests.sh $@ && \
+docker-compose run php73 ./run-tests.sh $@ && \
+docker-compose run php74 ./run-tests.sh $@ && \
+docker-compose run php80 ./run-tests.sh $@ && \
+docker-compose run php81 ./run-tests.sh $@