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>
17 lines
239 B
Bash
Executable file
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
|