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 |
Tim Duesterhus | 4ee192f | 2021-06-11 19:56:17 +0200 | [diff] [blame] | 4 | feature cmd "command -v sleep" |
William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 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 { |
William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 13 | defaults |
| 14 | mode http |
Willy Tarreau | f673923 | 2021-11-18 17:46:22 +0100 | [diff] [blame] | 15 | timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" |
| 16 | timeout client "${HAPROXY_TEST_TIMEOUT-5s}" |
| 17 | timeout server "${HAPROXY_TEST_TIMEOUT-5s}" |
William Lallemand | 25b5693 | 2020-01-14 15:38:43 +0100 | [diff] [blame] | 18 | |
| 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 | |
| 34 | haproxy h1 -mcli { |
| 35 | send "show proc" |
| 36 | expect ~ ".*foo.*\n.*bar.*\n" |
| 37 | } -wait |