zeek/testing/btest/scripts/base/frameworks
Bernhard Amann 3c59aa9459 Several fixes for input manager error handling.
- First:
Due to architectural constraints, it is very hard for the
input framework to handle optional records. For an optional record,
either the whole record has to be missing, or all non-optional elements
of the record have to be defined. This information is not available
to input readers after the records have been unrolled into the threading
types.

Behavior so far was to treat optional records like they are non-optional,
without warning. The patch changes this behavior to emit an error on stream-
creation (during type-checking) and refusing to open the file. I think this
is a better idea - the behavior so far was undocumented and unintuitive.

- Second:
For table and event streams, reader backend creation was done very early,
before actually checking if all arguments are valid. Initialization is moved
after the checks now - this makes a number of delete statements unnecessary.
Also - I suspect threads of failed input reader instances were not deleted
until shutdown

- Third:
Add a couple more consistency checks, e.g. checking if the destination value
of a table has the same type as we need. We did not check everything in all
instances, instead we just assigned the things without caring (which works,
but is not really desirable).

This change also exposed a few bugs in other testcases where table definitions
were wrong (did not respect $want_record)

- Fourth:
Improve error messages and write testcases for all error messages (I think).
2013-12-05 15:53:12 -08:00
..
analyzer More analyzer framework tests. 2013-06-02 18:22:08 -07:00
cluster Unit test reliability adjustment. 2012-09-13 12:59:40 -05:00
communication Drain events before terminating log/thread managers. 2012-06-28 12:42:32 -05:00
control Add sleeps to configuration_update test for better reliability. 2012-09-05 16:20:34 -05:00
file-analysis Increase UIDs to 96 bits w/ C/F prefix - BIT-1016 2013-08-26 15:36:31 -05:00
input Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
intel Canonfying an intel test to not depend on output order. 2013-11-01 05:03:54 -07:00
logging Merge remote-tracking branch 'origin/topic/bernhard/ticket1094' 2013-11-11 13:42:52 -08:00
notice Updates for the notices framework. 2013-02-11 14:36:14 -05:00
packet-filter Add a Reporter::fatal BIF. 2011-08-25 13:13:39 -05:00
reporter Updating baselines. 2012-08-10 13:25:18 -07:00
software Update software version parsing and comparison to account for a third numeric subversion. 2013-02-06 13:59:05 -05:00
sumstats Updating tests for HLL merge. 2013-08-31 11:17:49 -07:00