From 2d2f14b9f1584f946af0748280b36bf318fb1db1 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 17 Jun 2014 08:31:58 +0200 Subject: [PATCH] fix the test with new directory structure --- tests/basic.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/basic.sh b/tests/basic.sh index f29f4c1..5a58b81 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -31,10 +31,12 @@ set -e -HELP_OUTPUT=$(../yubico-piv-tool$EXEEXT --help) +BIN="../tool/yubico-piv-tool${EXEEXT}" + +HELP_OUTPUT=$($BIN --help) expected="yubico-piv-tool $VERSION" -VERSION_OUTPUT=$(../yubico-piv-tool$EXEEXT --version | sed 's/\r//') +VERSION_OUTPUT=$($BIN --version | sed 's/\r//') if [ "x$VERSION_OUTPUT" != "x$expected" ]; then echo "Version ($VERSION_OUTPUT) not matching expected output $expected." exit 1