Commit 9990f227 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Do the tests from the src directory

parent 1e99a2af
...@@ -68,7 +68,6 @@ fi ...@@ -68,7 +68,6 @@ fi
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile
src/Makefile src/Makefile
src/tests/Makefile
man/Makefile man/Makefile
]) ])
AC_OUTPUT AC_OUTPUT
SUBDIRS = tests
INCLUDES = -I$(VARNISHSRC)/include -I$(VARNISHSRC) INCLUDES = -I$(VARNISHSRC)/include -I$(VARNISHSRC)
vmoddir = $(VMODDIR) vmoddir = $(VMODDIR)
...@@ -15,7 +13,16 @@ libvmod_example_la_SOURCES = \ ...@@ -15,7 +13,16 @@ libvmod_example_la_SOURCES = \
vcc_if.c vcc_if.h: $(VARNISHSRC)/lib/libvmod_std/vmod.py $(top_srcdir)/src/vmod_example.vcc vcc_if.c vcc_if.h: $(VARNISHSRC)/lib/libvmod_std/vmod.py $(top_srcdir)/src/vmod_example.vcc
@PYTHON@ $(VARNISHSRC)/lib/libvmod_std/vmod.py $(top_srcdir)/src/vmod_example.vcc @PYTHON@ $(VARNISHSRC)/lib/libvmod_std/vmod.py $(top_srcdir)/src/vmod_example.vcc
VMOD_TESTS = tests/*.vtc
.PHONY: $(VMOD_TESTS)
tests/*.vtc:
$(VARNISHSRC)/bin/varnishtest/varnishtest -Dvarnishd=$(VARNISHSRC)/bin/varnishd/varnishd -Dvmod_topbuild=$(abs_top_builddir) $@
check: $(VMOD_TESTS)
EXTRA_DIST = \ EXTRA_DIST = \
vmod_example.vcc vmod_example.vcc \
$(VMOD_TESTS)
CLEANFILES = $(builddir)/vcc_if.c $(builddir)/vcc_if.h CLEANFILES = $(builddir)/vcc_if.c $(builddir)/vcc_if.h
VMOD_TESTS = *.vtc
.PHONY: $(VMOD_TESTS)
*.vtc:
$(VARNISHSRC)/bin/varnishtest/varnishtest -Dvarnishd=$(VARNISHSRC)/bin/varnishd/varnishd -Dvmod_topbuild=$(abs_top_builddir) $@
check: $(VMOD_TESTS)
EXTRA_DIST = \
$(VMOD_TESTS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment