aboutsummaryrefslogtreecommitdiff
path: root/testsuite.inc
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite.inc')
-rw-r--r--testsuite.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/testsuite.inc b/testsuite.inc
index 52795a8..aa5b743 100644
--- a/testsuite.inc
+++ b/testsuite.inc
@@ -2,24 +2,25 @@ m4_version_prereq([2.52g])
m4_define([AT_SKIP_TEST],[exit 77])
-dnl AT_VARNISHTEST(MODULE, VCL, CLT[, SRV])
+dnl AT_VARNISHTEST(VCL, CLT[, SRV])
m4_define([AT_VARNISHTEST],[
AT_CHECK([
cat > test.vtc <<EOT
+varnishtest "$at_desc"
server s1 {
-m4_if($4,,[dnl
+m4_if($3,,[dnl
rxreq
- txresp],[$4])
+ txresp],[$3])
} -start
varnish v1 -vcl+backend {
import std;
- import $1 from "$abs_top_builddir/src/.libs/libvmod_$1.so";
-$2
+ import AT_VMOD_BASENAME from "[$abs_top_builddir/src/.libs/libvmod_]AT_VMOD_BASENAME[.so]";
+$1
} -start
client c1 {
-$3
+$2
} -run
EOT
$VARNISHTEST \

Return to:

Send suggestions and report system problems to the System administrator.