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>
22 lines
349 B
Bash
Executable file
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
|