diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-08-01 19:20:54 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-08-02 10:48:54 +0300 |
commit | 73f605f76d82aec40a7f1bbd309e2097d9abfd42 (patch) | |
tree | 5820713d17efcb482a8801f4f805b0ae121903f7 /tests | |
parent | d78a58be5fa2385987a3141ccbe942107332e677 (diff) | |
download | vmod-tbf-73f605f76d82aec40a7f1bbd309e2097d9abfd42.tar.gz vmod-tbf-73f605f76d82aec40a7f1bbd309e2097d9abfd42.tar.bz2 |
Switch to CDB environment.
* configure.ac: Version 0.99.91
* src/tbf.c (dbdir): New static.
(tbf_set_db_name): Remove.
(tbf_set_db_dir): New function.
(tbf_open): Rename the parameter and related variables.
Create a CDB environment and the database in it.
(vmod_open): Change semantics of the first argument.
* src/vmod-tbf.3: Update.
* tests/Makefile.am (distclean-local): New rule, instead of
DISTCLEANFILES.
* tests/test00.vtc: Update call to tbf.open.
* tests/test01.vtc: Likewise.
* tests/test02.vtc: Likewise.
* tests/test03.vtc: Likewise.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/test00.vtc | 2 | ||||
-rw-r--r-- | tests/test01.vtc | 2 | ||||
-rw-r--r-- | tests/test02.vtc | 2 | ||||
-rw-r--r-- | tests/test03.vtc | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 383f18a..4790115 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,9 @@ VMOD_TESTS = \ time00.vtc EXTRA_DIST=$(VMOD_TESTS) -DISTCLEANFILES=tbf.db +distclean-local: + rm -fr tbf + check: cd $(abs_srcdir); \ for t in $(VMOD_TESTS); do \ diff --git a/tests/test00.vtc b/tests/test00.vtc index 10f99ca..f69f5ed 100644 --- a/tests/test00.vtc +++ b/tests/test00.vtc @@ -8,7 +8,7 @@ server s1 { varnish v1 -vcl+backend { import tbf from "${vmod_topbuild}/src/.libs/libvmod_tbf.so"; sub vcl_init { - tbf.open("${vmod_topbuild}/tests/tbf.db", "truncate"); + tbf.open("${vmod_topbuild}/tests/tbf", "truncate"); } sub vcl_fini { tbf.close(); diff --git a/tests/test01.vtc b/tests/test01.vtc index ad6f7d1..39eb4c3 100644 --- a/tests/test01.vtc +++ b/tests/test01.vtc @@ -8,7 +8,7 @@ server s1 { varnish v1 -vcl+backend { import tbf from "${vmod_topbuild}/src/.libs/libvmod_tbf.so"; sub vcl_init { - tbf.open("${vmod_topbuild}/tests/tbf.db", "trunc"); + tbf.open("${vmod_topbuild}/tests/tbf", "trunc"); } sub vcl_fini { tbf.close(); diff --git a/tests/test02.vtc b/tests/test02.vtc index b957181..8df6730 100644 --- a/tests/test02.vtc +++ b/tests/test02.vtc @@ -8,7 +8,7 @@ server s1 { varnish v1 -vcl+backend { import tbf from "${vmod_topbuild}/src/.libs/libvmod_tbf.so"; sub vcl_init { - tbf.open("${vmod_topbuild}/tests/tbf.db", "truncate"); + tbf.open("${vmod_topbuild}/tests/tbf", "truncate"); } sub vcl_fini { tbf.close(); diff --git a/tests/test03.vtc b/tests/test03.vtc index 5ffba9a..aa23da4 100644 --- a/tests/test03.vtc +++ b/tests/test03.vtc @@ -8,7 +8,7 @@ server s1 { varnish v1 -vcl+backend { import tbf from "${vmod_topbuild}/src/.libs/libvmod_tbf.so"; sub vcl_init { - tbf.open("${vmod_topbuild}/tests/tbf.db", "trunc"); + tbf.open("${vmod_topbuild}/tests/tbf", "trunc"); } sub vcl_fini { tbf.close(); |