zeek/testing
Robin Sommer 17e17c0e6b A proof-of-concept opaque type.
This is just for playing around for the moment. It tries to address
the situation that a bif creates a C-level data structure that is then
to be manipulated with further bifs (but not with other script-level
operators). There are two problems with that:

    - We don't have a type at the script-level to represent the
    created data structure.

    - We can't just pass C-level pointers around (say, via "any")
    because then garbage collection wouldn't clean up after us.

This patch allows to wrap such a pointer with a record:

    type Foo = record {
        opaque: any;
        };

The bifs simply pass around instances of this record, while internally
storing a C pointer to the data structure instance in its only field.

Internally, "opaque" is an instance of a new Val-derived class
OpaqueVal. It gets cleaned up via ref-counting as usual and deletes
the C data structure automatically when done.
2011-05-03 22:31:09 -07:00
..
btest A proof-of-concept opaque type. 2011-05-03 22:31:09 -07:00
istate Updating indenpdentn state tests to work with new setyp. 2011-02-25 17:01:11 -08:00
README Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088 2010-09-27 20:42:30 -07:00

This directory contains some of the suites for testing for Bro's
correct operation:

istate/
	Tests Bro's independent state facilities.  These include persistent
	values and inter-process event/value communication.

(Note that the Bro developers maintain a separate test suite for
 Bro's trace analysis capabilities.  This is kept private as it uses
 sensitive raw traces for input.)