summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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