This patch series adds end to end testing infrastructure required to verify the liveupdate feature, building and running the existing selftests on supported architectures.
To support executing the selftests as part of an init process, this patch series also adds ftruncate() to nolibc. Changelog from v2 [1]: - Removed unncessary nolibc/sys.h include in luo_test_utils.c - In ftruncate(), use __NR_ftruncate64 when necessary - Add ftruncate() test case to selftests/nolibc [1] https://lore.kernel.org/linux-mm/[email protected]/ Jordan Richards (1): tools/nolibc: add ftruncate() Pasha Tatashin (1): selftests/liveupdate: add end to end test infrastructure and scripts tools/include/nolibc/arch-arm.h | 11 + tools/include/nolibc/arch-mips.h | 11 + tools/include/nolibc/arch-powerpc.h | 11 + tools/include/nolibc/unistd.h | 35 +++ tools/testing/selftests/liveupdate/.gitignore | 1 + tools/testing/selftests/liveupdate/config | 1 + .../selftests/liveupdate/config.aarch64 | 2 + .../selftests/liveupdate/config.x86_64 | 2 + tools/testing/selftests/liveupdate/init.c | 179 ++++++++++++ .../testing/selftests/liveupdate/luo_test.sh | 276 ++++++++++++++++++ .../selftests/liveupdate/luo_test_utils.c | 23 +- tools/testing/selftests/liveupdate/run.sh | 63 ++++ tools/testing/selftests/nolibc/nolibc-test.c | 51 ++++ 13 files changed, 653 insertions(+), 13 deletions(-) create mode 100644 tools/testing/selftests/liveupdate/config.aarch64 create mode 100644 tools/testing/selftests/liveupdate/config.x86_64 create mode 100644 tools/testing/selftests/liveupdate/init.c create mode 100755 tools/testing/selftests/liveupdate/luo_test.sh create mode 100755 tools/testing/selftests/liveupdate/run.sh base-commit: c95c8315909f078d16bffa2687346b4c63baf0a1 -- 2.53.0.473.g4a7958ca14-goog

