Commit Graph

23 Commits

Author SHA1 Message Date
drh
c19bc9b6b0 Improved error messages in fuzzershell when unable to open the database.
FossilOrigin-Name: c404fcace83613a50015f15097b7f28123c221c3
2015-05-22 23:50:19 +00:00
drh
f9def06160 Fix a bug in fuzzershell caused by an uninitialized local variable.
FossilOrigin-Name: 745deab87adc378a5376aaa9451fb9485bc2f4c4
2015-05-22 23:45:56 +00:00
drh
acd3374556 Add the --database option to the fuzzershell test program.
FossilOrigin-Name: c6d5512f4b8b1237fa4cf5f3f2eae19b160bcf26
2015-05-22 11:38:22 +00:00
drh
1a57c17d0f Improvements to fuzzershell: Avoid excess memory allocations when loading
many files.  Show the total runtime on final output.  Show individual filenames
as they are processed even if they are single test-case files.

FossilOrigin-Name: 34a722a2f3331c35211526c9ec055d4d9175c965
2015-05-02 19:54:35 +00:00
drh
c843016e36 Enhance the fuzzershell --uniquecases option to output results in order of
increasing runtime and to include the runtime in the comment separator of
the output.

FossilOrigin-Name: 04630b989d8794b9ed2553f4d223de2b322437c5
2015-05-01 20:34:47 +00:00
drh
b3df0c675c Enhance fuzzershell to accept multiple input files. Add the test/fuzzdata2.txt
fuzz test content.

FossilOrigin-Name: ab5523aafe4817232388d28ea99be0953e7dccf3
2015-05-01 19:21:12 +00:00
drh
7c84c02ce3 Fuzzershell: change the error summary output to work with releasetest.tcl.
Reduce the maximum number of OOM interations.

FossilOrigin-Name: f5e6c4b28d25429aac53ea8cb334a2e6bd821f39
2015-04-25 16:39:49 +00:00
drh
f332071b7f Add the fuzzoomtest target to the makefiles. Invoke fuzzoomtest from
releasetest.tcl.

FossilOrigin-Name: f60657c2ae8a11f1e546c953bca07d9396142f73
2015-04-25 13:39:29 +00:00
drh
be5248f084 In fuzzershell: (1) comment fixes. (2) Set and clear g.zTestName[] correctly.
(3) Use the value in g.zTestName[] in error messages.

FossilOrigin-Name: b7394755fab81329d56bad1b506e536b2fcbe8cd
2015-04-25 11:35:48 +00:00
drh
0ee751fb67 In the fuzzershell, always invoke the trace and log callbacks even if output
is suppressed.  Keep track of the current test name in a global variable
for simplified debugging.

FossilOrigin-Name: 3045f454817f657df801358c40c665b0b0d73c1f
2015-04-25 11:19:51 +00:00
drh
9f18f7434e Add fflush() calls to fuzzershell to keep stderr and stdout synchronized.
FossilOrigin-Name: 2b98a25237d1b3e64aec2772b622e8b3be2df454
2015-04-25 00:20:15 +00:00
drh
048810b63b Add the --oom option to fuzzershell.
FossilOrigin-Name: 14a9e4a377bf2974f5db148c8f86e2c5ffdfa28d
2015-04-24 23:45:23 +00:00
drh
61a0d6bc55 Fix fuzzershell so that it works with SQLITE_OMIT_TRACE.
FossilOrigin-Name: dc88fe7e641c52d27fba8c753cee590db87388c5
2015-04-24 18:31:12 +00:00
drh
8ea5eca183 Run fuzzershell as part of the valgrindtest makefile target.
FossilOrigin-Name: 0bb96a037bd7179cb3a6137bb29827fc7d72ec3f
2015-04-24 16:53:03 +00:00
drh
e1a71a582f Add AFL-generated test cases in the test/fuzzdata1.txt file. Automatically
run fuzzershell against those cases on a "make test".

FossilOrigin-Name: 627ea83c26b420088f101801eb8765127f47d2d0
2015-04-24 16:09:12 +00:00
drh
875bafa17a Add the --unique-cases option to fuzzershell.
FossilOrigin-Name: 7cb718491b5de77d4a73d8484324b66a36815019
2015-04-24 14:47:59 +00:00
drh
1cbb7fa95c Fuzzershell enhancements: (1) Add the --verbose and --quiet flags
(2) Show percentage complete and final test count for multi-test inputs
(3) Omit trace and result logs unless the --verbose flag is used.

FossilOrigin-Name: ed202ffac2eb85be9a18dca2a051ea3be16f8893
2015-04-24 13:00:59 +00:00
drh
0ba51089c8 Improved filtering of input for fuzzershell for modes other than generic.
FossilOrigin-Name: 025e8370dde2918b66683f8d7fa9c7d23d03c9b4
2015-04-22 13:16:46 +00:00
drh
3fb2cc1173 Change the printf, strftime, and glob modes of fuzzershell so that they
reject all inputs that do not start with a string literal followed by a
comma.  This helps the fuzzer focus in on the kinds of behavior those modes
are intended to test.

FossilOrigin-Name: 1cceefa7c6585bca786fe9f7118f7beb829ad709
2015-04-22 11:16:34 +00:00
drh
9985dabbac Add the --mode option to fuzzershell.
FossilOrigin-Name: b940b0fa6cf68fef58344d269ad5d39468ffe72f
2015-04-20 22:36:49 +00:00
drh
4a74d076e3 Many new configuration options for fuzzershell.
FossilOrigin-Name: 41c954391690833bf2ece4ea14457ee4bdd74e90
2015-04-20 18:58:38 +00:00
drh
f34e9aabd8 Enhance fuzzershell to support multiple blocks of SQL, each run in its own
private in-memory database.

FossilOrigin-Name: ab0a96ca73cfe92d5a837c71c148e8361f42acc3
2015-04-20 12:50:13 +00:00
drh
268e72f936 Add the tool/fuzzershell.c utility program.
FossilOrigin-Name: db8d9af4d04ee862995ffa13ae6dcd9a1fc72855
2015-04-17 14:30:49 +00:00