3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"multiple events"
9 cat > "$eventd_scriptdir/01.test" <<EOF
23 chmod +x
"$eventd_scriptdir/01.test"
25 required_result
0 <<EOF
27 simple_test run startup
30
29 required_result
0 <<EOF
30 01.test OK DURATION DATETIME
32 simple_test status startup lastrun
34 required_result
0 <<EOF
35 01.test OK DURATION DATETIME
37 simple_test status startup lastpass
39 required_result
0 <<EOF
40 Event startup has never failed
42 simple_test status startup lastfail
44 required_result
1 <<EOF
45 Failed to run event monitor, result=1
47 simple_test run monitor
30
49 required_result
1 <<EOF
50 01.test ERROR DURATION DATETIME
53 simple_test status monitor lastrun
55 required_result
0 <<EOF
56 Event monitor has never passed
58 simple_test status monitor lastpass
60 required_result
1 <<EOF
61 01.test ERROR DURATION DATETIME
64 simple_test status monitor lastfail