Skip to content

Commit

Permalink
Fix test for dists
Browse files Browse the repository at this point in the history
- make oauth dependecy conditional on integration tests
- fix comment on return code 99 (ERROR) for test scripts

Signed-off-by: Andreas Fuchs <[email protected]>
  • Loading branch information
Andreas Fuchs committed Feb 22, 2019
1 parent 6949018 commit 44fcb68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ AS_IF([test "x$enable_debug" != "xno"],
PKG_PROG_PKG_CONFIG([0.25])
PKG_CHECK_MODULES([TSS2_ESYS],[tss2-esys])
PKG_CHECK_MODULES([QRENCODE],[libqrencode])
PKG_CHECK_MODULES([OATH],[liboath])

AC_PATH_PROG([PANDOC], [pandoc])
AS_IF([test -z "$PANDOC"],
Expand All @@ -89,6 +88,7 @@ AC_ARG_ENABLE([integration],
[enable_integration=$enableval],
[enable_integration=no])
AM_CONDITIONAL([INTEGRATION], [test "x$enable_integration" != xno])
AS_IF([test "x$enable_integration" != xno], [PKG_CHECK_MODULES([OATH],[liboath])])

AC_OUTPUT

Expand Down
4 changes: 2 additions & 2 deletions test/tpm2-totp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ function prereq()
{
if [ -f NVChip ]; then
echo "There is a leftover file NVChip in the test directory."
return 99 #XFAIL
return 99 #ERROR
fi

if killall -0 $(basename $TPMSIM); then
echo "There is already a tpm_simulator running."
return 99 #XFAIL
return 99 #ERROR
fi

trap "cleanup" EXIT
Expand Down

0 comments on commit 44fcb68

Please sign in to comment.