I have a patch to run tests in autopkgtest but these tests are failing. I checked and they are failing without any change on my side.
2 out of 36 tests are failing. I will try to diagnose these failures.
# sudo ./utest/trace-utest
CUnit - A unit testing framework for C - Version 2.1-3 http://cunit.sourceforge.net/
Memory mapped buffers not supported
Suite: tracefs library Test: Test tracefs/debugfs mounting ...passed Test: trace cpu read ...passed Test: trace cpu read_buf_percent ...FAILED 1. tracefs-utest.c:1333 - data->done == false 2. tracefs-utest.c:1359 - data->done == true 3. tracefs-utest.c:1301 - kbuf != NULL 4. tracefs-utest.c:1359 - data->done == true 5. tracefs-utest.c:1301 - kbuf != NULL 6. tracefs-utest.c:1359 - data->done == true 7. tracefs-utest.c:1301 - kbuf != NULL 8. tracefs-utest.c:1359 - data->done == true 9. tracefs-utest.c:1301 - kbuf != NULL Test: trace cpu pipe ...passed Test: trace pid events filter ...passed Test: trace pid function filter ...passed Test: trace sql ...passed Test: trace sql trace onmax ...passed Test: trace sql trace onchange ...passed Test: trace sql snapshot onmax ...passed Test: trace sql snapshot onchange ...passed Test: trace sql save onmax ...passed Test: trace sql save onchange ...passed Test: trace sql trace and snapshot onmax ...passed Test: trace sql trace and snapshot onchange ...passed Test: tracing file / directory APIs ...passed Test: instance file / directory APIs ...passed Test: instance file descriptor ...passed Test: instance reset ...passed Test: systems and events APIs ...passed Test: tracefs_iterate_snapshot_events API ...passed Test: tracefs_iterate_raw_events API ...passed Test: Follow events ...passed Test: Follow events clear ...passed Test: tracefs_tracers API ...passed Test: tracefs_local events API ...passed Test: tracefs_instances_walk API ...passed Test: tracefs_get_clock API ...passed Test: tracing on / off ...passed Test: tracing options ...passed Test: custom system directory ...passed Test: ftrace marker ...passed Test: kprobes ...passed Test: synthetic events ...passed Test: eprobes ...passed Test: uprobes ...FAILED 1. tracefs-utest.c:2205 - ret == 0 2. tracefs-utest.c:2205 - ret == 0
Run Summary: Type Total Ran Passed Failed Inactive suites 1 1 n/a 0 0 tests 36 36 34 2 0 asserts 32600531 32600531 32600520 11 n/a
Elapsed time = 30.844 seconds
I have a patch to run tests in autopkgtest but these tests are failing. I checked and they are failing without any change on my side.
2 out of 36 tests are failing. I will try to diagnose these failures.
# sudo ./utest/trace-utest
CUnit - A unit testing framework for C - Version 2.1-3 cunit.sourcefor ge.net/
http://
Memory mapped buffers not supported
Suite: tracefs library utest.c: 1333 - data->done == false utest.c: 1359 - data->done == true utest.c: 1301 - kbuf != NULL utest.c: 1359 - data->done == true utest.c: 1301 - kbuf != NULL utest.c: 1359 - data->done == true utest.c: 1301 - kbuf != NULL utest.c: 1359 - data->done == true utest.c: 1301 - kbuf != NULL iterate_ snapshot_ events API ...passed iterate_ raw_events API ...passed instances_ walk API ...passed utest.c: 2205 - ret == 0 utest.c: 2205 - ret == 0
Test: Test tracefs/debugfs mounting ...passed
Test: trace cpu read ...passed
Test: trace cpu read_buf_percent ...FAILED
1. tracefs-
2. tracefs-
3. tracefs-
4. tracefs-
5. tracefs-
6. tracefs-
7. tracefs-
8. tracefs-
9. tracefs-
Test: trace cpu pipe ...passed
Test: trace pid events filter ...passed
Test: trace pid function filter ...passed
Test: trace sql ...passed
Test: trace sql trace onmax ...passed
Test: trace sql trace onchange ...passed
Test: trace sql snapshot onmax ...passed
Test: trace sql snapshot onchange ...passed
Test: trace sql save onmax ...passed
Test: trace sql save onchange ...passed
Test: trace sql trace and snapshot onmax ...passed
Test: trace sql trace and snapshot onchange ...passed
Test: tracing file / directory APIs ...passed
Test: instance file / directory APIs ...passed
Test: instance file descriptor ...passed
Test: instance reset ...passed
Test: systems and events APIs ...passed
Test: tracefs_
Test: tracefs_
Test: Follow events ...passed
Test: Follow events clear ...passed
Test: tracefs_tracers API ...passed
Test: tracefs_local events API ...passed
Test: tracefs_
Test: tracefs_get_clock API ...passed
Test: tracing on / off ...passed
Test: tracing options ...passed
Test: custom system directory ...passed
Test: ftrace marker ...passed
Test: kprobes ...passed
Test: synthetic events ...passed
Test: eprobes ...passed
Test: uprobes ...FAILED
1. tracefs-
2. tracefs-
Run Summary: Type Total Ran Passed Failed Inactive
suites 1 1 n/a 0 0
tests 36 36 34 2 0
asserts 32600531 32600531 32600520 11 n/a
Elapsed time = 30.844 seconds