blob: a2e0f759e90dc67f77c4c632904b52ab1b9c0c5b [file] [log] [blame]
William Lallemand25b56932020-01-14 15:38:43 +01001varnishtest "Try to start a master CLI with 2 programs"
2#REGTEST_TYPE=bug
3#REQUIRE_VERSION=2.0
Tim Duesterhus4ee192f2021-06-11 19:56:17 +02004feature cmd "command -v sleep"
William Lallemand25b56932020-01-14 15:38:43 +01005
6feature ignore_unknown_macro
7
8# Do nothing. Is there only to create s1_* macros
9server s1 {
10} -start
11
12haproxy h1 -W -S -conf {
William Lallemand25b56932020-01-14 15:38:43 +010013 defaults
14 mode http
Willy Tarreauf6739232021-11-18 17:46:22 +010015 timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
16 timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
17 timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
William Lallemand25b56932020-01-14 15:38:43 +010018
19 frontend myfrontend
20 bind "fd@${my_fe}"
21 default_backend test
22
23 backend test
24 server www1 ${s1_addr}:${s1_port}
25
26 program foo
27 command sleep 10
28
29 program bar
30 command sleep 10
31
32} -start
33
34haproxy h1 -mcli {
35 send "show proc"
36 expect ~ ".*foo.*\n.*bar.*\n"
37} -wait