]> granicus.if.org Git - json-c/commit
Extend test1 and test2 to run using json_object_to_json_string_ext() based on an...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 28 Apr 2012 19:14:26 +0000 (14:14 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 28 Apr 2012 19:14:26 +0000 (14:14 -0500)
commit4c7f38eb9b4cb09aef7a8c6e73bf49d602cd0476
treef3ec96728ad1b801b479212b3aa7b25d0cc53065
parent3fcffe1bb01de6978f4516abd49a3b3c9e2cd2f2
Extend test1 and test2 to run using json_object_to_json_string_ext() based on an additional command line parameter.
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).
14 files changed:
tests/Makefile.am
tests/parse_flags.c [new file with mode: 0644]
tests/parse_flags.h [new file with mode: 0644]
tests/test-defs.sh
tests/test1.c
tests/test1.test
tests/test1Formatted_plain.expected [new file with mode: 0644]
tests/test1Formatted_pretty.expected [new file with mode: 0644]
tests/test1Formatted_spaced.expected [new file with mode: 0644]
tests/test2.c
tests/test2.test
tests/test2Formatted_plain.expected [new file with mode: 0644]
tests/test2Formatted_pretty.expected [new file with mode: 0644]
tests/test2Formatted_spaced.expected [new file with mode: 0644]