Commit 0d183816 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

build: Manage the VMOD test suite like the main one

We no longer need a special per-VMOD case since we now have one unified
VMOD test suite.
parent 3c64cf39
......@@ -2,9 +2,6 @@
TESTS = @VTC_TESTS@
vtc-refresh-tests:
@cd $(top_builddir) && ./config.status --recheck
include $(top_srcdir)/vtc.am
DISTCLEANFILES = _.ok
......
......@@ -842,6 +842,10 @@ VTC_TESTS="$(cd $srcdir/bin/varnishtest && echo tests/*.vtc)"
AC_SUBST(VTC_TESTS)
AM_SUBST_NOTMAKE(VTC_TESTS)
VMOD_TESTS="$(cd $srcdir/vmod && echo tests/*.vtc)"
AC_SUBST(VMOD_TESTS)
AM_SUBST_NOTMAKE(VMOD_TESTS)
VSC_SRC="$(cd $srcdir/bin/varnishd && echo *.vsc)"
VSC_GEN_C="$(echo $VSC_SRC | sed 's:\.vsc:.c:g')"
VSC_GEN_H="$(echo $VSC_SRC | sed 's:\.vsc:.h:g')"
......
#
TESTS = @VMOD_TESTS@
include $(top_srcdir)/vtc.am
AM_LDFLAGS = $(AM_LT_LDFLAGS)
AM_CPPFLAGS = \
......@@ -81,7 +85,7 @@ libvmod_vtc_la_SOURCES = \
#
vmod_LTLIBRARIES =
EXTRA_DIST = $(libvmod_debug_extra_sources)
EXTRA_DIST = $(libvmod_debug_extra_sources) $(TESTS)
CLEANFILES = $(libvmod_debug_built_sources)
BUILT_SOURCES = $(libvmod_debug_built_sources)
......@@ -110,33 +114,3 @@ vmod_debug_symbols_regex = 'Vmod_.*_Data'
# not --strict
vmodtoolargs_debug = --boilerplate -o vcc_debug_if
#
# Manage the vmod test suite
#
TESTS = \
tests/cookie_b00000.vtc \
tests/cookie_b00001.vtc \
tests/cookie_b00002.vtc \
tests/cookie_b00003.vtc \
tests/cookie_b00004.vtc \
tests/cookie_b00005.vtc \
tests/cookie_b00006.vtc \
tests/cookie_b00007.vtc \
tests/cookie_b00008.vtc \
tests/cookie_b00009.vtc \
tests/cookie_b00010.vtc \
tests/cookie_b00011.vtc \
tests/cookie_b00012.vtc \
tests/cookie_b00013.vtc \
tests/cookie_r00028.vtc \
tests/cookie_v00000.vtc \
tests/std_b00001.vtc
EXTRA_DIST += $(TESTS)
vtc-refresh-tests:
@cd $(top_builddir) && ./config.status --file=$(subdir)/Makefile
include $(top_srcdir)/vtc.am
......@@ -17,5 +17,5 @@ vtc-check-tests:
@mkdir -p tests ; \
LC_ALL=C; \
if [ "$$(cd $(srcdir) && echo tests/*.vtc)" != "$(TESTS)" ]; then \
$(MAKE) $(AM_MAKEFLAGS) vtc-refresh-tests ; \
cd $(top_builddir) && ./config.status --recheck ; \
fi
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