Compare commits

...

1 Commits

Author SHA1 Message Date
Gregory Hellings bd99bdfed7 Add test 2019-08-27 22:44:52 -05:00
1 changed files with 16 additions and 0 deletions

16
tests/kjv.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -ex
OPTS="--allow-internet-access-and-risk-tracing-and-jail-or-martyrdom"
installmgr $OPTS -ri CrossWire KJV
INSTALLED="$(diatheke -b system -k modulelist | grep KJV | wc -l)"
if [ "x${INSTALLED}" != "x1" ]; then
exit 1
fi
TEXT="$(diatheke -b KJV -f plain -k Jn.1.1)"
EXPECTED="
John 1:1: In the beginning was the Word, and the Word was with God, and the Word was God.
(KJV)
"
if [ "x${TEXT}" != "x${DOC}" ]; then
exit 1
fi