git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Persist variables to file (~/.whenjobs/variables).
[whenjobs.git]
/
tests
/
jobs
/
t100_counter.ml
diff --git
a/tests/jobs/t100_counter.ml
b/tests/jobs/t100_counter.ml
index
d25f6c7
..
b6ac29c
100644
(file)
--- a/
tests/jobs/t100_counter.ml
+++ b/
tests/jobs/t100_counter.ml
@@
-18,14
+18,20
@@
(* Test count to 3, then fire a whenjob. *)
(* Test count to 3, then fire a whenjob. *)
+when reloaded () :
+<<
+ echo $JOBSERIAL $JOBNAME >\> $HOME/test_output
+ whenjobs --set --type int counter=0
+>>
+
every 2 seconds :
<<
every 2 seconds :
<<
- echo $JOBNAME $counter >\> $HOME/test_output
- whenjobs --set
counter $(($counter+1)) --type int
+ echo $JOB
SERIAL $JOB
NAME $counter >\> $HOME/test_output
+ whenjobs --set
--type int counter=$(($counter+1))
>>
when counter = 3 :
<<
>>
when counter = 3 :
<<
- echo $JOBNAME $counter >\> $HOME/test_output
+ echo $JOB
SERIAL $JOB
NAME $counter >\> $HOME/test_output
whenjobs --daemon-stop
>>
whenjobs --daemon-stop
>>