criu icon indicating copy to clipboard operation
criu copied to clipboard

How do I run unit tests and get line coverage?

Open mrc1119 opened this issue 3 years ago • 7 comments

Such as title

criu version: 3.15 3.17

mrc1119 avatar Jun 27 '22 10:06 mrc1119

Can you be a bit more specific what you want?

adrianreber avatar Jun 27 '22 10:06 adrianreber

I want to get criu's current unit test line coverage results and show them in my current project. In addition, how should the test directory in the root directory be used?

mrc1119 avatar Jun 28 '22 03:06 mrc1119

Please have a look at https://github.com/checkpoint-restore/criu/blob/criu-dev/.github/workflows/gcov-test.yml

adrianreber avatar Jun 28 '22 05:06 adrianreber

Please have a look at https://github.com/checkpoint-restore/criu/blob/criu-dev/.github/workflows/gcov-test.yml

Is there a method to execute unittest in centos?

mrc1119 avatar Jun 29 '22 06:06 mrc1119

I execute GCOV under centos, but there is an error. Could you please help me check it? @adrianreber the log: https://github.com/mrc1119/criu-log/blob/main/criu-codecov-error

mrc1119 avatar Jul 12 '22 02:07 mrc1119

################## 345 TEST(S) FAILED (TOTAL 436/SKIPPED 90) ###################

mrc1119 avatar Jul 12 '22 06:07 mrc1119

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Aug 12 '22 00:08 github-actions[bot]

All your errors seem to be Error (criu/cr-dump.c:1524): Collect mappings (pid: 56) failed with -1, and that likely means that you don't have access to either /proc/pid/smaps or /proc/pid/map_files/*.

Snorch avatar Sep 27 '22 08:09 Snorch

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Oct 29 '22 00:10 github-actions[bot]