client: Unbreak standalone build
[empserver] / tests / build-test
1 #!/bin/sh -e
2 # Build 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 12
16 BRIDGETOWERS 1
17 EOF
18 # TODO cover drnuke_const 0.33
19
20 begin_test "$srcdir"/tests/build/setup-POGO
21 feed_dir "$srcdir"/tests/build/units
22 feed_dir "$srcdir"/tests/build/bridges-1
23 stop_server
24 cat >>$econfig <<EOF
25 EASY_BRIDGES 0
26 BRIDGETOWERS 0
27 EOF
28 start_server
29 feed_dir "$srcdir"/tests/build/bridges-2
30 end_test
31
32 cmp_logs_xdump