summaryrefslogtreecommitdiff
path: root/tools/tracing/rtla/Build
diff options
context:
space:
mode:
authorCosta Shulyupin <costa.shul@redhat.com>2026-01-19 12:58:57 +0200
committerTomas Glozar <tglozar@redhat.com>2026-03-04 15:51:56 +0100
commit3a4080e5e426352a78f944db0ff29e029d89193b (patch)
tree555d744f5d71e24b4f462d0031b9dcd04bd530cf /tools/tracing/rtla/Build
parent153e211fc74a096cbd3570ca7388ab4cbeadc6c5 (diff)
downloadlwn-3a4080e5e426352a78f944db0ff29e029d89193b.tar.gz
lwn-3a4080e5e426352a78f944db0ff29e029d89193b.zip
tools/rtla: Add unit tests for utils.c
Add unit tests for utility functions in src/utils.c using the Check testing framework. The tests verify parse_cpu_set(), strtoi(), and parse_prio() functions. Unit tests are built conditionally when libcheck is available. Run tests with 'make unit-test'. The test framework uses the Check library which provides process isolation for each test, preventing failures in one test from affecting others. Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Link: https://lore.kernel.org/r/20260119105857.797498-3-costa.shul@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'tools/tracing/rtla/Build')
-rw-r--r--tools/tracing/rtla/Build1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tracing/rtla/Build b/tools/tracing/rtla/Build
index 6c9d5b36a315..3ce2e0f567fd 100644
--- a/tools/tracing/rtla/Build
+++ b/tools/tracing/rtla/Build
@@ -1 +1,2 @@
rtla-y += src/
+unit_tests-y += tests/unit/