#!/bin/sh -e # Documentation completeness test for Empire if [ $# -ne 1 ] then echo "Usage: $0 SRCDIR" >&2; exit 1 fi srcdir="$1" . "$srcdir"/tests/test-common.sh create_sandbox # begin_test warns POSIX isn't expected to work, because thread # scheduling isn't reliably deterministic. Not an issue for this # test, so suppress the warning. [ "$empthread" = POSIX ] && warn_empthread= begin_test <sandbox/deity.list EOF feed_input 1 1 <sandbox/sanctuary.list break list >sandbox/active.list EOF feed_input visitor visitor <sandbox/visitor.list EOF end_test if perl $srcdir/tests/info/cmp-toc-vs-lists.pl info/toc sandbox/*.list then echo "Command documentation OK" else echo "Command documentation FAIL"; false fi