summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventd/eventd_033.sh
blob: ba99b1100bcbe70698922176b27b0df1ca91af27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "timeouts with multiple scripts"

setup_eventd

required_error ETIMEDOUT <<EOF
Event timeout1 in multi timed out
EOF
simple_test run 5 multi timeout1

required_error ETIMEDOUT <<EOF
01.test              TIMEDOUT   DATETIME
  OUTPUT: 
EOF
simple_test status multi timeout1

required_error ETIMEDOUT <<EOF
Event timeout2 in multi timed out
EOF
simple_test run 5 multi timeout2

required_error ETIMEDOUT <<EOF
01.test              OK         DURATION DATETIME
02.test              TIMEDOUT   DATETIME
  OUTPUT: 
EOF
simple_test status multi timeout2

required_error ETIMEDOUT <<EOF
Event timeout3 in multi timed out
EOF
simple_test run 5 multi timeout3

required_error ETIMEDOUT <<EOF
01.test              OK         DURATION DATETIME
02.test              OK         DURATION DATETIME
03.test              TIMEDOUT   DATETIME
  OUTPUT: 
EOF
simple_test status multi timeout3