Unverified Commit cdca08cb authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Nils Goroll

build: Always build vxp_test

To make sure it is always readily available without an extra step, and
that it doesn't rot away missing build flags or triggerring developer
warnings like GCC's -Wtautological-constant-out-of-range-compare.
parent 12bbe31f
......@@ -123,6 +123,7 @@ cscope.*out
/lib/libvarnish/vsb_test
/lib/libvarnishapi/vsl_glob_test
/lib/libvarnishapi/vsl_glob_test_coverage
/lib/libvarnishapi/vxp_test
# vtc-bisect.sh default vtc
/bisect.vtc
......
......@@ -72,17 +72,18 @@ vxp_tokens.h: \
$(srcdir)/generate.py
@PYTHON@ $(srcdir)/generate.py $(srcdir) $(top_builddir)
EXTRA_PROGRAMS = vxp_test
noinst_PROGRAMS += vxp_test
vxp_test_SOURCES = \
$(libvarnishapi_la_SOURCES) \
vxp_test.c
vxp_test_CFLAGS = \
-DVARNISH_STATE_DIR='"${VARNISH_STATE_DIR}"' \
-DVXP_DEBUG
-DVXP_DEBUG \
${SAN_CFLAGS}
vxp_test_LDADD = \
$(top_builddir)/lib/libvarnish/libvarnish.la \
${RT_LIBS} ${LIBM} ${PTHREAD_LIBS}
${RT_LIBS} ${LIBM} ${PTHREAD_LIBS} ${SAN_LDFLAGS}
TESTS = vsl_glob_test
......
......@@ -58,7 +58,7 @@ main(int argc, char * const *argv)
struct vsb *vsb;
struct vex *vex;
char *q_arg = NULL;
char opt;
int opt;
while ((opt = getopt(argc, argv, "q:")) != -1) {
switch (opt) {
......
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