|
Packit |
1422b7 |
# added 2014-12-11 by singh.janmejay
|
|
Packit |
1422b7 |
# This file is part of the liblognorm project, released under ASL 2.0
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
uname -a | grep "SunOS.*5.10"
|
|
Packit |
1422b7 |
if [ $? -eq 0 ] ; then
|
|
Packit |
1422b7 |
echo platform: `uname -a`
|
|
Packit |
1422b7 |
echo This looks like solaris 10, we disable known-failing tests to
|
|
Packit |
1422b7 |
echo permit OpenCSW to build packages. However, this are real failurs
|
|
Packit |
1422b7 |
echo and so a fix should be done as soon as time permits.
|
|
Packit |
1422b7 |
exit 77
|
|
Packit |
1422b7 |
fi
|
|
Packit |
1422b7 |
. $srcdir/exec.sh
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
test_def $0 "value interpreting field"
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
add_rule 'rule=:%session_count:interpret:int:word% sessions established'
|
|
Packit |
1422b7 |
execute '64 sessions established'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"session_count": 64}'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
reset_rules
|
|
Packit |
1422b7 |
add_rule 'rule=:max sessions limit reached: %at_limit:interpret:bool:word%'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: true'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": true}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: false'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": false}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: TRUE'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": true}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: FALSE'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": false}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: yes'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": true}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: no'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": false}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: YES'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": true}'
|
|
Packit |
1422b7 |
execute 'max sessions limit reached: NO'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"at_limit": false}'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
reset_rules
|
|
Packit |
1422b7 |
add_rule 'rule=:record count for shard [%shard:interpret:base16int:char-to:]%] is %record_count:interpret:base10int:number% and %latency_percentile:interpret:float:char-to:\x25%\x25ile latency is %latency:interpret:float:word% %latency_unit:word%'
|
|
Packit |
1422b7 |
execute 'record count for shard [3F] is 50000 and 99.99%ile latency is 2.1 seconds'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"shard": 63, "record_count": 50000, "latency_percentile": 99.99, "latency": 2.1, "latency_unit" : "seconds"}'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
reset_rules
|
|
Packit |
1422b7 |
add_rule 'rule=:%latency_percentile:interpret:float:char-to:\x25%\x25ile latency is %latency:interpret:float:word%'
|
|
Packit |
1422b7 |
execute '98.1%ile latency is 1.999123'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"latency_percentile": 98.1, "latency": 1.999123}'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
reset_rules
|
|
Packit |
1422b7 |
add_rule 'rule=:%latency_percentile:interpret:float:number%'
|
|
Packit |
1422b7 |
add_rule 'rule=:%latency_percentile:interpret:int:number%'
|
|
Packit |
1422b7 |
add_rule 'rule=:%latency_percentile:interpret:base16int:number%'
|
|
Packit |
1422b7 |
add_rule 'rule=:%latency_percentile:interpret:base10int:number%'
|
|
Packit |
1422b7 |
add_rule 'rule=:%latency_percentile:interpret:boolean:number%'
|
|
Packit |
1422b7 |
execute 'foo'
|
|
Packit |
1422b7 |
assert_output_json_eq '{ "originalmsg": "foo", "unparsed-data": "foo" }'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
reset_rules
|
|
Packit |
1422b7 |
add_rule 'rule=:gc pause: %pause_time:interpret:float:float%ms'
|
|
Packit |
1422b7 |
execute 'gc pause: 12.3ms'
|
|
Packit |
1422b7 |
assert_output_json_eq '{"pause_time": 12.3}'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
cleanup_tmp_files
|
|
Packit |
1422b7 |
|