Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
trackrdrd
Commits
61db8ad6
Commit
61db8ad6
authored
Feb 06, 2024
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linkage of test programs.
Changed due to the corrected declaration of globals in code for the binary.
parent
d4e9b175
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
Makefile.am
src/test/Makefile.am
+17
-0
test_mq.c
src/test/test_mq.c
+18
-0
No files found.
src/test/Makefile.am
View file @
61db8ad6
...
@@ -25,6 +25,9 @@ test_parse_LDADD = \
...
@@ -25,6 +25,9 @@ test_parse_LDADD = \
-lm
\
-lm
\
../parse.
$(OBJEXT)
\
../parse.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../log.
$(OBJEXT)
\
../config.
$(OBJEXT)
\
../config_common.
$(OBJEXT)
\
@VARNISH_LIBS@
@VARNISH_LIBS@
test_data_SOURCES
=
\
test_data_SOURCES
=
\
...
@@ -36,6 +39,9 @@ test_data_SOURCES = \
...
@@ -36,6 +39,9 @@ test_data_SOURCES = \
test_data_LDADD
=
\
test_data_LDADD
=
\
../data.
$(OBJEXT)
\
../data.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../log.
$(OBJEXT)
\
../config.
$(OBJEXT)
\
../config_common.
$(OBJEXT)
\
@VARNISH_LIBS@
@VARNISH_LIBS@
test_append_SOURCES
=
\
test_append_SOURCES
=
\
...
@@ -53,6 +59,7 @@ test_append_LDADD = \
...
@@ -53,6 +59,7 @@ test_append_LDADD = \
../parse.
$(OBJEXT)
\
../parse.
$(OBJEXT)
\
../config.
$(OBJEXT)
\
../config.
$(OBJEXT)
\
../config_common.
$(OBJEXT)
\
../config_common.
$(OBJEXT)
\
../handler.
$(OBJEXT)
\
../sandbox.
$(OBJEXT)
\
../sandbox.
$(OBJEXT)
\
@VARNISH_LIBS@
@VARNISH_LIBS@
...
@@ -67,6 +74,12 @@ test_mq_SOURCES = \
...
@@ -67,6 +74,12 @@ test_mq_SOURCES = \
test_mq_LDADD
=
\
test_mq_LDADD
=
\
-ldl
\
-ldl
\
-lm
\
-lm
\
../worker.
$(OBJEXT)
\
../config.
$(OBJEXT)
\
../config_common.
$(OBJEXT)
\
../log.
$(OBJEXT)
\
../spmcq.
$(OBJEXT)
\
../data.
$(OBJEXT)
\
@VARNISH_LIBS@
@VARNISH_LIBS@
test_spmcq_SOURCES
=
\
test_spmcq_SOURCES
=
\
...
@@ -77,6 +90,9 @@ test_spmcq_SOURCES = \
...
@@ -77,6 +90,9 @@ test_spmcq_SOURCES = \
test_spmcq_LDADD
=
\
test_spmcq_LDADD
=
\
../spmcq.
$(OBJEXT)
\
../spmcq.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../config.
$(OBJEXT)
\
../config_common.
$(OBJEXT)
\
../log.
$(OBJEXT)
\
@VARNISH_LIBS@
@VARNISH_LIBS@
test_config_SOURCES
=
\
test_config_SOURCES
=
\
...
@@ -91,6 +107,7 @@ test_config_SOURCES = \
...
@@ -91,6 +107,7 @@ test_config_SOURCES = \
test_config_LDADD
=
\
test_config_LDADD
=
\
../assert.
$(OBJEXT)
\
../assert.
$(OBJEXT)
\
../spmcq.
$(OBJEXT)
\
-lm
\
-lm
\
@VARNISH_LIBS@
@VARNISH_LIBS@
...
...
src/test/test_mq.c
View file @
61db8ad6
...
@@ -74,6 +74,24 @@ init(void)
...
@@ -74,6 +74,24 @@ init(void)
#undef METHOD
#undef METHOD
}
}
/* Called from worker.c, but we don't want to pull in all of monitor.c's
dependecies. */
void
MON_StatsUpdate
(
stats_update_t
update
,
unsigned
nchunks
,
unsigned
nbytes
)
{
(
void
)
update
;
(
void
)
nchunks
;
(
void
)
nbytes
;
}
/* Called from worker.c, but we don't want to pull in all of child.c's
dependecies. */
int
RDR_Exhausted
(
void
)
{
return
0
;
}
static
void
static
void
fini
(
void
)
fini
(
void
)
{
{
...
...
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