[README] add the unittest badge into README.md
authorDongju Chae <dongju.chae@samsung.com>
Thu, 5 Sep 2019 05:57:34 +0000 (14:57 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Fri, 6 Sep 2019 01:15:24 +0000 (10:15 +0900)
This badge shows the number of unittests (and apptests) which are successfully executed.
To generate the badge, it requires gtest output files (.xml).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
README.md
packaging/npu-engine.spec

index 3cffc6c..c6b4bd7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 ## NPU SystemService
 
-[![Code Coverage](https://nnsuiteci.mooo.com/NPU_SystemService/ci/badge/codecoverage.svg)](http://nnsuiteci.mooo.com/NPU_SystemService/ci/gcov_html/index.html)
+[![Code Coverage](https://nnsuiteci.mooo.com/NPU_SystemService/ci/badge/codecoverage.svg)](http://nnsuiteci.mooo.com/NPU_SystemService/ci/gcov_html/index.html) [![Unit Test](https://nnsuiteci.mooo.com/NPU_SystemService/ci/badge/unittest.svg)](http://nnsuiteci.mooo.com/NPU_SystemService/ci/unittest_result/)
 
 - Software Stack: http://suprem.sec.samsung.net/confluence/display/ODLC/NPU+OS+Stack
 - CI Server: http://nnsuiteci.mooo.com/NPU_SystemService/ci/taos/
index 84213f6..49bba53 100644 (file)
@@ -78,7 +78,7 @@ DESTDIR=%{buildroot} ninja install -C build %{?_smp_mflags}
       ./${unittest_exec}
     %endif
   %else
-    ./${unittest_exec}
+    ./${unittest_exec} --gtest_output="xml:${unittest_exec}.xml"
   %endif
   done
   # Run apptests