Maximilian Mader | fc0cceb | 2021-06-06 00:50:22 +0200 | [diff] [blame] | 1 | varnishtest "Tests the -cc argument" |
| 2 | |
Maximilian Mader | fc0cceb | 2021-06-06 00:50:22 +0200 | [diff] [blame] | 3 | feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'" |
| 4 | |
| 5 | shell { |
Willy Tarreau | b333db3 | 2021-07-17 10:54:46 +0200 | [diff] [blame^] | 6 | set -e |
Maximilian Mader | fc0cceb | 2021-06-06 00:50:22 +0200 | [diff] [blame] | 7 | $HAPROXY_PROGRAM -cc "version_atleast(2.4)" |
| 8 | ! $HAPROXY_PROGRAM -cc "version_atleast(1024)" |
| 9 | |
| 10 | $HAPROXY_PROGRAM -cc "streq(foo,'foo')" |
| 11 | $HAPROXY_PROGRAM -cc "streq(\"foo bar\",'foo bar')" |
| 12 | ! $HAPROXY_PROGRAM -cc "streq(foo,bar)" |
| 13 | } -run |