Skip to content

Commit c429ec1

Browse files
committed
update test.sh
1 parent 76a5690 commit c429ec1

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
#!/bin/bash
1+
# !/bin/bash
22

3-
run()
3+
#
4+
# To ensure long term portability, Andvaranaut is to be compiled with all major C and C++ compilers.
5+
#
6+
# To ensure the random number generator does not break world generation,
7+
# Andvaranaut is to be started and exited a number of times for each compilation.
8+
#
9+
10+
test()
411
{
512
for i in {0..25..1}
613
do
@@ -12,16 +19,16 @@ run()
1219

1320
main()
1421
{
22+
set -e
23+
1524
for i in 11 10 01 00
1625
do
1726
make -C src clean
1827

1928
make -j 10 -C src CLANG=${i:0:1} CPP=${i:1:2}
2029

21-
run
30+
test
2231
done
2332
}
2433

25-
set -e
26-
2734
main

0 commit comments

Comments
 (0)