Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
11ed4f24
Commit
11ed4f24
authored
Dec 04, 2023
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Add vtim_test to the libvarnish test suite
parent
2aac0408
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
Makefile.am
lib/libvarnish/Makefile.am
+12
-1
vtim.c
lib/libvarnish/vtim.c
+1
-8
No files found.
lib/libvarnish/Makefile.am
View file @
11ed4f24
...
...
@@ -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
lib/libvarnish/vtim.c
View file @
11ed4f24
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment