Files
buildroot/support/testing/tests/package/test_atop.py
Romain Naour 21057a30f2 support/testing: TestAtop: use the default toolchain (BASIC_TOOLCHAIN_CONFIG)
The TestAtop use the really old toolchain br-arm-full-2019.05.1 because
BASIC_TOOLCHAIN_CONFIG from Buildroot 2019.08 provide an uClibc-ng
toolchain with 3.10 kernel headers (br-arm-full-2017.05-1078-g95b1dae)
[1].

Since then, we switched to glibc toolchains by default in Buildroot [2]
(2022.11) and BASIC_TOOLCHAIN_CONFIG was updated several time and now
use a Bootlin toolchain stable (2025.08-1). This toolchain use gcc 14,
5.3 kernel headers, glibc 2.41.

We need to update the toolchain in TestAtop since Busybox 1.38.0 added
yescrypt algorithms that requires explicit_bzero() introduced in Glibc
2.25 [4], uClibc-ng 1.0.47 [5] and musl 1.1.20 [6].

There is no real reason to keep this really old toolchain, so bump
the toolchain to Bootlin toolchain stable (2025.08-1).

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/14622325905

[1] 9609a7c2c2
[2] 4057e36ca9
[3] 80e676664e
[4] https://sourceware.org/git/?p=glibc.git;a=commit;h=ea1bd74defcf9d5291d14972e63105168ca9eb4f
[5] 9e7b342fde
[6] https://git.musl-libc.org/cgit/musl/commit/?id=05ac345f895098657cf44d419b5d572161ebaf43

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-06-03 22:13:03 +02:00

26 lines
681 B
Python

import os
import infra.basetest
class TestAtop(infra.basetest.BRTest):
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
"""
BR2_PACKAGE_ATOP=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
"""
def test_run(self):
cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
self.emulator.boot(arch="armv5",
kernel="builtin",
options=["-initrd", cpio_file])
self.emulator.login()
cmd = "atop -V | grep '^Version'"
self.assertRunOk(cmd)
cmd = "atop -a 1 2 | grep '% *atop *$'"
self.assertRunOk(cmd)