3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"enabled event script"
9 cat > "$eventd_scriptdir/01.test" <<EOF
15 required_result
0 <<EOF
18 simple_test
script list
20 required_result
0 <<EOF
22 simple_test
script enable 01.
test
24 required_result
0 <<EOF
26 simple_test
script enable 01.
test
28 required_result
0 <<EOF
30 simple_test run monitor
30
32 required_result
0 <<EOF
33 01.test OK DURATION DATETIME
35 simple_test status monitor lastrun
37 required_result
0 <<EOF
38 01.test OK DURATION DATETIME
40 simple_test status monitor lastpass
42 required_result
0 <<EOF
43 Event monitor has never failed
45 simple_test status monitor lastfail