This verification helps 1) see if anything broke 2) be able to run in CI.
Also:
1) Allow to run tests outside of the test directory (call just by
relative PATH).
2) Allow to pass build directory (useful for out of tree build).
Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>
ci: Run docker as privileged to enable loop device
This allows to enable more shell tests.
Remaining shell tests would require to allow other exit code than 0
(TPASS) or 32 (TCONF). Also script do not expect combination more results flags
(e.g. TPASS and TWARN), it complains "Error: unknown failure, exit code: ..."
To fix this would would require to check exit code.
Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>
This patch revises the logic for managing test timeout and runtime
limits, introducing a more structured approach. The key changes include
renaming max_runtime to runtime for clarity and adding overall_time to
represent the total time limit for a test. This ensures better separation
of test phases (setup, execution, and cleanup) and clearer timeout management.
Key Concepts:
timeout: Defines the maximum time allowed for the entire test, including
setup, execution, and cleanup, when no explicit runtime is set.
But if a runtime is explicitly defined and tst_remaining_runtime()
is used, the timeout applies only to the setup and cleanup phases,
as the runtime controls the test execution duration.
runtime: The maximum runtime of the test's main execution loop, used
in tests that call tst_remaining_runtime(). It ensures the
main execution runs for a fixed duration, regardless of kernel
configuration (e.g., debug kernel).
And, the TST_UNLIMITED_RUNTIME constant has been deprecated and replaced
by TST_UNLIMITED_TIMEOUT. This change simplifies the handling of unlimited
execution scenarios while aligning the terminology with the new timeout model.
Suggested-by: Cyril Hrubis <email address hidden>
Signed-off-by: Li Wang <email address hidden>
Reviewed-by: Cyril Hrubis <email address hidden>
Reviewed-by: Petr Vorel <email address hidden>