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 |
| 3 | #REQUIRE_VERSION=2.0 |
| 4 | #REQUIRE_BINARIES=sleep |
| 5 | |
| 6 | feature ignore_unknown_macro |
| 7 | |
| 8 | # Do nothing. Is there only to create s1_* macros |
| 9 | server s1 { |
| 10 | } -start |
| 11 | |
| 12 | haproxy h1 -W -S -conf { |
| 13 | global |
| 14 | nbproc 1 |
| 15 | defaults |
| 16 | mode http |
| 17 | ${no-htx} option http-use-htx |
| 18 | timeout connect 1s |
| 19 | timeout client 1s |
| 20 | timeout server 1s |
| 21 | |
| 22 | frontend myfrontend |
| 23 | bind "fd@${my_fe}" |
| 24 | default_backend test |
| 25 | |
| 26 | backend test |
| 27 | server www1 ${s1_addr}:${s1_port} |
| 28 | |
| 29 | program foo |
| 30 | command sleep 10 |
| 31 | |
| 32 | program bar |
| 33 | command sleep 10 |
| 34 | |
| 35 | } -start |
| 36 | |
| 37 | haproxy h1 -mcli { |
| 38 | send "show proc" |
| 39 | expect ~ ".*foo.*\n.*bar.*\n" |
| 40 | } -wait |