Dist/Tizen: show unit test result summary
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 18 Dec 2019 04:24:50 +0000 (13:24 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 9 Jan 2020 05:45:59 +0000 (14:45 +0900)
commitb46aa7a7ca311b8622e77b7e4a2df514322923be
treeb15668711e1bd3c7fb817c8a2e798e2797ec2418
parent05482c42550d61a6b0f6307d7f5790c6ca1c4fad
Dist/Tizen: show unit test result summary

Aggregate all gtest and SSAT results at the end of testing.

After this, unittest-enabled gbs will show results like:

```
[  117s] GTest (total 232 cases)
[  117s]   Passed: 232 / Failed: 0 / Ignored: 0
[  117s] SSAT (total 513 cases)
[  117s]   Passed: 497 / Failed: 0 / Ignored: 16
[  117s] Grand Total: 745 cases
[  117s]   Passed: 729 / Failed: 0 / Ignored: 16
```

Changes in V2:
- made sure to call close for opened f
- use os.path.splitext
Chnaged in V3:
- with makes exceptions with fail. Handle them.

Suggested TODO in later PRs:
- Count negative test cases.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/nnstreamer.spec
tools/development/count_test_cases.py [new file with mode: 0644]