Merge remote-tracking branch 'origin/topic/vern/remove-uu'

* origin/topic/vern/remove-uu:
  fix up for linking w/ doc update
  documentation update
  script simplification that removes an unnecessary &is_assigned
  removing -uu functionality and associated script analysis now no longer needed
This commit is contained in:
Tim Wojtulewicz 2021-09-24 10:31:34 -07:00
commit e5b163290d
25 changed files with 12 additions and 2622 deletions

View file

@ -1 +0,0 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.

View file

@ -1,6 +0,0 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]
[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]
[no_worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>], worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]]
[no_worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>], worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]]
T

View file

@ -1,4 +0,0 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
warning: "-O optimize-AST" option is incompatible with -u option, deactivating optimization
warning in <...>/uninitialized-local3.zeek, line 40: possibly used without definition (x4)
expression error in <...>/uninitialized-local3.zeek, line 40: value used but not set (x4)

View file

@ -1,10 +0,0 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
x$a (x <...>/uninitialized-local3.zeek, line 22) possibly used without being set
x$e (x <...>/uninitialized-local3.zeek, line 22) possibly used without being set
x$e (x <...>/uninitialized-local3.zeek, line 26) possibly used without being set
x2$worries$a (x2 <...>/uninitialized-local3.zeek, line 29) possibly used without being set
x2$worries$e (x2 <...>/uninitialized-local3.zeek, line 29) possibly used without being set
[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]
[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]
[no_worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>], worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]]
[no_worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>], worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]]

View file

@ -1,3 +0,0 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
warning in <...>/uninitialized-local3.zeek, line 40: possibly used without definition (x4)
expression error in <...>/uninitialized-local3.zeek, line 40: value used but not set (x4)

View file

@ -1,10 +0,0 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
x$a (x <...>/uninitialized-local3.zeek, line 22) possibly used without being set
x$e (x <...>/uninitialized-local3.zeek, line 22) possibly used without being set
x$e (x <...>/uninitialized-local3.zeek, line 26) possibly used without being set
x2$worries$a (x2 <...>/uninitialized-local3.zeek, line 29) possibly used without being set
x2$worries$e (x2 <...>/uninitialized-local3.zeek, line 29) possibly used without being set
[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]
[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]
[no_worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>], worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]]
[no_worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>], worries=[a=<uninitialized>, b=<uninitialized>, c=9, d=<uninitialized>, e=<uninitialized>]]

View file

@ -79,13 +79,6 @@ ZEEK_XFORM=1
ZEEK_USAGE_ISSUES=1
BTEST_BASELINE_DIR=%(testbase)s/Baseline.usage:%(testbase)s/Baseline.xform:%(testbase)s/Baseline
# The same, but for -uu (which supercedes -u functionality). We keep them
# separate because -uu is a lot slower.
[environment-usage2]
ZEEK_XFORM=1
ZEEK_USAGE_ISSUES=2
BTEST_BASELINE_DIR=%(testbase)s/Baseline.usage:%(testbase)s/Baseline.xform:%(testbase)s/Baseline
[environment-cpp]
ZEEK_USE_CPP=1
BTEST_BASELINE_DIR=%(testbase)s/Baseline.cpp:%(testbase)s/Baseline

View file

@ -1,44 +0,0 @@
# @TEST-REQUIRES: test "${ZEEK_ZAM}" != "1"
# @TEST-EXEC: ZEEK_USAGE_ISSUES=2 zeek -b %INPUT >out 2>err
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff err
type r: record {
a: count;
b: count &optional;
c: count &default = 9;
d: string &is_assigned;
e: string;
};
type r2: record {
no_worries: r &is_assigned;
worries: r;
};
event zeek_init()
{
local x: r;
print x;
if ( x?$a )
x$e = "I'm set";
print x; # should complain about $e, but not about $a
local x2: r2;
print x2;
local x3: r2 &is_assigned;
print x3;
local x4: count;
# note, no execution after this point due to error
# We use this slightly baroque expression because compiled code
# may have x4 genuinely uninitialized, and we want deterministic
# output in that case.
if ( x4 > 5 )
print T;
else
print T;
}