From ab17fc941df45bb54c7820489816515e2ddd46c4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 23 Jul 2017 12:51:14 -0400 Subject: tests/version.sh: Use tests/aux/init.sh --- diff --git a/tests/version.sh b/tests/version.sh index 17248e0..9b86808 100755 --- a/tests/version.sh +++ b/tests/version.sh @@ -16,18 +16,17 @@ # along with the ProteanOS Archive Manager. If not, see # . -set -eu - -. ${srcdir}/tests/aux/tap-functions.sh +. ${0%/*}/aux/init.sh +. tap-functions.sh plan_ 2 -case "$(./pro-archman -V)" in +case "$("${PRO_ARCHMAN}" -V)" in 'pro-archman '*) result_ 'ok' -- 'version option output';; *) result_ 'not ok' -- 'version option output';; esac -case "$(./pro-archman version)" in +case "$("${PRO_ARCHMAN}" version)" in 'pro-archman '*) result_ 'ok' -- 'version command output';; *) result_ 'not ok' -- 'version command output';; esac -- cgit v0.9.1