mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 10:58:14 +00:00
The test consists in a sequence of shell commands, but the shell is not necessarily started with strict errors enabled, so only the last command provides the verdict. Let's add "set -e" to make it fail on the first test that fails.
14 lines
372 B
Plaintext
14 lines
372 B
Plaintext
varnishtest "Tests the -cc argument"
|
|
|
|
feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
|
|
|
|
shell {
|
|
set -e
|
|
$HAPROXY_PROGRAM -cc "version_atleast(2.4)"
|
|
! $HAPROXY_PROGRAM -cc "version_atleast(1024)"
|
|
|
|
$HAPROXY_PROGRAM -cc "streq(foo,'foo')"
|
|
$HAPROXY_PROGRAM -cc "streq(\"foo bar\",'foo bar')"
|
|
! $HAPROXY_PROGRAM -cc "streq(foo,bar)"
|
|
} -run
|