diff options
| -rwxr-xr-x | tests/assert-deps.sh | 2 | ||||
| -rwxr-xr-x | tests/assert-install.sh | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/assert-deps.sh b/tests/assert-deps.sh index e358abd..a189d13 100755 --- a/tests/assert-deps.sh +++ b/tests/assert-deps.sh @@ -36,6 +36,8 @@ awk ' } ' Makefile | LANG=POSIX.UTF-8 sort > "$F" +printf '%s: all JavaScript sources are listed in the Makefile...' "$0" >&2 git ls-files src/*.js tests/js/*.js | LANG=POSIX.UTF-8 sort | diff -U10 "$F" - +printf ' OK.\n'>&2 diff --git a/tests/assert-install.sh b/tests/assert-install.sh index 63410ea..99e0fb7 100755 --- a/tests/assert-install.sh +++ b/tests/assert-install.sh @@ -12,16 +12,16 @@ PATH="$D/usr/bin:$PATH" NODE_PATH="$D/usr/lib/node:$NODE_PATH" { - printf 'Assert that the papo(3js) library is installed correctly...' + printf '%s: that the papo(3js) library is installed correctly...' "$0" node -e 'require("papo");' printf ' OK.\n' - printf 'Assert that the papo(1) command is installed correctly...' + printf '%s: that the papo(1) command is installed correctly...' "$0" papo -V | grep -q '^papo ' printf ' OK.\n' make -s DESTDIR="$D" uninstall - printf 'Assert that the "uninstall" target removes everything...' + printf '%s: that the "uninstall" target removes everything...' "$0" if [ "$(find "$D" -not -type d | wc -l)" != 0 ]; then printf ' ERR.\n' cat <<-EOF |
