diff --git a/tests/kjv.sh b/tests/kjv.sh new file mode 100755 index 0000000..f27d400 --- /dev/null +++ b/tests/kjv.sh @@ -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