client: Unbreak standalone build
[empserver] / tests / bridgefall-test
1 #!/bin/sh -e
2 # Collapsing bridge 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 20
15 WORLD_Y 10
16 BRIDGETOWERS 1
17 EOF
18
19 begin_test "$srcdir"/tests/bridgefall/setup-POGO
20 feed_dir "$srcdir"/tests/bridgefall/easy-on
21 stop_server
22 cat >>$econfig <<EOF
23 EASY_BRIDGES 0
24 EOF
25 start_server
26 feed_dir "$srcdir"/tests/bridgefall/easy-off
27 end_test
28
29 cmp_logs_xdump