diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2016-04-23 21:27:06 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2016-04-23 21:27:06 +0200 |
commit | 84a334df4bff3a4be8e0d948e364ee2f33356379 (patch) | |
tree | 9c0794b90b7248237007a3a5cee932f66ee244ea | |
parent | c0bc9d97b2079ebbe12247854492e77226ee4c49 (diff) |
+ test case for redo-always(1)
-rw-r--r-- | always/a.do | 4 | ||||
-rw-r--r-- | always/all.do | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/always/a.do b/always/a.do new file mode 100644 index 0000000..43b2140 --- /dev/null +++ b/always/a.do @@ -0,0 +1,4 @@ +#!/bin/sh +redo-always +sleep 1 +date +%s diff --git a/always/all.do b/always/all.do new file mode 100644 index 0000000..69d067d --- /dev/null +++ b/always/all.do @@ -0,0 +1,12 @@ +#!/bin/sh +redo-ifchange a +read a1 <a + +redo-ifchange a +read a2 <a + +if [ $a1 -ge $a2 ]; then + echo 'FAIL: a1 >= a2' >&2 +else + echo 'PASS: a1 < a2' >&2 +fi |