summaryrefslogtreecommitdiffabout
path: root/tests/test02.at
Side-by-side diff
Diffstat (limited to 'tests/test02.at') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/test02.at9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test02.at b/tests/test02.at
index df639a5..459a3cc 100644
--- a/tests/test02.at
+++ b/tests/test02.at
@@ -15,7 +15,7 @@
# along with vmod-binlog. If not, see <http://www.gnu.org/licenses/>.
AT_SETUP([log rotation])
-AT_KEYWORDS([rotation])
+AT_KEYWORDS([test02 rotation])
AT_CHECK([
cwd=`pwd`
@@ -32,13 +32,16 @@ server s1 {
varnish v1 -vcl+backend {
import binlog from "$abs_top_builddir/src/.libs/libvmod_binlog.so";
sub vcl_init {
- binlog.init("dir=$cwd/log;size=1M;interval=10;roundts=1;pattern=%S.log");
+ binlog.init("$cwd/log","LL","size=1M;interval=10;roundts=1;pattern=%S.log");
}
sub vcl_fini {
binlog.close();
}
sub vcl_recv {
- binlog.sappend(req.http.X-nid, req.http.X-aid);
+ binlog.start();
+ binlog.pack(req.http.X-nid);
+ binlog.pack(req.http.X-aid);
+ binlog.commit();
return (lookup);
}
} -start

Return to:

Send suggestions and report system problems to the System administrator.