aboutsummaryrefslogtreecommitdiff
path: root/tests/testsuite.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at48
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])

Return to:

Send suggestions and report system problems to the System administrator.