test: hack to make json.test executable

This commit is contained in:
Danny Robson 2014-08-01 21:37:04 +10:00
parent 935b1fe2e9
commit 226500cb83
6 changed files with 12 additions and 4 deletions

View File

@ -67,6 +67,7 @@ UTIL_FILES = \
image.hpp \ image.hpp \
io.cpp \ io.cpp \
io.hpp \ io.hpp \
io.ipp \
ip.cpp \ ip.cpp \
ip.hpp \ ip.hpp \
iterator.hpp \ iterator.hpp \

View File

@ -258,8 +258,6 @@ AC_CONFIG_FILES([
Doxyfile Doxyfile
Makefile Makefile
test/Makefile test/Makefile
test/json.test test/json.test.actual
], [
chmod a+x test/json.test
]) ])
AC_OUTPUT AC_OUTPUT

1
test/.gitignore vendored
View File

@ -5,6 +5,7 @@
/float /float
/hton /hton
/ip /ip
/json.test.actual
/json/types /json/types
/*.log /*.log
/maths /maths

View File

@ -37,4 +37,4 @@ endif
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh
TESTS = static.test json.test TESTS = static.test json.test
check_PROGRAMS = $(TEST_BIN) check_PROGRAMS = $(TEST_BIN)
EXTRA_DIST = static.test json.test EXTRA_DIST = static.test json.test.actual json.test

8
test/json.test Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
## This is just an ugly hack to pass execution from a known exectuable
## application to the test application. config.status won't preserve
## executable bits on the new file, so we can't just use the generated test
## application directly.
/bin/sh `dirname $0`/json.test.actual "$@"