diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-04 17:38:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-04 17:39:46 +0300 |
commit | e2e9e4647ae1baf3de116bc52f1f73b8cf221c76 (patch) | |
tree | 4c7f88a92aed8ebe28d1e0584737bbe9ec1d2689 /tests/testsuite.at | |
parent | 9d9f34d1ef0483fc012ea283e649d507ff410638 (diff) | |
download | vmod-variable-e2e9e4647ae1baf3de116bc52f1f73b8cf221c76.tar.gz vmod-variable-e2e9e4647ae1baf3de116bc52f1f73b8cf221c76.tar.bz2 |
Switch to new acvmod
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r-- | tests/testsuite.at | 48 |
1 files changed, 10 insertions, 38 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index 4f39be9..6b6c14f 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -1,50 +1,22 @@ -# This file is part of vmod-variable -*- autotest -*- -# Copyright (C) 2015 Sergey Poznyakoff -# -# Vmod-variable is free software; you can redistribute it and/or modify +# This file is part of vmod_variable. +# Copyright (C) 2017 Sergey Poznyakoff +# +# Vmod_variable is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. -# -# Vmod-variable is distributed in the hope that it will be useful, +# +# Vmod_variable is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License -# along with vmod-variable. If not, see <http://www.gnu.org/licenses/>. - -m4_version_prereq([2.52g]) - -m4_define([AT_SKIP_TEST],[exit 77]) - -dnl AT_VARNISHTEST(VCL, CLT[, SRV]) -m4_define([AT_VARNISHTEST],[ -AT_CHECK([ -cat > test.vtc <<EOT -server s1 { -m4_if($3,,[dnl - rxreq - txresp],[$3]) -} -start - -varnish v1 -vcl+backend { - import std; - import variable from "$abs_top_builddir/src/.libs/libvmod_variable.so"; -$1 -} -start - -client c1 { -$2 -} -run -EOT -$VARNISHTEST test.vtc | sed 's/^#.*TEST test.vtc passed.*/OK/' -], -[0], -[OK -])]) +# along with vmod_variable. If not, see <http://www.gnu.org/licenses/>. +m4_include([../acvmod/testsuite.inc]) AT_INIT +# Include your tests here m4_include([string.at]) m4_include([int.at]) m4_include([real.at]) |