2 # Acts of god test for Empire
5 then echo "Usage: $0 SRCDIR" >&2; exit 1
10 . "$srcdir"/tests/test-common.sh
13 # Currently expected to work only with thread package LWP, because:
15 # - Thread scheduling is reliably deterministic only with LWP
16 # - Shell builtin kill appears not to do the job in MinGW
17 # - The Windows server tries to run as service when -d isn't
20 # TODO address these shortcomings.
22 if [ `sed -n 's/empthread *:= *\(.*\)/\1/p' <GNUmakefile` != LWP ]
23 then echo "Warning: test not expected to work with this thread package!" >&2
27 cat >>sandbox/etc/empire/econfig <<EOF
32 begin_test "$srcdir"/tests/actofgod/init_script
34 perl "$srcdir"/tests/actofgod/geninput.pl | feed_input POGO peter
38 cmp_out var/empire/server.log var/empire/journal.log actofgod.xdump