empserver/tests/files-test
Markus Armbruster fed6620a0b tests/files tests/fairland: Check stderr and exit status
New helper run_and_cmp to automate the job: run a program capturing
its standard output, standard error and exit status, then compare the
actual with the expected results.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-02-01 16:52:59 +01:00

17 lines
239 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
run_and_cmp files $files -f
$empdump -x >sandbox/final.xdump
cmp_out final.xdump