[master] d906981 The test for standalone vrt.h runs on compilers that insist on a .c source.
Geoff Simmons
geoff at uplex.de
Thu Mar 9 11:40:07 CET 2017
commit d906981a2de991e03606b4c446a8cbb910463253
Author: Geoff Simmons <geoff at uplex.de>
Date: Thu Mar 9 11:28:30 2017 +0100
The test for standalone vrt.h runs on compilers that insist on a .c source.
diff --git a/.gitignore b/.gitignore
index f2993f7..74fb278 100644
--- a/.gitignore
+++ b/.gitignore
@@ -110,6 +110,10 @@ cscope.*out
/bin/varnishtest/tests/*.log
/bin/varnishtest/tests/*.log-t
/bin/varnishtest/test-suite.log
+/include/vrt.c
+/include/_vrt_test
+/include/vrt_test
+/include/vrt_test.*
# vtest.sh droppings
tmp/
diff --git a/include/Makefile.am b/include/Makefile.am
index 781dfd9..9996b37 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -126,7 +126,8 @@ CLEANFILES = \
vrt_obj.h \
vmod_abi.h \
vrt_test \
- _vrt_test
+ _vrt_test \
+ vrt.c
TESTS = vbm_test vrt_test
@@ -134,10 +135,13 @@ noinst_PROGRAMS = ${TESTS}
vbm_test_SOURCES = vbm_test.c vbm.h
-vrt_test_SOURCES =
+vrt_test_SOURCES = vrt.c
-vrt_test$(EXEEXT):
- echo "exec ${CC} -c -o _vrt_test $(top_srcdir)/include/vrt.h" > vrt_test
+vrt.c: vrt.h
+ cp vrt.h vrt.c
+
+vrt_test$(EXEEXT): vrt.c
+ echo "exec ${CC} -c -o _vrt_test $(top_srcdir)/include/vrt.c" > vrt_test
chmod +x vrt_test
test: ${TESTS}
More information about the varnish-commit
mailing list