From: Christian Babeux Date: Tue, 16 Oct 2012 18:33:22 +0000 (-0400) Subject: Tests: Add a test for valid filters X-Git-Tag: v2.1.0-rc5~4 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;ds=sidebyside;h=9fec62f705e2143ae8ac72cf0ab1c36245aceda7;hp=9fec62f705e2143ae8ac72cf0ab1c36245aceda7;p=lttng-tools.git Tests: Add a test for valid filters This test validate that for a given filter the expected trace output is conform to the expected filter behavior. This test rely on the babelstats utility. With the help of this script, we can verify that the expected minimum and maximum values on fields of interest are within the expected ranges. For example, given 100 iterations on a tracepoint with the field 'intfield', with values starting from 0 and incrementing on each iteration, and the filter expression 'intfield < 4', we would expect that the min-max range lie within [0,3]. Thus, if the babelstat computed range does not match the expected range, this could potentially indicate failure in the filtering mechanism. Signed-off-by: Christian Babeux Signed-off-by: David Goulet ---