2011-11-08 23:25:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
EXECUTOR_NUMBER=$1
|
|
|
|
ADAPTER=$2
|
2011-11-10 19:43:41 +00:00
|
|
|
RC=$3
|
2011-11-08 23:25:12 +00:00
|
|
|
|
|
|
|
function usage() {
|
|
|
|
echo "Usage: $0 - Run a test"
|
|
|
|
echo ""
|
2011-11-10 19:43:41 +00:00
|
|
|
echo "$0 [EXECUTOR_NUMBER] [ADAPTER] [RC (optional)]"
|
2011-11-08 23:25:12 +00:00
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
# Validate inputs
|
|
|
|
if [[ "$EXECUTOR_NUMBER" = "" || "$ADAPTER" = "" ]]; then
|
|
|
|
usage
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Execute configuration script
|
2011-11-10 19:43:41 +00:00
|
|
|
cd adapters && ./$ADAPTER.sh $EXECUTOR_NUMBER $ADAPTER "$RC"
|