SummaryRefsLogTreeCommitDiffStats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/schedule.sh47
1 files changed, 26 insertions, 21 deletions
diff --git a/tests/schedule.sh b/tests/schedule.sh
index ad267c4..5ea79e5 100644
--- a/tests/schedule.sh
+++ b/tests/schedule.sh
@@ -1,5 +1,5 @@
# schedule.sh -- Check mcron schedule output
-# Copyright © 2017 Mathieu Lirzin <mthl@gnu.org>
+# Copyright © 2017, 2018 Mathieu Lirzin <mthl@gnu.org>
#
# This file is part of GNU Mcron.
#
@@ -18,9 +18,14 @@
source "${srcdir}/tests/init.sh"
+# Use UTC and SOURCE_DATE_EPOCH to get reproducible result.
+
SOURCE_DATE_EPOCH=1
export SOURCE_DATE_EPOCH
+TZ=UTC0
+export TZ
+
# Use current working directory to store mcron files
XDG_CONFIG_HOME=`pwd`
export XDG_CONFIG_HOME
@@ -35,83 +40,83 @@ cat > cron/bar.guile <<EOF
EOF
cat > expected <<EOF
-Thu Jan 1 01:00:01 1970 +0100
+Thu Jan 1 00:00:01 1970 +0000
(display foo
)
-Thu Jan 1 01:00:01 1970 +0100
+Thu Jan 1 00:00:01 1970 +0000
(display bar
)
-Thu Jan 1 01:00:02 1970 +0100
+Thu Jan 1 00:00:02 1970 +0000
(display foo
)
-Thu Jan 1 01:00:02 1970 +0100
+Thu Jan 1 00:00:02 1970 +0000
(display bar
)
-Thu Jan 1 01:00:03 1970 +0100
+Thu Jan 1 00:00:03 1970 +0000
(display foo
)
-Thu Jan 1 01:00:03 1970 +0100
+Thu Jan 1 00:00:03 1970 +0000
(display bar
)
-Thu Jan 1 01:00:04 1970 +0100
+Thu Jan 1 00:00:04 1970 +0000
(display foo
)
-Thu Jan 1 01:00:04 1970 +0100
+Thu Jan 1 00:00:04 1970 +0000
(display bar
)
-Thu Jan 1 01:00:05 1970 +0100
+Thu Jan 1 00:00:05 1970 +0000
(display foo
)
-Thu Jan 1 01:00:05 1970 +0100
+Thu Jan 1 00:00:05 1970 +0000
(display bar
)
-Thu Jan 1 01:00:06 1970 +0100
+Thu Jan 1 00:00:06 1970 +0000
(display foo
)
-Thu Jan 1 01:00:06 1970 +0100
+Thu Jan 1 00:00:06 1970 +0000
(display bar
)
-Thu Jan 1 01:00:07 1970 +0100
+Thu Jan 1 00:00:07 1970 +0000
(display foo
)
-Thu Jan 1 01:00:07 1970 +0100
+Thu Jan 1 00:00:07 1970 +0000
(display bar
)
-Thu Jan 1 01:00:08 1970 +0100
+Thu Jan 1 00:00:08 1970 +0000
(display foo
)
-Thu Jan 1 01:00:08 1970 +0100
+Thu Jan 1 00:00:08 1970 +0000
(display bar
)
-Thu Jan 1 01:00:09 1970 +0100
+Thu Jan 1 00:00:09 1970 +0000
(display foo
)
-Thu Jan 1 01:00:09 1970 +0100
+Thu Jan 1 00:00:09 1970 +0000
(display bar
)
-Thu Jan 1 01:00:10 1970 +0100
+Thu Jan 1 00:00:10 1970 +0000
(display foo
)
-Thu Jan 1 01:00:10 1970 +0100
+Thu Jan 1 00:00:10 1970 +0000
(display bar
)