summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-23 12:51:14 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-23 12:51:14 (EDT)
commitab17fc941df45bb54c7820489816515e2ddd46c4 (patch)
treef2bd2cec7e5425eae1aaebfd6667b3cf4327a3b7
parentedbb7b4baf03059479200c98d782496dba333bbb (diff)
tests/version.sh: Use tests/aux/init.sh
-rwxr-xr-xtests/version.sh9
1 files changed, 4 insertions, 5 deletions
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
# <http://www.gnu.org/licenses/>.
-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