tests/info: New; checks info and code agree on commands
Replaces info/checklist.pl, which has been broken since
commit 56d9445
, v4.3.0.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
0a702949db
commit
90eaf9d9eb
6 changed files with 77 additions and 384 deletions
41
tests/info-test
Executable file
41
tests/info-test
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/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 <<EOF
|
||||
add 1 1 1 p
|
||||
des 0:2,0 -
|
||||
newcap 1 0,0
|
||||
add 2 visitor visitor v
|
||||
nat
|
||||
nat 1
|
||||
nat 2
|
||||
EOF
|
||||
|
||||
feed_input POGO peter <<EOF
|
||||
list >sandbox/deity.list
|
||||
EOF
|
||||
feed_input 1 1 <<EOF
|
||||
list >sandbox/sanctuary.list
|
||||
break
|
||||
list >sandbox/active.list
|
||||
EOF
|
||||
feed_input visitor visitor <<EOF
|
||||
list >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
|
Loading…
Add table
Add a link
Reference in a new issue