Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 9990f22

Browse files
committed
Do the tests from the src directory
1 parent 1e99a2a commit 9990f22

3 files changed

Lines changed: 10 additions & 14 deletions

File tree

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ fi
6868
AC_CONFIG_FILES([
6969
Makefile
7070
src/Makefile
71-
src/tests/Makefile
7271
man/Makefile
7372
])
7473
AC_OUTPUT

src/Makefile.am

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
SUBDIRS = tests
2-
31
INCLUDES = -I$(VARNISHSRC)/include -I$(VARNISHSRC)
42

53
vmoddir = $(VMODDIR)
@@ -15,7 +13,16 @@ libvmod_example_la_SOURCES = \
1513
vcc_if.c vcc_if.h: $(VARNISHSRC)/lib/libvmod_std/vmod.py $(top_srcdir)/src/vmod_example.vcc
1614
@PYTHON@ $(VARNISHSRC)/lib/libvmod_std/vmod.py $(top_srcdir)/src/vmod_example.vcc
1715

16+
VMOD_TESTS = tests/*.vtc
17+
.PHONY: $(VMOD_TESTS)
18+
19+
tests/*.vtc:
20+
$(VARNISHSRC)/bin/varnishtest/varnishtest -Dvarnishd=$(VARNISHSRC)/bin/varnishd/varnishd -Dvmod_topbuild=$(abs_top_builddir) $@
21+
22+
check: $(VMOD_TESTS)
23+
1824
EXTRA_DIST = \
19-
vmod_example.vcc
25+
vmod_example.vcc \
26+
$(VMOD_TESTS)
2027

2128
CLEANFILES = $(builddir)/vcc_if.c $(builddir)/vcc_if.h

src/tests/Makefile.am

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)