~canonical-kernel-team/+git/ltp:master

Last commit made on 2025-01-14
Get this branch:
git clone -b master https://git.launchpad.net/~canonical-kernel-team/+git/ltp
Members of Canonical Kernel Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~canonical-kernel-team/+git/ltp

Recent commits

48dda81... by Petr Vorel <email address hidden>

ima_setup.sh: Quit testing when failed to get digest

There is no point to continue when get_algorithm_digest() fails.

Fixes: 61852d3df5 ("IMA: Move ima_check to ima_setup.sh")
Signed-off-by: Petr Vorel <email address hidden>

afc8d13... by Petr Vorel <email address hidden>

shell API: Add test for TST_DEVICE_SIZE

Added recently in 8532eb2c61.
overlayfs workaround is used in GitHub Actions.

Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>

8a35a34... by Petr Vorel <email address hidden>

ci: Add shell loader tests

Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>

6353979... by Petr Vorel <email address hidden>

build.sh: Allow to run shell loader tests

Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>

1efa0b0... by Petr Vorel <email address hidden>

Makefile: Add target to run shell loader

Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>

29d8613... by Petr Vorel <email address hidden>

testcases/lib/run_tests.sh: Check expected results

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>

00c3c9e... by Petr Vorel <email address hidden>

ci: Mount bind host /boot

It will be needed add /boot/config-* to fix
testcases/lib/tests/shell_loader_kconfigs.sh.

Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>

afd717f... 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>

0059503... by Petr Vorel <email address hidden>

fanotify22: Add 76486b104168 tag

New tag for commit from v6.13-rc1 which fixes problem from v6.12-rc1.

Closes: https://github.com/linux-test-project/ltp/issues/1206
Link: https://<email address hidden>/
Reviewed-by: Li Wang <email address hidden>
Signed-off-by: Petr Vorel <email address hidden>

a6a369c... by Li Wang <email address hidden>

lib: redefine the overall timeout logic of test

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).

Overall timeout is structured as follows:

| -- (default_30s + timeout) * timeout_mul -- | -- runtime * runtime_mul -- |

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>