File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 71
71
- publish : $(Build.ArtifactStagingDirectory)
72
72
artifact : sonic-dhcp-relay.${{ parameters.arch }}
73
73
displayName : " Archive dhcp-relay debian packages"
74
+ - task : PublishTestResults@2
75
+ inputs :
76
+ testResultsFiles : build-test/dhcp6relay-test-test-result.xml
74
77
- ${{ if and(eq(parameters.arch, 'amd64'), parameters.codeCoverage) }} :
75
78
- task : PublishCodeCoverageResults@1
76
79
inputs :
77
- summaryFileLocation : dhcp6relay-test-result .xml
80
+ summaryFileLocation : build-test/ dhcp6relay-test-code-coverage .xml
78
81
pathToSources : $(Build.SourcesDirectory)
82
+ reportDirectory : $(Build.SourcesDirectory)/build-test
79
83
codeCoverageTool : ' Cobertura'
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ $(DHCP6RELAY_TEST_TARGET): $(TEST_OBJS)
46
46
$(CXX ) $(LDFLAGS ) $^ $(LDLIBS ) $(LDLIBS_TEST ) -o $@
47
47
48
48
test : $(DHCP6RELAY_TEST_TARGET )
49
- ./$(DHCP6RELAY_TEST_TARGET ) || true
50
- $(GCOVR ) -r ./ --html --html-details -o $(DHCP6RELAY_TEST_TARGET ) -result .html
51
- $(GCOVR ) -r ./ --xml-pretty -o $(DHCP6RELAY_TEST_TARGET ) -result .xml
49
+ ./$(DHCP6RELAY_TEST_TARGET ) --gtest_output=xml: $( DHCP6RELAY_TEST_TARGET ) -test-result.xml || true
50
+ $(GCOVR ) -r ./ --html --html-details -o $(DHCP6RELAY_TEST_TARGET ) -code-coverage .html
51
+ $(GCOVR ) -r ./ --xml-pretty -o $(DHCP6RELAY_TEST_TARGET ) -code-coverage .xml
52
52
53
53
install : $(DHCP6RELAY_TARGET )
54
54
install -D $(DHCP6RELAY_TARGET ) $(DESTDIR ) /usr/sbin/$(notdir $(DHCP6RELAY_TARGET ) )
You can’t perform that action at this time.
0 commit comments