testsuite: grep the output patterns only when needed
commitcc80cf751ee229520283e15d24f40b6605cc40c5
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 28 May 2017 14:59:43 +0000 (28 16:59 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 28 May 2017 19:10:26 +0000 (28 21:10 +0200)
treed7dda11d2f7b9f4e445a6a10ad4cb8db20322fab
parentcb879872644ac28665f118949f47aa180494d84f
testsuite: grep the output patterns only when needed

For some testcase, it is checked if the output contains or not
some given pattern, or we're checking the number of time a
pattern is present in the output.
This is done with grep and some glue.

But for most testcases there is nothing to check and this
grepping is just wasted CPU cycles.

Fix this by using the already known tags to see if we need to
do this grepping or not.

This speedup the testsuite by another 15%.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
validation/test-suite