summaryrefslogtreecommitdiff
path: root/tests/assert-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assert-install.sh')
-rwxr-xr-xtests/assert-install.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/assert-install.sh b/tests/assert-install.sh
index 99e0fb7..f8c0104 100755
--- a/tests/assert-install.sh
+++ b/tests/assert-install.sh
@@ -12,16 +12,19 @@ PATH="$D/usr/bin:$PATH"
NODE_PATH="$D/usr/lib/node:$NODE_PATH"
{
- printf '%s: that the papo(3js) library is installed correctly...' "$0"
+ printf '%s: that the papo(3js) library is installed correctly...' \
+ "$(yellow "$0")"
node -e 'require("papo");'
- printf ' OK.\n'
+ printf ' %s\n' "$(green 'OK')"
- printf '%s: that the papo(1) command is installed correctly...' "$0"
+ printf '%s: that the papo(1) command is installed correctly...' \
+ "$(yellow "$0")"
papo -V | grep -q '^papo '
- printf ' OK.\n'
+ printf ' %s\n' "$(green 'OK')"
make -s DESTDIR="$D" uninstall
- printf '%s: that the "uninstall" target removes everything...' "$0"
+ printf '%s: that the "uninstall" target removes everything...' \
+ "$(yellow "$0")"
if [ "$(find "$D" -not -type d | wc -l)" != 0 ]; then
printf ' ERR.\n'
cat <<-EOF
@@ -31,5 +34,5 @@ NODE_PATH="$D/usr/lib/node:$NODE_PATH"
EOF
exit 1
fi
- printf ' OK.\n'
+ printf ' %s\n' "$(green 'OK')"
} >&2