2017-06-08 08:28:22 +00:00
|
|
|
#!/bin/bash
|
2017-03-22 13:19:29 +00:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2017-06-08 08:28:22 +00:00
|
|
|
if [ -n "$TOOZ_TEST_DRIVERS" ]
|
|
|
|
then
|
|
|
|
IFS=","
|
|
|
|
for TOOZ_TEST_DRIVER in $TOOZ_TEST_DRIVERS
|
|
|
|
do
|
|
|
|
IFS=" "
|
|
|
|
TOOZ_TEST_DRIVER=(${TOOZ_TEST_DRIVER})
|
|
|
|
SETUP_ENV_SCRIPT="./setup-${TOOZ_TEST_DRIVER[0]}-env.sh"
|
|
|
|
[ -x $SETUP_ENV_SCRIPT ] || unset SETUP_ENV_SCRIPT
|
|
|
|
$SETUP_ENV_SCRIPT pifpaf -e TOOZ_TEST run "${TOOZ_TEST_DRIVER[@]}" -- $*
|
|
|
|
done
|
|
|
|
unset IFS
|
|
|
|
else
|
|
|
|
for d in $TOOZ_TEST_URLS
|
|
|
|
do
|
|
|
|
TOOZ_TEST_URL=$d $*
|
|
|
|
done
|
|
|
|
fi
|