diff options
author | Dale Mellor <mcron-lsfnyl@rdmp.org> | 2020-09-10 05:48:26 +0100 |
---|---|---|
committer | Dale Mellor <mcron-lsfnyl@rdmp.org> | 2022-07-07 22:19:06 +0100 |
commit | cbce8eb293321aef12d153abce31cc3c6ab14f95 (patch) | |
tree | f8473f33dac6ba3ab3aed847b62f49219599fe10 /tests | |
parent | dc1aab3d2fdede1462f690cca61c1e72cd549a06 (diff) | |
download | mcron-cbce8eb293321aef12d153abce31cc3c6ab14f95.tar.gz mcron-cbce8eb293321aef12d153abce31cc3c6ab14f95.tar.bz2 mcron-cbce8eb293321aef12d153abce31cc3c6ab14f95.zip |
Incorporate and use command-line-processor proposed for Guile core
Since the elimination of the C wrapping around mcron and all the
executable scripts, a weakness in Guile's (ice-9 getopt-long) module
means that the command 'mcron -s crontab.scm' does not currently
work. A replacement for the getopt-long module, as well as a
higher-level 'command-line-processor' facility, have been pushed to
the Guile upstream developers and are awaiting approval and
incorporation. In the meantime, those modules are temporarily
incorporated here into the mcron package, and the code is modified
to use those local versions.
* Makefile.am: install two new Guile modules
* src/{cron,crontab,mcron}.in: use local command-line-processor module
* src/mcron/command-line-processor.scm: new module
* src/mcron/getopt-long.scm: new module
* tests/schedule{,-2}.sh: clarify tests of -s, --schedule options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/schedule-2.sh | 4 | ||||
-rw-r--r-- | tests/schedule.sh | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/schedule-2.sh b/tests/schedule-2.sh index 531af54..66d0a55 100644 --- a/tests/schedule-2.sh +++ b/tests/schedule-2.sh @@ -74,8 +74,6 @@ Thu Jan 1 00:00:08 1970 +0000 EOF mcron -s cron/foo.guile > output -diff expected output \ - || skip_ 'The -s option is not fully functional; -this will be fixed with a future version of GNU Guile.' +diff expected output || fail_ "schedule output with -s is not correct" Exit 0 diff --git a/tests/schedule.sh b/tests/schedule.sh index 9a1836e..807fc6e 100644 --- a/tests/schedule.sh +++ b/tests/schedule.sh @@ -126,6 +126,6 @@ Thu Jan 1 00:00:10 1970 +0000 EOF mcron --schedule=10 > output -diff expected output || fail_ "schedule output is not correct" +diff expected output || fail_ "schedule output with --schedule is not correct" Exit 0 |