summaryrefslogtreecommitdiffabout
path: root/tests
Unidiff
Diffstat (limited to 'tests') (more/less context) (show whitespace changes)
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/atlocal.in2
-rw-r--r--tests/check.at2
-rw-r--r--tests/checkf.at2
-rw-r--r--tests/dump.at2
-rw-r--r--tests/rate.at2
-rw-r--r--tests/ratef.at2
-rw-r--r--tests/strftime.at2
8 files changed, 8 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 30b0360..23fa477 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,6 +31,7 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
31 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \ 31 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
32 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \ 32 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
33 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ 33 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
34 echo 'm4_define([AT_VMOD_BASENAME], [@AC_VMOD_BASENAME@])'; \
34 } >$(srcdir)/package.m4 35 } >$(srcdir)/package.m4
35 36
36# 37#
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 9f80ebf..f901648 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -2,6 +2,6 @@
2# Configurable variable values for vmod_tbf test suite. 2# Configurable variable values for vmod_tbf test suite.
3# Copyright (C) 2017 Sergey Poznyakoff 3# Copyright (C) 2017 Sergey Poznyakoff
4 4
5PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:$PATH 5PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:@VARNISH_SBINDIR@:$PATH
6VARNISHTEST=@VARNISHTEST@ 6VARNISHTEST=@VARNISHTEST@
7VARNISHD=@VARNISHD@ 7VARNISHD=@VARNISHD@
diff --git a/tests/check.at b/tests/check.at
index f45c1b1..9ed2974 100644
--- a/tests/check.at
+++ b/tests/check.at
@@ -15,7 +15,7 @@
15# along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. 15# along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>.
16AT_SETUP([check]) 16AT_SETUP([check])
17AT_KEYWORDS([check]) 17AT_KEYWORDS([check])
18AT_VARNISHTEST([tbf],[ 18AT_VARNISHTEST([
19 sub vcl_recv { 19 sub vcl_recv {
20 if (!tbf.check("url:"+req.url, "4 req/s")) { 20 if (!tbf.check("url:"+req.url, "4 req/s")) {
21 return (synth(420, "Overlimit")); 21 return (synth(420, "Overlimit"));
diff --git a/tests/checkf.at b/tests/checkf.at
index c4155ba..f85c4a4 100644
--- a/tests/checkf.at
+++ b/tests/checkf.at
@@ -15,7 +15,7 @@
15# along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. 15# along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>.
16AT_SETUP([check flow]) 16AT_SETUP([check flow])
17AT_KEYWORDS([checkf flow]) 17AT_KEYWORDS([checkf flow])
18AT_VARNISHTEST([tbf],[ 18AT_VARNISHTEST([
19 sub vcl_deliver { 19 sub vcl_deliver {
20 set resp.http.result = tbf.check("url:"+req.url, "4req/s"); 20 set resp.http.result = tbf.check("url:"+req.url, "4req/s");
21 } 21 }
diff --git a/tests/dump.at b/tests/dump.at
index b4230de..6602697 100644
--- a/tests/dump.at
+++ b/tests/dump.at
@@ -16,7 +16,7 @@
16 16
17AT_SETUP([dump/load facilities]) 17AT_SETUP([dump/load facilities])
18AT_KEYWORDS([dump load]) 18AT_KEYWORDS([dump load])
19AT_VARNISHTEST([tbf],[ 19AT_VARNISHTEST([
20 # sub vcl_init { 20 # sub vcl_init {
21 # tbf.debug(20); 21 # tbf.debug(20);
22 # } 22 # }
diff --git a/tests/rate.at b/tests/rate.at
index 75d9df4..e13473d 100644
--- a/tests/rate.at
+++ b/tests/rate.at
@@ -16,7 +16,7 @@
16 16
17AT_SETUP([rate]) 17AT_SETUP([rate])
18AT_KEYWORDS([rate]) 18AT_KEYWORDS([rate])
19AT_VARNISHTEST([tbf],[ 19AT_VARNISHTEST([
20 sub vcl_recv { 20 sub vcl_recv {
21 if (!tbf.rate("url:"+req.url, 1, 20 s, 5)) { 21 if (!tbf.rate("url:"+req.url, 1, 20 s, 5)) {
22 return (synth(420, "Overlimit")); 22 return (synth(420, "Overlimit"));
diff --git a/tests/ratef.at b/tests/ratef.at
index d0dc7ea..40a86e6 100644
--- a/tests/ratef.at
+++ b/tests/ratef.at
@@ -16,7 +16,7 @@
16 16
17AT_SETUP([rate flow]) 17AT_SETUP([rate flow])
18AT_KEYWORDS([ratef flow]) 18AT_KEYWORDS([ratef flow])
19AT_VARNISHTEST([tbf],[ 19AT_VARNISHTEST([
20 sub vcl_deliver { 20 sub vcl_deliver {
21 set resp.http.result = tbf.rate("url:"+req.url, 1, 1s, 5); 21 set resp.http.result = tbf.rate("url:"+req.url, 1, 1s, 5);
22 } 22 }
diff --git a/tests/strftime.at b/tests/strftime.at
index 58fc723..55b04fd 100644
--- a/tests/strftime.at
+++ b/tests/strftime.at
@@ -16,7 +16,7 @@
16 16
17AT_SETUP([strftime]) 17AT_SETUP([strftime])
18AT_KEYWORDS([strftime]) 18AT_KEYWORDS([strftime])
19AT_VARNISHTEST([tbf],[ 19AT_VARNISHTEST([
20 sub vcl_deliver { 20 sub vcl_deliver {
21 set resp.http.result = tbf.strftime("%Y-%m-%d", 26697600); 21 set resp.http.result = tbf.strftime("%Y-%m-%d", 26697600);
22 } 22 }

Return to:

Send suggestions and report system problems to the System administrator.