test: hack to make json.test executable
This commit is contained in:
parent
935b1fe2e9
commit
226500cb83
@ -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 \
|
||||||
|
@ -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
1
test/.gitignore
vendored
@ -5,6 +5,7 @@
|
|||||||
/float
|
/float
|
||||||
/hton
|
/hton
|
||||||
/ip
|
/ip
|
||||||
|
/json.test.actual
|
||||||
/json/types
|
/json/types
|
||||||
/*.log
|
/*.log
|
||||||
/maths
|
/maths
|
||||||
|
@ -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
8
test/json.test
Executable 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 "$@"
|
Loading…
Reference in New Issue
Block a user