summaryrefslogtreecommitdiffstats
path: root/jq_test.c
AgeCommit message (Collapse)Author
2015-07-19Clean up trailing whitespaceDavid Tolnay
2015-06-28Make --run-tests' jv_test() quietNicolas Williams
2015-06-27Make --run-tests less verbose by defaultNicolas Williams
Adding --debug-trace or --debug-dump-disasm before --run-tests now makes it verbose.
2015-06-20fix errors flagged by clang static analyzerDavid Tolnay
builtin.c: bug - free of uninitialized jv compile.c: missing assertion jq_test.c: buggy logic / unreachable code jv.c: missing assertion jv_alloc.c: false positive - intentional read of uninitialized memory jv_file.c: dead code
2015-06-18fix broken tests in manual.ymlDavid Tolnay
2015-03-30Include filename and lineno in error messagesNicolas Williams
2015-01-12Fix --run-tests arg handlingNicolas Williams
2014-12-31Move some module tests into all.testNicolas Williams
2014-12-30Fix lineno counting in jq_test.cNicolas Williams
2014-12-30Add support for testing erroneous programsNicolas Williams
This will allow moving tests of some tests from tests/run to tests/all.test. It will also be useful for more extensive testing of language features where we want nice error messages, or errors at all, to be produced, particularly language features where the errors arise at compile-, codegen-, or link-time rather than parse-time. This does not check for run-time errors though -- those we can already check for with try/catch. $ jq --run-tests %%FAIL break jq: error: break used outside labeled control structure ^D 1 of 1 tests passed (0 malformed) $
2014-12-30Make --run-tests more informativeNicolas Williams
Print the line number and program text on the same output line where a failure is reported, for all failures that were already reported on lines starting with '***'. This makes poring over test logs with failures much easier.
2014-12-27Make jq --run-tests show test line numbersNicolas Williams
2014-12-12Fix #647, but caused by 89791a0Nicolas Williams
2014-11-28Print stack value refcounts when tracing (#636)Nicolas Williams
2013-12-08Merge pull request #231 from DRMacIver/fix_mem_leak_in_compileStephen Dolan
args to jq_compile_args were not getting freed when there were errors in the compile
2013-12-08Refactor jv structure.Stephen Dolan
New structure layout is simpler and also faster. In particular, it's now small enough to be passed in registers on amd64.
2013-12-08Make testsuite not leak when compiled with -DNDEBUG.Stephen Dolan
2013-12-08test for losing memory on compile errorsDavid R. MacIver
2013-06-23Remove #includes from jv.hlibjqStephen Dolan
2013-06-21Add libjq autoconf gooNicolas Williams
2013-06-17Remove accidentally introduced use of fopen "e"Nicolas Williams
2013-06-15Allow --run-tests to take a file argumentNicolas Williams
2013-06-15Fixup API to get closer to a libjqNicolas Williams
2013-06-01Stop warning on fgets, simple versionBrendan Macmillan
2013-06-01Stop warning on fgets, complex versionBrendan Macmillan
2013-05-15'length' function now measures string length in codepoints, not bytes.Stephen Dolan
2013-05-13Fix a bug triggered by jv_array_slice.Stephen Dolan
2013-05-11Merge branch 'autotools'Stephen Dolan
2013-05-08Clean up autotools config.Stephen Dolan
Remove some of @stagrlee's hard work since jq's testsuite is less silly than when he wrote the autotools config.
2013-05-08Merge remote-tracking branch 'stagrlee/master' into autotoolsStephen Dolan
Conflicts: Makefile jq_test.c
2013-05-07Rename complex to nontrivial for safety (#113)Nicolas Williams
2013-05-05Remove JQ_DEBUG #define and jq_test binary, simplifying build.Stephen Dolan
The debugging features previously available via JQ_DEBUG are now command-line options.
2013-05-05WIPStephen Dolan
2013-05-05Combine the functionality of jq and jq_testStephen Dolan
One binary is much simpler. ./jq --run-tests now runs the tests.
2013-04-28Remove globals/make jq_init/next/teardown() an APINicolas Williams
2013-02-02fix jq_test so that it runs in the distcheck phase of autoconfLee Thompson
2013-02-02merging upstream stedolan changesLee Thompson
2012-12-16Lots of build system and docs improvements, including a manpage.Stephen Dolan
- Build binaries for multiple platforms - Make a manpage out of the manual (see #19) - Extract more tests from the documentation - Fix a few documentation bugs uncovered by above.
2012-12-04get testing working in autoconfLee Thompson
2012-12-03See, I told you colour was a bad idea! #11Stephen Dolan
Last commit broke the build, minor fix needed to testsuite.
2012-09-18Separate the tests and the main program.Stephen Dolan