3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test
"queue events"
9 cat > "$eventd_scriptdir/01.test" <<EOF
14 chmod +x
"$eventd_scriptdir/01.test"
16 required_result
0 <<EOF
18 simple_test_background run startup
30
20 required_result
0 <<EOF
22 simple_test run ipreallocated
30
24 required_result
0 <<EOF
25 01.test OK DURATION DATETIME
27 simple_test status startup lastrun
29 required_result
0 <<EOF
30 01.test OK DURATION DATETIME
32 simple_test status startup lastpass
34 required_result
0 <<EOF
35 Event startup has never failed
37 simple_test status startup lastfail
39 required_result
0 <<EOF
40 01.test OK DURATION DATETIME
42 simple_test status ipreallocated lastrun
44 required_result
0 <<EOF
45 01.test OK DURATION DATETIME
47 simple_test status ipreallocated lastpass
49 required_result
0 <<EOF
50 Event ipreallocated has never failed
52 simple_test status ipreallocated lastfail