diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-11 20:13:39 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-11 20:13:39 +0100 |
commit | 57e505641f4afb5d557a3bf8d35f482cbf55b306 (patch) | |
tree | c121b9e07051e098863c2dc9480734db3b60cfa0 /tests | |
parent | 587aac6fb3007eafe972aa9f0ad605ec4556a0f2 (diff) | |
download | desktop-cronish-57e505641f4afb5d557a3bf8d35f482cbf55b306.tar.gz |
Add test case for trigger file not existing
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mtime-nofile.script | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mtime-nofile.script b/tests/mtime-nofile.script new file mode 100755 index 0000000..30ea4b1 --- /dev/null +++ b/tests/mtime-nofile.script @@ -0,0 +1,14 @@ +#!/bin/sh + +set -eu + +rm -f "$DATADIR/foo.trigger" +cat <<EOF > "$DATADIR/foo.tasks" +date: + trigger-file: $DATADIR/foo.trigger + trigger-age: 10 + command: echo triggered > $DATADIR/foo.out +EOF + + +./desktop-cronish --stop-after 5 "$DATADIR/foo.tasks" |