summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-11-10 11:53:22 -0300
committerEuAndreh <eu@euandre.org>2023-11-10 11:53:22 -0300
commit1a4710c8c746f8548c9bd5948cef78d612e63a58 (patch)
treedd2d184bd149fbbb0c461d9b04f95aba8bbde148 /tests
parenttests/assert-clean.sh: Enforce correctness of "make clean" (diff)
downloadpapod-1a4710c8c746f8548c9bd5948cef78d612e63a58.tar.gz
papod-1a4710c8c746f8548c9bd5948cef78d612e63a58.tar.xz
tests/assert-*: Use standartized STDERR message format
Diffstat (limited to 'tests')
-rwxr-xr-xtests/assert-deps.sh2
-rwxr-xr-xtests/assert-install.sh6
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