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