-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo-check.sh
executable file
·31 lines (25 loc) · 1.37 KB
/
demo-check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$1/build/src/crispy-doom -nographics -nosound -nograbmouse -iwad data/demos/DOOM.WAD -statdump $1/compare.txt -cicddemo data/demos/m1-simple;
if ! diff --strip-trailing-cr $1/compare.txt data/demos/m1-simple.txt; then
exit 1;
fi
$1/build/src/crispy-doom -nographics -nosound -nograbmouse -iwad data/demos/DOOM.WAD -statdump $1/compare.txt -cicddemo data/demos/m1-fast;
if ! diff --strip-trailing-cr $1/compare.txt data/demos/m1-fast.txt; then
exit 1;
fi
$1/build/src/crispy-doom -nographics -nosound -nograbmouse -iwad data/demos/DOOM.WAD -statdump $1/compare.txt -cicddemo data/demos/m1-normal;
if ! diff --strip-trailing-cr $1/compare.txt data/demos/m1-normal.txt; then
exit 1;
fi
$1/build/src/crispy-doom -nographics -nosound -nograbmouse -iwad data/demos/DOOM.WAD -statdump $1/compare.txt -cicddemo data/demos/impfight;
if ! diff --strip-trailing-cr $1/compare.txt data/demos/impfight.txt; then
exit 1;
fi
$1/build/src/crispy-doom -nographics -nosound -nograbmouse -iwad data/demos/DOOM.WAD -statdump $1/compare.txt -cicddemo data/demos/bohfight;
if ! diff --strip-trailing-cr $1/compare.txt data/demos/bohfight.txt; then
exit 1;
fi
$1/build/src/crispy-doom -nographics -nosound -nograbmouse -iwad data/demos/DOOM.WAD -statdump $1/compare.txt -cicddemo data/demos/e1m7-607;
if ! diff --strip-trailing-cr $1/compare.txt data/demos/e1m7-607.txt; then
exit 1;
fi
exit 0;