summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-06-24 06:51:14 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-06-24 07:57:31 +0200
commite9bf3a2364e05de8dab0d6f8885c4bf72004b9df (patch)
treee1b10ee836a83ad5d2acd331ba38a81fb6cde024 /tests/scripts
parentd986f7042c798bd52e5dc46e0ba7ca9481a6532d (diff)
downloadgnutls-e9bf3a2364e05de8dab0d6f8885c4bf72004b9df.tar.gz
.gitlab-ci.yml: updated x86 CI builds with better datefudge detection
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/common.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 8662d93cf1..35ac52e5a6 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -67,6 +67,12 @@ GETPORT='rc=0; myrandom=$(date +%N | sed s/^0*//)
'
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
+ return
+ fi
+
TSTAMP=`datefudge -s "2006-09-23" date -u +%s || true`
if test "$TSTAMP" != "1158969600" || test "$WINDOWS" = 1; then
echo $TSTAMP