aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS10
m---------acvmod0
-rw-r--r--configure.ac5
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/atlocal.in2
-rw-r--r--tests/clear.at2
-rw-r--r--tests/complex.at2
-rw-r--r--tests/defined.at2
-rw-r--r--tests/duration.at2
-rw-r--r--tests/gstring.at2
-rw-r--r--tests/int.at2
-rw-r--r--tests/queryset00.at2
-rw-r--r--tests/queryset01.at2
-rw-r--r--tests/real.at2
-rw-r--r--tests/regset.at2
-rw-r--r--tests/string.at2
-rw-r--r--tests/type_of.at2
-rw-r--r--tests/unset.at2
18 files changed, 25 insertions, 19 deletions
diff --git a/NEWS b/NEWS
index 338a523..f2fbb38 100644
--- a/NEWS
+++ b/NEWS
@@ -1,8 +1,12 @@
1vmod-variable -- history of user-visible changes. 2017-08-06 1vmod-variable -- history of user-visible changes. 2017-08-10
2Copyright (C) 2015-2016 Sergey Poznyakoff 2Copyright (C) 2015-2017 Sergey Poznyakoff
3See the end of file for copying conditions. 3See the end of file for copying conditions.
4 4
5Please send vmod-variable bug reports to <gray@gnu.org> 5Please send vmod-variable bug reports to <gray@gnu.org>
6
7Version 1.2, 2017-08-10
8
9* Support for Varnish 5.1
6 10
7 11
8Version 1.1, 2017-08-06 12Version 1.1, 2017-08-06
@@ -22,7 +26,7 @@ Initial release
22========================================================================= 26=========================================================================
23Copyright information: 27Copyright information:
24 28
25Copyright (C) 2015-2016 Sergey Poznyakoff 29Copyright (C) 2015-2017 Sergey Poznyakoff
26 30
27 Permission is granted to anyone to make or distribute verbatim copies 31 Permission is granted to anyone to make or distribute verbatim copies
28 of this document as received, in any medium, provided that the 32 of this document as received, in any medium, provided that the
diff --git a/acvmod b/acvmod
Subproject ba32780019480b89cd9d796b93a76cae6afe99a Subproject 5f6dce2f7dd35a154333bb42d134a018b981f81
diff --git a/configure.ac b/configure.ac
index e968280..e80461a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,12 +14,13 @@
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>. 15# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>.
16AC_PREREQ(2.69) 16AC_PREREQ(2.69)
17AC_INIT([vmod-variable], [1.1], [gray@gnu.org]) 17AC_INIT([vmod-variable], [1.2], [gray@gnu.org])
18AC_CONFIG_AUX_DIR([build-aux]) 18AC_CONFIG_AUX_DIR([build-aux])
19AC_CONFIG_MACRO_DIR([m4]) 19AC_CONFIG_MACRO_DIR([m4])
20AC_CONFIG_SRCDIR(src/variable.vcc) 20AC_CONFIG_SRCDIR(src/variable.vcc)
21AM_CONFIG_HEADER(config.h) 21AM_CONFIG_HEADER(config.h)
22 22
23AC_SUBST([AC_VMOD_BASENAME],[variable])
23AC_CANONICAL_SYSTEM 24AC_CANONICAL_SYSTEM
24AC_LANG(C) 25AC_LANG(C)
25 26
@@ -49,7 +50,7 @@ AC_CHECK_FUNCS(sysinfo getloadavg)
49AC_CHECK_LIB(pcre, pcre_compile,, 50AC_CHECK_LIB(pcre, pcre_compile,,
50 AC_MSG_ERROR([required library libpcre not found])) 51 AC_MSG_ERROR([required library libpcre not found]))
51 52
52AM_VARNISHAPI([4.1]) 53AM_VARNISHAPI([4.1],[5.1])
53 54
54AC_CONFIG_TESTDIR(tests) 55AC_CONFIG_TESTDIR(tests)
55AC_CONFIG_FILES([tests/Makefile tests/atlocal]) 56AC_CONFIG_FILES([tests/Makefile tests/atlocal])
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 2d5a2d6..114533e 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 f229f09..993dded 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -2,7 +2,7 @@
2# Configurable variable values for vmod-variable test suite. 2# Configurable variable values for vmod-variable test suite.
3# Copyright (C) 2015, 2017 Sergey Poznyakoff 3# Copyright (C) 2015, 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@
8INITFILE=@abs_builddir@/.TESTINIT 8INITFILE=@abs_builddir@/.TESTINIT
diff --git a/tests/clear.at b/tests/clear.at
index 3705c64..3344bbf 100644
--- a/tests/clear.at
+++ b/tests/clear.at
@@ -17,7 +17,7 @@
17AT_SETUP(clear) 17AT_SETUP(clear)
18AT_KEYWORDS(clear) 18AT_KEYWORDS(clear)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.set("foo", req.http.Host); 22 variable.set("foo", req.http.Host);
23 variable.set("bar","two"); 23 variable.set("bar","two");
diff --git a/tests/complex.at b/tests/complex.at
index 16fe573..5f3a6ee 100644
--- a/tests/complex.at
+++ b/tests/complex.at
@@ -17,7 +17,7 @@
17AT_SETUP(complex) 17AT_SETUP(complex)
18AT_KEYWORDS(complex) 18AT_KEYWORDS(complex)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.set("foo", req.http.Host); 22 variable.set("foo", req.http.Host);
23 variable.set("bar","two"); 23 variable.set("bar","two");
diff --git a/tests/defined.at b/tests/defined.at
index 3d0d071..4844e12 100644
--- a/tests/defined.at
+++ b/tests/defined.at
@@ -17,7 +17,7 @@
17AT_SETUP(defined) 17AT_SETUP(defined)
18AT_KEYWORDS(defined) 18AT_KEYWORDS(defined)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.set("string", "test"); 22 variable.set("string", "test");
23} 23}
diff --git a/tests/duration.at b/tests/duration.at
index 0a3f1b7..f560898 100644
--- a/tests/duration.at
+++ b/tests/duration.at
@@ -17,7 +17,7 @@
17AT_SETUP(duration) 17AT_SETUP(duration)
18AT_KEYWORDS(duration) 18AT_KEYWORDS(duration)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.set_duration("minute", 1m); 22 variable.set_duration("minute", 1m);
23 variable.set_duration("hour",1h); 23 variable.set_duration("hour",1h);
diff --git a/tests/gstring.at b/tests/gstring.at
index bcf7beb..cf43583 100644
--- a/tests/gstring.at
+++ b/tests/gstring.at
@@ -17,7 +17,7 @@
17AT_SETUP(global string) 17AT_SETUP(global string)
18AT_KEYWORDS(global string gstring) 18AT_KEYWORDS(global string gstring)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 if (req.url == "/") { 22 if (req.url == "/") {
23 variable.global_set("host", req.http.Host); 23 variable.global_set("host", req.http.Host);
diff --git a/tests/int.at b/tests/int.at
index 1a7a50b..5f016bf 100644
--- a/tests/int.at
+++ b/tests/int.at
@@ -17,7 +17,7 @@
17AT_SETUP(int) 17AT_SETUP(int)
18AT_KEYWORDS(int) 18AT_KEYWORDS(int)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.set_int("ten", 10); 22 variable.set_int("ten", 10);
23 variable.set_int("five",5); 23 variable.set_int("five",5);
diff --git a/tests/queryset00.at b/tests/queryset00.at
index 230f0a5..8a7541b 100644
--- a/tests/queryset00.at
+++ b/tests/queryset00.at
@@ -17,7 +17,7 @@
17AT_SETUP(all variables) 17AT_SETUP(all variables)
18AT_KEYWORDS(queryset queryset00) 18AT_KEYWORDS(queryset queryset00)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.queryset("", regsub(req.url, ".*\?(.+)", "\1")); 22 variable.queryset("", regsub(req.url, ".*\?(.+)", "\1"));
23} 23}
diff --git a/tests/queryset01.at b/tests/queryset01.at
index 3a9b7fb..3768f5c 100644
--- a/tests/queryset01.at
+++ b/tests/queryset01.at
@@ -17,7 +17,7 @@
17AT_SETUP(selected variables) 17AT_SETUP(selected variables)
18AT_KEYWORDS(queryset queryset01) 18AT_KEYWORDS(queryset queryset01)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.queryset("x:i,foo", regsub(req.url, ".*\?(.+)", "\1")); 22 variable.queryset("x:i,foo", regsub(req.url, ".*\?(.+)", "\1"));
23} 23}
diff --git a/tests/real.at b/tests/real.at
index 6692991..74e8f39 100644
--- a/tests/real.at
+++ b/tests/real.at
@@ -17,7 +17,7 @@
17AT_SETUP(real) 17AT_SETUP(real)
18AT_KEYWORDS(real) 18AT_KEYWORDS(real)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.set_real("one-half", 0.5); 22 variable.set_real("one-half", 0.5);
23 variable.set_real("one-fourth",0.25); 23 variable.set_real("one-fourth",0.25);
diff --git a/tests/regset.at b/tests/regset.at
index d942ad2..9ee894d 100644
--- a/tests/regset.at
+++ b/tests/regset.at
@@ -17,7 +17,7 @@
17AT_SETUP(regset) 17AT_SETUP(regset)
18AT_KEYWORDS(regset) 18AT_KEYWORDS(regset)
19 19
20AT_VARNISHTEST([variable],[ 20AT_VARNISHTEST([
21sub vcl_recv { 21sub vcl_recv {
22 variable.regset("y:i,x,time:d=\3s", "^/(\d+)/(.+)/(\d+)", req.url); 22 variable.regset("y:i,x,time:d=\3s", "^/(\d+)/(.+)/(\d+)", req.url);
23}