Created
June 22, 2016 13:43
-
-
Save DuaelFr/4de7508cb7b5d9c337140e0b4bb35143 to your computer and use it in GitHub Desktop.
Launch tests on D8 using cli
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 \ | |
"$2" | |
else | |
php ./core/scripts/run-tests.sh \ | |
--sqlite $SQLITE \ | |
--dburl $DBURL \ | |
--url $URL \ | |
--concurrency $CONC \ | |
--color \ | |
--verbose \ | |
--class "$1" | |
fi | |
else | |
php ./core/scripts/run-tests.sh \ | |
--sqlite $SQLITE \ | |
--dburl $DBURL \ | |
--url $URL \ | |
--concurrency $CONC \ | |
--color \ | |
--verbose \ | |
--all | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment