#NEWLINE# @ only_linux #NEWLINE# def test_action_coverage( qibuild_action , qitest_action ) : #NEWLINE# #INDENT# gcovr = qisys . command . find_program ( 'gcovr' , raises = False ) #NEWLINE# if ( not gcovr ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# coverme_proj = qibuild_action . add_test_project ( 'coverme' ) #NEWLINE# qibuild_action ( 'configure' , 'coverme' , '--coverage' ) #NEWLINE# qibuild_action ( 'make' , 'coverme' ) #NEWLINE# qitest_action ( 'run' , 'coverme' , '--coverage' , '--cov-exclude=NONE' ) #NEWLINE# xml = os . path . join ( coverme_proj . sdk_directory , 'coverage-results' , 'coverme.xml' ) #NEWLINE# qisys . qixml . read ( xml )