summaryrefslogtreecommitdiff
path: root/tests/scripts/common.sh
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2019-11-25 22:38:05 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-11-25 22:40:20 +0100
commit1fe4f8e289d666979618fbb909983ac05aad11ac (patch)
tree7df6df6501459ab59b4f956882123332e70dafdb /tests/scripts/common.sh
parentdd5dee2ed68d93c8915c91b4965313de57da2943 (diff)
downloadgnutls-1fe4f8e289d666979618fbb909983ac05aad11ac.tar.gz
tests: ignore datefudge-check check when running on command line
That allows running the tests individually without make or setting top_builddir variable. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/scripts/common.sh')
-rw-r--r--tests/scripts/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 95f8a5298e..4c7d12cf62 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -74,13 +74,13 @@ GETPORT='
check_for_datefudge() {
# On certain platforms running datefudge date fails (e.g., x86 datefudge
# with x86-64 date app).
- if test "${SKIP_DATEFUDGE_CHECK}" = 1;then
+ if test "${SKIP_DATEFUDGE_CHECK}" = 1 || test -z "${top_builddir}";then
return
fi
- TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check" || true`
+ TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check"`
if test "$TSTAMP" != "1158969600" || test "$WINDOWS" = 1; then
- echo $TSTAMP
+ echo "timestamp: ${TSTAMP}"
echo "You need datefudge to run this test"
exit 77
fi