summaryrefslogtreecommitdiff
path: root/tests/replays/import-replay.sh
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-04-25 14:43:52 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-04-25 14:43:52 +0200
commit5c957c0c8e928cbe64eb8a84733d649fd32642ef (patch)
tree21cdf9912cb83f6243006cf9b466e91fb196a711 /tests/replays/import-replay.sh
parent6a5cc64a1778fab68ab02a9f3314f62471c8d35c (diff)
Arranged the types to start writing the replay based property test
Diffstat (limited to 'tests/replays/import-replay.sh')
-rwxr-xr-xtests/replays/import-replay.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/replays/import-replay.sh b/tests/replays/import-replay.sh
new file mode 100755
index 0000000..034efed
--- /dev/null
+++ b/tests/replays/import-replay.sh
@@ -0,0 +1,12 @@
+#/bin/sh
+
+# $1: The match-log directory
+# Should be run from the target directory
+
+logname=$(basename $1)
+
+mkdir $logname
+cp $1/A*.csv $logname/A-log.csv
+cp $1/B*.csv $logname/B-log.csv
+cp $1/Round\ 001/A*/JsonMap.json $logname/A-init.json
+cp $1/Round\ 001/B*/JsonMap.json $logname/B-init.json