mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 21:49:07 +08:00
Extend the run_output_test() function so we actually can pass command line parameters and so we can support different output files for the same test executable. Also provide some hints about what to do if a test fails (i.e. set VERBOSE=1).
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
|
|
include ../Makefile.am.inc
|
|
|
|
LIBJSON_LA=$(top_builddir)/libjson.la
|
|
|
|
check_PROGRAMS = test1 test1Formatted
|
|
check_PROGRAMS += test2 test2Formatted
|
|
check_PROGRAMS += test4
|
|
check_PROGRAMS += test_parse_int64
|
|
check_PROGRAMS += test_null
|
|
check_PROGRAMS += test_cast
|
|
check_PROGRAMS += test_parse
|
|
|
|
test1_LDADD = $(LIBJSON_LA)
|
|
|
|
test1Formatted_LDADD= $(LIBJSON_LA)
|
|
test1Formatted_SOURCES = test1.c parse_flags.c
|
|
test1Formatted_CPPFLAGS = -DTEST_FORMATTED
|
|
|
|
test2_LDADD = $(LIBJSON_LA)
|
|
|
|
test2Formatted_LDADD= $(LIBJSON_LA)
|
|
test2Formatted_SOURCES = test2.c parse_flags.c
|
|
test2Formatted_CPPFLAGS = -DTEST_FORMATTED
|
|
|
|
test4_LDADD = $(LIBJSON_LA)
|
|
|
|
test_parse_int64_LDADD = $(LIBJSON_LA)
|
|
|
|
test_null_LDADD = $(LIBJSON_LA)
|
|
|
|
test_cast_LDADD = $(LIBJSON_LA)
|
|
|
|
test_parse_LDADD = $(LIBJSON_LA)
|
|
|
|
TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test test_parse.test
|
|
|
|
TESTS+= test_printbuf.test
|
|
check_PROGRAMS+=test_printbuf
|
|
test_printbuf_LDADD = $(LIBJSON_LA)
|
|
|
|
EXTRA_DIST=
|
|
EXTRA_DIST += $(TESTS)
|
|
|
|
testsubdir=testSubDir
|
|
TESTS_ENVIRONMENT = top_builddir=$(top_builddir)
|
|
|
|
distclean-local:
|
|
-rm -rf $(testsubdir)
|