auth/spnego: set spnego_state->{state_position,expected_packet} gensec_spnego_create_...
[Samba.git] / ctdb / tests / eventd / eventd_014.sh
blob1069d75b691a841f0997431397d92d3ed4271d9e
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "queue events"
7 setup_eventd
9 cat > "$eventd_scriptdir/01.test" <<EOF
10 #!/bin/sh
12 sleep 5
13 EOF
14 chmod +x "$eventd_scriptdir/01.test"
16 required_result 0 <<EOF
17 EOF
18 simple_test_background run startup 30
20 required_result 0 <<EOF
21 EOF
22 simple_test run ipreallocated 30
24 required_result 0 <<EOF
25 01.test OK DURATION DATETIME
26 EOF
27 simple_test status startup lastrun
29 required_result 0 <<EOF
30 01.test OK DURATION DATETIME
31 EOF
32 simple_test status startup lastpass
34 required_result 0 <<EOF
35 Event startup has never failed
36 EOF
37 simple_test status startup lastfail
39 required_result 0 <<EOF
40 01.test OK DURATION DATETIME
41 EOF
42 simple_test status ipreallocated lastrun
44 required_result 0 <<EOF
45 01.test OK DURATION DATETIME
46 EOF
47 simple_test status ipreallocated lastpass
49 required_result 0 <<EOF
50 Event ipreallocated has never failed
51 EOF
52 simple_test status ipreallocated lastfail