Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdfp-pipe
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
libvdfp-pipe
Commits
292fc6b8
Commit
292fc6b8
authored
Aug 06, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use autoconf to reliably get paths for test programs.
parent
71e53dbd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
configure.ac
configure.ac
+3
-0
Makefile.am
src/Makefile.am
+1
-1
vdp.vtc
src/tests/vdp.vtc
+1
-1
No files found.
configure.ac
View file @
292fc6b8
...
...
@@ -21,6 +21,9 @@ if test "x$ac_cv_prog_cc_c99" = xno; then
fi
AC_PROG_CPP
# To get absolute paths in the vtc tests.
AC_PATH_PROG([CAT], [cat], [])
AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
LIBS="$PTHREAD_LIBS $LIBS"
...
...
src/Makefile.am
View file @
292fc6b8
...
...
@@ -29,7 +29,7 @@ AM_TESTS_ENVIRONMENT = \
LD_LIBRARY_PATH
=
"
$(VARNISH_LIBRARY_PATH)
"
TEST_EXTENSIONS
=
.vtc
VTC_LOG_COMPILER
=
varnishtest
-v
AM_VTC_LOG_FLAGS
=
-Dvmod_pipe
=
"
$(VMOD_PIPE)
"
AM_VTC_LOG_FLAGS
=
-Dvmod_pipe
=
"
$(VMOD_PIPE)
"
-Dcat
=
"
$(CAT)
"
TESTS
=
@VMOD_TESTS@
# To test an individual VTC test named test.vtc:
...
...
src/tests/vdp.vtc
View file @
292fc6b8
...
...
@@ -45,7 +45,7 @@ varnish v1 -vcl+backend {
import ${vmod_pipe};
sub vcl_init {
new cat = pipe.vdp(name="cat", path="
/bin/cat
");
new cat = pipe.vdp(name="cat", path="
${cat}
");
}
sub vcl_backend_response {
...
...
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