diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-20 10:52:09 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-20 10:52:09 +0100 |
commit | 5c9c29237c59d6866ec80260448065ff6b828947 (patch) | |
tree | c90bd9519ad5bded481ab0b0c88adc678c6b2fdf | |
parent | f18d3f5089055d4eca9a3055269936242a0a0721 (diff) | |
download | desktop-cronish-5c9c29237c59d6866ec80260448065ff6b828947.tar.gz |
Add test script for trigger file being old
-rwxr-xr-x | tests/mtime-old.script | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mtime-old.script b/tests/mtime-old.script new file mode 100755 index 0000000..d727c78 --- /dev/null +++ b/tests/mtime-old.script @@ -0,0 +1,14 @@ +#!/bin/sh + +set -eu + +touch -t 197001010000.00 "$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 5 "$DATADIR/foo.tasks" |