For now, just test that "bup" exits with the specified 99, which also
exercises the usage() code (so we at least notice missing imports,
etc.).
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
| tee -a t/tmp/test-log/$$$$.log
cmdline_tests := \
+ t/test-main.sh \
t/test-index.sh \
t/test-split-join.sh \
t/test-fuse.sh \
--- /dev/null
+#!/usr/bin/env bash
+. wvtest-bup.sh || exit $?
+. t/lib.sh || exit $?
+
+set -o pipefail
+
+TOP="$(WVPASS pwd)" || exit $?
+tmpdir="$(WVPASS wvmktempdir)" || exit $?
+export BUP_DIR="$tmpdir/bup"
+
+bup()
+{
+ "$TOP/bup" "$@"
+}
+
+WVSTART 'main'
+
+bup
+rc=$?
+WVPASSEQ "$rc" 99
+
+WVPASS rm -r "$tmpdir"