add MapFile::serialize
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+78
@@ -0,0 +1,78 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
EXECUTABLE="$1"
|
||||
if [ -z "$EXECUTABLE" ]; then
|
||||
EXECUTABLE="./newserv"
|
||||
fi
|
||||
|
||||
echo "... challenge-ep1/c88101-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88101-gc.dat ./tests/c88101-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88101-gc-00000000.dat ./tests/c88101-gc-00000000.dat
|
||||
rm ./tests/c88101-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88102-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88102-gc.dat ./tests/c88102-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88102-gc-00000000.dat ./tests/c88102-gc-00000000.dat
|
||||
rm ./tests/c88102-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88103-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88103-gc.dat ./tests/c88103-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88103-gc-00000000.dat ./tests/c88103-gc-00000000.dat
|
||||
rm ./tests/c88103-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88104-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88104-gc.dat ./tests/c88104-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88104-gc-00000000.dat ./tests/c88104-gc-00000000.dat
|
||||
rm ./tests/c88104-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88105-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88105-gc.dat ./tests/c88105-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88105-gc-00000000.dat ./tests/c88105-gc-00000000.dat
|
||||
rm ./tests/c88105-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88106-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88106-gc.dat ./tests/c88106-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88106-gc-00000000.dat ./tests/c88106-gc-00000000.dat
|
||||
rm ./tests/c88106-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88107-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88107-gc.dat ./tests/c88107-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88107-gc-00000000.dat ./tests/c88107-gc-00000000.dat
|
||||
rm ./tests/c88107-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88108-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88108-gc.dat ./tests/c88108-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88108-gc-00000000.dat ./tests/c88108-gc-00000000.dat
|
||||
rm ./tests/c88108-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep1/c88109-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep1/c88109-gc.dat ./tests/c88109-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/c88109-gc-00000000.dat ./tests/c88109-gc-00000000.dat
|
||||
rm ./tests/c88109-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep2/d88201-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep2/d88201-gc.dat ./tests/d88201-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/d88201-gc-00000000.dat ./tests/d88201-gc-00000000.dat
|
||||
rm ./tests/d88201-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep2/d88202-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep2/d88202-gc.dat ./tests/d88202-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/d88202-gc-00000000.dat ./tests/d88202-gc-00000000.dat
|
||||
rm ./tests/d88202-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep2/d88203-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep2/d88203-gc.dat ./tests/d88203-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/d88203-gc-00000000.dat ./tests/d88203-gc-00000000.dat
|
||||
rm ./tests/d88203-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep2/d88204-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep2/d88204-gc.dat ./tests/d88204-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/d88204-gc-00000000.dat ./tests/d88204-gc-00000000.dat
|
||||
rm ./tests/d88204-gc-00000000.dat
|
||||
|
||||
echo "... challenge-ep2/d88205-gc.dat"
|
||||
$EXECUTABLE materialize-map system/quests/challenge-ep2/d88205-gc.dat ./tests/d88205-gc-00000000.dat --seed=00000000
|
||||
diff tests/challenge-maps-materialized/d88205-gc-00000000.dat ./tests/d88205-gc-00000000.dat
|
||||
rm ./tests/d88205-gc-00000000.dat
|
||||
@@ -7,4 +7,4 @@ if [ -z "$EXECUTABLE" ]; then
|
||||
EXECUTABLE="./newserv"
|
||||
fi
|
||||
|
||||
$EXECUTABLE check-quests --reassembly --config=tests/config.json
|
||||
$EXECUTABLE check-quests --reassemble-scripts --reassemble-maps --config=tests/config.json
|
||||
|
||||
Reference in New Issue
Block a user