empserver/tests/files-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

22 lines
349 B
Bash
Executable file

#!/bin/sh -e
# Basic files 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/files.out
src/util/files -e sandbox/etc/empire/econfig -f >&3
exec 3>&-
src/util/empdump -e sandbox/etc/empire/econfig -x >sandbox/final.xdump
cmp_out files.out final.xdump