SummaryRefsLogTreeCommitDiffStats
path: root/tests/basic.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic.sh')
-rw-r--r--tests/basic.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/basic.sh b/tests/basic.sh
index 7b2ca55..79b2032 100644
--- a/tests/basic.sh
+++ b/tests/basic.sh
@@ -1,5 +1,6 @@
# basic.sh -- basic tests for mcron
# Copyright © 2017 Mathieu Lirzin <mthl@gnu.org>
+# Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
#
# This file is part of GNU Mcron.
#
@@ -33,4 +34,16 @@ grep -e "foo" "output$$" || fail_ "'foo.guile' job is not scheduled"
mcron --schedule=1 > "output$$"
grep -e "foo" "output$$" || fail_ "'foo.guile' job is not scheduled"
+mcron --date-format="~½" cron/foo.guile \
+ && fail_ "mcron --date-format unexpected pass"
+
+mcron --log-format="~½" cron/foo.guile \
+ && fail_ "mcron --log-format unexpected pass"
+
+cron --date-format="~½" cron/foo.guile \
+ && fail_ "cron --date-format unexpected pass"
+
+cron --log-format="~½" cron/foo.guile \
+ && fail_ "cron --log-format unexpected pass"
+
Exit 0