diff options
-rw-r--r-- | NEWS | 10 | ||||
m--------- | acvmod | 0 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/atlocal.in | 2 | ||||
-rw-r--r-- | tests/clear.at | 2 | ||||
-rw-r--r-- | tests/complex.at | 2 | ||||
-rw-r--r-- | tests/defined.at | 2 | ||||
-rw-r--r-- | tests/duration.at | 2 | ||||
-rw-r--r-- | tests/gstring.at | 2 | ||||
-rw-r--r-- | tests/int.at | 2 | ||||
-rw-r--r-- | tests/queryset00.at | 2 | ||||
-rw-r--r-- | tests/queryset01.at | 2 | ||||
-rw-r--r-- | tests/real.at | 2 | ||||
-rw-r--r-- | tests/regset.at | 2 | ||||
-rw-r--r-- | tests/string.at | 2 | ||||
-rw-r--r-- | tests/type_of.at | 2 | ||||
-rw-r--r-- | tests/unset.at | 2 |
18 files changed, 25 insertions, 19 deletions
@@ -1,8 +1,12 @@ | |||
1 | vmod-variable -- history of user-visible changes. 2017-08-06 | 1 | vmod-variable -- history of user-visible changes. 2017-08-10 |
2 | Copyright (C) 2015-2016 Sergey Poznyakoff | 2 | Copyright (C) 2015-2017 Sergey Poznyakoff |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
5 | Please send vmod-variable bug reports to <gray@gnu.org> | 5 | Please send vmod-variable bug reports to <gray@gnu.org> |
6 | |||
7 | Version 1.2, 2017-08-10 | ||
8 | |||
9 | * Support for Varnish 5.1 | ||
6 | 10 | ||
7 | 11 | ||
8 | Version 1.1, 2017-08-06 | 12 | Version 1.1, 2017-08-06 |
@@ -22,7 +26,7 @@ Initial release | |||
22 | ========================================================================= | 26 | ========================================================================= |
23 | Copyright information: | 27 | Copyright information: |
24 | 28 | ||
25 | Copyright (C) 2015-2016 Sergey Poznyakoff | 29 | Copyright (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/>. |
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-variable], [1.1], [gray@gnu.org]) | 17 | AC_INIT([vmod-variable], [1.2], [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
19 | AC_CONFIG_MACRO_DIR([m4]) | 19 | AC_CONFIG_MACRO_DIR([m4]) |
20 | AC_CONFIG_SRCDIR(src/variable.vcc) | 20 | AC_CONFIG_SRCDIR(src/variable.vcc) |
21 | AM_CONFIG_HEADER(config.h) | 21 | AM_CONFIG_HEADER(config.h) |
22 | 22 | ||
23 | AC_SUBST([AC_VMOD_BASENAME],[variable]) | ||
23 | AC_CANONICAL_SYSTEM | 24 | AC_CANONICAL_SYSTEM |
24 | AC_LANG(C) | 25 | AC_LANG(C) |
25 | 26 | ||
@@ -49,7 +50,7 @@ AC_CHECK_FUNCS(sysinfo getloadavg) | |||
49 | AC_CHECK_LIB(pcre, pcre_compile,, | 50 | AC_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 | ||
52 | AM_VARNISHAPI([4.1]) | 53 | AM_VARNISHAPI([4.1],[5.1]) |
53 | 54 | ||
54 | AC_CONFIG_TESTDIR(tests) | 55 | AC_CONFIG_TESTDIR(tests) |
55 | AC_CONFIG_FILES([tests/Makefile tests/atlocal]) | 56 | AC_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 | ||
5 | PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:$PATH | 5 | PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:@VARNISH_SBINDIR@:$PATH |
6 | VARNISHTEST=@VARNISHTEST@ | 6 | VARNISHTEST=@VARNISHTEST@ |
7 | VARNISHD=@VARNISHD@ | 7 | VARNISHD=@VARNISHD@ |
8 | INITFILE=@abs_builddir@/.TESTINIT | 8 | INITFILE=@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 @@ | |||
17 | AT_SETUP(clear) | 17 | AT_SETUP(clear) |
18 | AT_KEYWORDS(clear) | 18 | AT_KEYWORDS(clear) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(complex) | 17 | AT_SETUP(complex) |
18 | AT_KEYWORDS(complex) | 18 | AT_KEYWORDS(complex) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(defined) | 17 | AT_SETUP(defined) |
18 | AT_KEYWORDS(defined) | 18 | AT_KEYWORDS(defined) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(duration) | 17 | AT_SETUP(duration) |
18 | AT_KEYWORDS(duration) | 18 | AT_KEYWORDS(duration) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(global string) | 17 | AT_SETUP(global string) |
18 | AT_KEYWORDS(global string gstring) | 18 | AT_KEYWORDS(global string gstring) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(int) | 17 | AT_SETUP(int) |
18 | AT_KEYWORDS(int) | 18 | AT_KEYWORDS(int) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(all variables) | 17 | AT_SETUP(all variables) |
18 | AT_KEYWORDS(queryset queryset00) | 18 | AT_KEYWORDS(queryset queryset00) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(selected variables) | 17 | AT_SETUP(selected variables) |
18 | AT_KEYWORDS(queryset queryset01) | 18 | AT_KEYWORDS(queryset queryset01) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(real) | 17 | AT_SETUP(real) |
18 | AT_KEYWORDS(real) | 18 | AT_KEYWORDS(real) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 @@ | |||
17 | AT_SETUP(regset) | 17 | AT_SETUP(regset) |
18 | AT_KEYWORDS(regset) | 18 | AT_KEYWORDS(regset) |
19 | 19 | ||
20 | AT_VARNISHTEST([variable],[ | 20 | AT_VARNISHTEST([ |
21 | sub vcl_recv { | 21 | sub 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 | } |