build: fix the coverage build
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 12 Feb 2020 21:54:06 +0000 (10:54 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 27 Feb 2020 01:02:32 +0000 (01:02 +0000)
commit3e072b3fb78f0d3132b1d3ce719b8f3706e8491a
tree24beb0510ab571368640368fac0aec2a264c1d5b
parent340cd2b81639cee622bb35981f680e7d2a7a491c
build: fix the coverage build

"make lcov" was failing with:
   Processing file bin/default/<stdout>
   genhtml: ERROR: cannot read ... <stdout>

Flex adds "#line nnn <stdout>" to the generated source, which then causes
issues with lcov. This commit adds a SAMBA_GENERATOR for es_lexer.l and
sparql_lexer.l that strips out the offending lines.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_server/wscript_build
source3/wscript_build