Commit d906981a authored by Geoff Simmons's avatar Geoff Simmons

The test for standalone vrt.h runs on compilers that insist on a .c source.

parent f5179ab2
......@@ -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/
......
......@@ -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}
......
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