empserver/tests/fairland-test
Markus Armbruster ab913d73f9 tests: Rename final xdump files to final.xdump
The other test output files have fixed names, and having just one with
a name that varies with the test name complicates things with no gain.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2014-01-19 10:09:16 +01:00

23 lines
460 B
Bash
Executable file

#!/bin/sh -e
# Basic fairland test
if [ $# -ne 1 ]
then echo "Usage: $0 SRCDIR" >&2; exit 1
fi
srcdir="$1"
. "$srcdir"/tests/test-common.sh
create_sandbox
exec 3>sandbox/fairland.out
src/util/files -e sandbox/etc/empire/econfig -f >&3
src/util/fairland -e sandbox/etc/empire/econfig -s sandbox/newcap_script -R 1 10 30 >&3
exec 3>&-
src/util/empdump -e sandbox/etc/empire/econfig -x >sandbox/final.xdump
cmp_out fairland.out final.xdump newcap_script