Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Gregory Hellings
bd99bdfed7 Add test 2019-08-27 22:44:52 -05:00

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