Created
December 9, 2016 13:43
-
-
Save DuaelFr/049b411eb0a4766ae329ec41b8d57a36 to your computer and use it in GitHub Desktop.
Script to launch D8 tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RAND=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 32) | |
SQLITE="/mnt/ramdisk/d8test.sqlite.$RAND" | |
DBURL="sqlite://localhost//mnt/ramdisk/d8test.sqlite.BASE" | |
URL="http://d8test.sqlite" | |
CONC=6 | |
if [ $1 ]; then | |
if [ $1 == "group" ] & [ $2 ]; then | |
php ./core/scripts/run-tests.sh \ | |
--sqlite $SQLITE \ | |
--dburl $DBURL \ | |
--url $URL \ | |
--concurrency $CONC \ | |
--color \ | |
--verbose \ | |
--die-on-fail \ | |
"$2" | |
else | |
php ./core/scripts/run-tests.sh \ | |
--sqlite $SQLITE \ | |
--dburl $DBURL \ | |
--url $URL \ | |
--concurrency $CONC \ | |
--color \ | |
--verbose \ | |
--die-on-fail \ | |
--class "$1" | |
fi | |
else | |
php ./core/scripts/run-tests.sh \ | |
--sqlite $SQLITE \ | |
--dburl $DBURL \ | |
--url $URL \ | |
--concurrency $CONC \ | |
--color \ | |
--verbose \ | |
--die-on-fail \ | |
--all | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment