From 3c2463c9cf50dd32930f0d577a5863da99eb2921 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sun, 31 Mar 2024 22:14:23 +0200 Subject: [PATCH] support/testing: add ed runtime test Signed-off-by: Julien Olivain Signed-off-by: Yann E. MORIN (cherry picked from commit dc101babfd5fd36062b8c7551e41cace84192a70) Signed-off-by: Peter Korsgaard --- DEVELOPERS | 1 + support/testing/tests/package/test_ed.py | 98 ++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 support/testing/tests/package/test_ed.py diff --git a/DEVELOPERS b/DEVELOPERS index bb1dfb023a..a38b681a8a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1771,6 +1771,7 @@ F: support/testing/tests/package/test_cryptsetup/ F: support/testing/tests/package/test_ddrescue.py F: support/testing/tests/package/test_ddrescue/ F: support/testing/tests/package/test_dos2unix.py +F: support/testing/tests/package/test_ed.py F: support/testing/tests/package/test_file.py F: support/testing/tests/package/test_file/ F: support/testing/tests/package/test_fluidsynth.py diff --git a/support/testing/tests/package/test_ed.py b/support/testing/tests/package/test_ed.py new file mode 100644 index 0000000000..eee5f8c4fc --- /dev/null +++ b/support/testing/tests/package/test_ed.py @@ -0,0 +1,98 @@ +import os + +import infra.basetest + + +class TestEd(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_ED=y + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def run_ed_cmds(self, ed_cmds): + cmd = "ed <