Commit 11ed4f24 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

build: Add vtim_test to the libvarnish test suite

parent 2aac0408
......@@ -46,7 +46,14 @@ libvarnish_la_SOURCES = \
libvarnish_la_LIBADD = @PCRE2_LIBS@ $(LIBM)
TESTS = vav_test vbh_test vct_test vjsn_test vnum_c_test vsb_test
TESTS = \
vav_test \
vbh_test \
vct_test \
vjsn_test \
vnum_c_test \
vsb_test \
vtim_test
noinst_PROGRAMS = ${TESTS}
......@@ -73,3 +80,7 @@ vjsn_test_LDADD = $(AM_LDFLAGS) libvarnish.la
vsb_test_SOURCES = vsb_test.c
vsb_test_CFLAGS = $(AM_CFLAGS) -DVSB_TEST
vsb_test_LDADD = $(AM_LDFLAGS) libvarnish.la
vtim_test_SOURCES = vtim.c
vtim_test_CFLAGS = $(AM_CFLAGS) -DTEST_DRIVER
vtim_test_LDADD = $(AM_LDFLAGS) libvarnish.la
......@@ -454,16 +454,8 @@ VTIM_timespec(vtim_dur t)
return (tv);
}
#ifdef TEST_DRIVER
/**********************************************************************
* Compile with:
* cc -o foo -DTEST_DRIVER -I../.. -I../../include vtim.c vas.c -lm
* Test with:
* ./foo
*/
#include <stdint.h>
static void
......@@ -642,4 +634,5 @@ main(int argc, char **argv)
return (0);
}
#endif
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