William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 1 | varnishtest "Try to start a master CLI with 2 programs" |
| 2 | #REGTEST_TYPE=bug |
Tim Duesterhus | 4ee192f | 2021-06-11 19:56:17 +0200 | [diff] [blame] | 3 | feature cmd "command -v sleep" |
William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 4 | |
| 5 | feature ignore_unknown_macro |
| 6 | |
| 7 | # Do nothing. Is there only to create s1_* macros |
| 8 | server s1 { |
| 9 | } -start |
| 10 | |
| 11 | haproxy h1 -W -S -conf { |
William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 12 | defaults |
| 13 | mode http |
Willy Tarreau | f673923 | 2021-11-18 17:46:22 +0100 | [diff] [blame] | 14 | timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" |
| 15 | timeout client "${HAPROXY_TEST_TIMEOUT-5s}" |
| 16 | timeout server "${HAPROXY_TEST_TIMEOUT-5s}" |
William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 17 | |
| 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 | |
| 33 | haproxy h1 -mcli { |
| 34 | send "show proc" |
| 35 | expect ~ ".*foo.*\n.*bar.*\n" |
| 36 | } -wait |