summaryrefslogtreecommitdiff
path: root/run-tests.sh
diff options
context:
space:
mode:
authorSimon Wisselink <wisskid@users.noreply.github.com>2022-09-22 14:31:49 +0200
committerGitHub <noreply@github.com>2022-09-22 14:31:49 +0200
commitea95e8b04750b3e52d0dfc6e201a19e5e385f298 (patch)
tree593d4ffb0f900a1ac3964a2ca2fc60799d88096a /run-tests.sh
parent474138fd7ee0519b68a7fb773fb5867bd856e242 (diff)
downloadsmarty-ea95e8b04750b3e52d0dfc6e201a19e5e385f298.tar.gz
smarty-ea95e8b04750b3e52d0dfc6e201a19e5e385f298.tar.bz2
smarty-ea95e8b04750b3e52d0dfc6e201a19e5e385f298.zip
Re-organize all testrunners to use the same script(s). (#812)
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh
new file mode 100755
index 00000000..ddcad01b
--- /dev/null
+++ b/run-tests.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+composer update
+
+php -r 'echo "\nPHP version " . phpversion() . ". ";';
+
+if [ -z $1 ];
+then
+ echo "Running all unit tests.\n"
+ php ./vendor/phpunit/phpunit/phpunit
+else
+ echo "Running all unit tests, except tests marked with @group $1.\n"
+ php ./vendor/phpunit/phpunit/phpunit --exclude-group $1
+fi \ No newline at end of file