test: Demonstration of failure to open local file.

The mcron program goes looking for files specified on the command
line in Guile's module path, inevitably resulting in failure to load
said file.  Running 'make check' will show at least one failure.

* tests/basic.sh: Added new test.
This commit is contained in:
Dale Mellor 2020-04-13 19:45:45 +01:00
commit ad6e4e5505

View file

@ -27,6 +27,9 @@ cat > cron/foo.guile <<EOF
(job '(next-second) '(display "foo\n"))
EOF
mcron --schedule=1 cron/foo.guile > "output$$"
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"