-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunTest.sh
More file actions
24 lines (20 loc) · 1016 Bytes
/
runTest.sh
File metadata and controls
24 lines (20 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
source tests/testConfig/gdl2_kriegTTT_4x4_cheat.txt
PARSERESULTS=true
for ((i=$TESTSTARTNUM ; i < $TESTENDNUM ; i++));
do
match_id_temp="${MATCH_ID}_${i}"
if [ "$NUM_ROLES" == 3 ]; then
java -jar gamecontroller-cli.jar $match_id_temp $GAMEFILE $START_CLOCK $PLAY_CLOCK $GDL_VERSION -$PLAYER_NAME_1 $ROLE_ID_1 -$PLAYER_NAME_2 $ROLE_ID_2 -$PLAYER_NAME_3 $ROLE_ID_3 -printxml $OUTPUT_DIR $STYLESHEET
else
java -jar gamecontroller-cli.jar $match_id_temp $GAMEFILE $START_CLOCK $PLAY_CLOCK $GDL_VERSION -$PLAYER_NAME_1 $ROLE_ID_1 -$PLAYER_NAME_2 $ROLE_ID_2 -printxml $OUTPUT_DIR $STYLESHEET
fi
done
if [ "$PARSERESULTS" == true ]; then
if [ "$GDL_VERSION" == 1 ]; then
python tests/testAgent/parseXML.py $OUTPUT_DIR "${MATCH_ID}_" $TESTSTARTNUM $TESTENDNUM $GAMENAME $GDL_VERSION $PLAY_CLOCK
else
python tests/testAgent/parseXML.py $OUTPUT_DIR "${MATCH_ID}_" $TESTSTARTNUM $TESTENDNUM $GAMENAME $GDL_VERSION $PLAY_CLOCK $ROLE_NAME_1
fi
fi
$SHELL