]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtla/tests: Run runtime tests in temporary directory
authorTomas Glozar <tglozar@redhat.com>
Tue, 26 May 2026 10:25:22 +0000 (12:25 +0200)
committerTomas Glozar <tglozar@redhat.com>
Thu, 28 May 2026 11:02:47 +0000 (13:02 +0200)
commitad5b50a0959fb67100ddb93aeb0ea40201272cb2
tree021f12d615e09d2c971f8e8aa8249543f96785f6
parenta92bd1a28b5dab2899b9f51dd2780b2d9e52e324
rtla/tests: Run runtime tests in temporary directory

Create a temporary directory before each test case to serve as working
directory during the duration of the test.

This prevents littering of the original working directory as well as
allows tests to use it to avoid path conflicts.

In order not to break already existing tests, also add a new "testdir"
variable containing the directory where the test file is located. This
is then used to locate artifacts used during testing like BPF programs
and scripts for checking the tracer threads.

Link: https://lore.kernel.org/r/20260526102523.2662391-3-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/tests/engine.sh
tools/tracing/rtla/tests/osnoise.t
tools/tracing/rtla/tests/timerlat.t