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

Last commit made on 2025-01-24
Get this branch:
git clone -b sru 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:
sru
Repository:
lp:~canonical-kernel-team/+git/ltp

Recent commits

037ca84... by Ian Whitfield

UBUNTU: SAUCE: gethostname: Fix ENAMETOOLONG on 64 character hostnames

HOST_NAME_MAX does not include the null terminator, so the hostname
buffer in gethostname02.c needs an extra character of space to support
maximum length hostnames.

Signed-off-by: Ian Whitfield <email address hidden>
Acked-by: Po-Hsu Lin <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

0e180bd... by Po-Hsu Lin

UBUNTU: SAUCE: Upstream head SHA1 48dda81b15

Rebased on top of upstream head commit:
48dda81b15 ima_setup.sh: Quit testing when failed to get digest

Update Note:
  * This update fixes the following issues:
    - LP: #2092274 CONFIG_MODULE_SIG_FORCE can make tests fail
    - LP: #2093865 setsockopt06 and writev03 from ubuntu_ltp_syscalls timeout on N/O
    - LP: #2084410 sched:starvation - TFAIL: Scheduller starvation reproduced
    - LP: #2089809 logrotate_sh in commands of ubuntu_ltp_stable failed
  * This update has revealed the following issues:
    - LP: #2093235 hugemmap34 from ubuntu_ltp_stable/hugetlb failed on B/F/J PowerPC
    - LP: #2093139 listmount04 from ubuntu_ltp_syscalls failed on Noble
  * sru-trusty branch is not be updated.

Signed-off-by: Po-Hsu Lin <email address hidden>

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>