diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-20 10:51:27 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-20 10:51:27 +0100 |
commit | f18d3f5089055d4eca9a3055269936242a0a0721 (patch) | |
tree | bd74135326a4a8bbf6918cb92ea6473be0524718 | |
parent | fcc3f81562d7e92bc359efabc8492109cffa8fe5 (diff) | |
download | desktop-cronish-f18d3f5089055d4eca9a3055269936242a0a0721.tar.gz |
Add test script for trigger file missing
-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..9f8bb8c --- /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 --max-jobs 1 "$DATADIR/foo.tasks" |