]> git.pond.sub.org Git - empserver/blob - tests/actofgod-test
client: Make get_password() not echo with POSIX && !HAVE_GETPASS
[empserver] / tests / actofgod-test
1 #!/bin/sh -e
2 # Acts of god test for Empire
3
4 if [ $# -ne 1 ]
5 then echo "Usage: $0 SRCDIR" >&2; exit 1
6 fi
7
8 srcdir="$1"
9
10 . "$srcdir"/tests/test-common.sh
11
12 create_sandbox
13 cat >>$econfig <<EOF
14 WORLD_X 24
15 WORLD_Y 16
16 GODNEWS 1
17 EOF
18
19 begin_test "$srcdir"/tests/actofgod/setup-POGO
20
21 perl "$srcdir"/tests/actofgod/geninput.pl | feed_input POGO peter
22
23 end_test
24
25 cmp_logs_xdump