summaryrefslogtreecommitdiff
path: root/2019-worms/tests/import-replay.sh
diff options
context:
space:
mode:
Diffstat (limited to '2019-worms/tests/import-replay.sh')
-rwxr-xr-x2019-worms/tests/import-replay.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/2019-worms/tests/import-replay.sh b/2019-worms/tests/import-replay.sh
new file mode 100755
index 0000000..216c235
--- /dev/null
+++ b/2019-worms/tests/import-replay.sh
@@ -0,0 +1,12 @@
+#/bin/sh
+
+# $1: The match-log directory
+# Should be run from the tests directory.
+
+logname=$(basename $1)
+
+mkdir replays/$logname
+cp $1/A*.csv replays/$logname/A-log.csv
+cp $1/B*.csv replays/$logname/B-log.csv
+cp $1/Round\ 001/A*/JsonMap.json replays/$logname/A-init.json
+cp $1/Round\ 001/B*/JsonMap.json replays/$logname/B-init.json