* [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2
@ 2025-12-21 11:57 Julien Olivain via buildroot
2025-12-21 11:57 ` [Buildroot] [PATCH 2/3] package/tio: bump version to 3.9 Julien Olivain via buildroot
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Julien Olivain via buildroot @ 2025-12-21 11:57 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain, Sergio Prado
Buildroot commit [1] (package/tio: bump to 3.5) added the libglib2 in
the .mk file without selecting it in Config.in.
This commit fixes that.
[1] https://gitlab.com/buildroot.org/buildroot/-/commit/3d85e9df431af790930e03d860bfa098108888a0
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
package/tio/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/tio/Config.in b/package/tio/Config.in
index 953b26a349..ef9a129e73 100644
--- a/package/tio/Config.in
+++ b/package/tio/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_TIO
depends on BR2_USE_WCHAR # glib2
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
depends on !BR2_PACKAGE_LUAJIT
+ select BR2_PACKAGE_LIBGLIB2
help
"tio" is a simple TTY terminal application which features a
straightforward commandline interface to easily connect to
--
2.52.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH 2/3] package/tio: bump version to 3.9 2025-12-21 11:57 [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Julien Olivain via buildroot @ 2025-12-21 11:57 ` Julien Olivain via buildroot 2025-12-21 11:57 ` [Buildroot] [PATCH 3/3] support/testing: add tio runtime test Julien Olivain via buildroot 2025-12-28 21:58 ` [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Thomas Petazzoni via buildroot 2 siblings, 0 replies; 6+ messages in thread From: Julien Olivain via buildroot @ 2025-12-21 11:57 UTC (permalink / raw) To: buildroot; +Cc: Julien Olivain, Sergio Prado For release notes since 3.5, see: https://github.com/tio/tio/releases This commit updates the license hash, after a year update: https://github.com/tio/tio/commit/f5740dbf3150bf292d77a450b9945d7870489192 Signed-off-by: Julien Olivain <ju.o@free.fr> --- package/tio/tio.hash | 6 +++--- package/tio/tio.mk | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/tio/tio.hash b/package/tio/tio.hash index d1caeeebc6..0d9acae9d6 100644 --- a/package/tio/tio.hash +++ b/package/tio/tio.hash @@ -1,5 +1,5 @@ -# From https://github.com/tio/tio/releases/download/v3.5/tio-3.5.tar.xz.sha256sum: -sha256 efd3e9a406f827ac22d4157e345079dde15ee5a948b24156561d6c97a54e6ec0 tio-3.5.tar.xz +# From https://github.com/tio/tio/releases/download/v3.9/tio-3.9.tar.xz.sha256sum: +sha256 06fe0c22e3e75274643c017928fbc85e86589bc1acd515d92f98eecd4bbab11b tio-3.9.tar.xz # Hash for license files: -sha256 9248dee77ee136321f24556a96e07ff8f90461013941884a9defd0ac825ef131 LICENSE +sha256 4c336df2e6334540d713e302281bcd35df3e03b05e4d4d62ef84bde8ae00eea9 LICENSE diff --git a/package/tio/tio.mk b/package/tio/tio.mk index 637a7bdd83..b5711d10ff 100644 --- a/package/tio/tio.mk +++ b/package/tio/tio.mk @@ -4,7 +4,7 @@ # ################################################################################ -TIO_VERSION = 3.5 +TIO_VERSION = 3.9 TIO_SOURCE = tio-$(TIO_VERSION).tar.xz TIO_SITE = https://github.com/tio/tio/releases/download/v$(TIO_VERSION) TIO_LICENSE = GPL-2.0+ -- 2.52.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 3/3] support/testing: add tio runtime test 2025-12-21 11:57 [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Julien Olivain via buildroot 2025-12-21 11:57 ` [Buildroot] [PATCH 2/3] package/tio: bump version to 3.9 Julien Olivain via buildroot @ 2025-12-21 11:57 ` Julien Olivain via buildroot 2026-01-07 17:50 ` Arnout Vandecappelle via buildroot 2025-12-28 21:58 ` [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Thomas Petazzoni via buildroot 2 siblings, 1 reply; 6+ messages in thread From: Julien Olivain via buildroot @ 2025-12-21 11:57 UTC (permalink / raw) To: buildroot; +Cc: Julien Olivain, Sergio Prado Signed-off-by: Julien Olivain <ju.o@free.fr> --- Patch series tested in: https://gitlab.com/jolivain/buildroot/-/jobs/12509867607 --- DEVELOPERS | 1 + support/testing/tests/package/test_tio.py | 74 +++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 support/testing/tests/package/test_tio.py diff --git a/DEVELOPERS b/DEVELOPERS index 1b27df9beb..fe9fbf5154 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2014,6 +2014,7 @@ F: support/testing/tests/package/test_tcl.py F: support/testing/tests/package/test_tcl/ F: support/testing/tests/package/test_tcpdump.py F: support/testing/tests/package/test_tesseract_ocr.py +F: support/testing/tests/package/test_tio.py F: support/testing/tests/package/test_trace_cmd.py F: support/testing/tests/package/test_trace_cmd/ F: support/testing/tests/package/test_tree.py diff --git a/support/testing/tests/package/test_tio.py b/support/testing/tests/package/test_tio.py new file mode 100644 index 0000000000..f7d612b9dd --- /dev/null +++ b/support/testing/tests/package/test_tio.py @@ -0,0 +1,74 @@ +import os +import time + +import infra.basetest + + +class TestTio(infra.basetest.BRTest): + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ + """ + BR2_PACKAGE_LUA=y + BR2_PACKAGE_SOCAT=y + BR2_PACKAGE_TIO=y + BR2_TARGET_ROOTFS_CPIO=y + # BR2_TARGET_ROOTFS_TAR is not set + """ + + def get_tty_name(self): + out, ret = self.emulator.run("tty") + self.assertEqual(ret, 0) + return out[0] + + 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() + + # We check the program can run + self.assertRunOk("tio --version") + + # We save our tty name for later. + initial_tty = self.get_tty_name() + + # We define two arbitrary pseudo-terminals, for our test. + pty1 = "pty1_getty" + pty2 = "pty2_tio" + + # We create our 2 PTYs with socat and connect them together. + cmd = "( socat" + for pty in [pty1, pty2]: + cmd += f" PTY,link=/dev/{pty},rawer,b115200" + cmd += " &> /dev/null & )" + self.assertRunOk(cmd) + + # We wait for socat to be ready... + for attempt in range(3 * self.timeout_multiplier): + time.sleep(1) + cmd = f"test -e /dev/{pty1} -a -e /dev/{pty2}" + _, ret = self.emulator.run(cmd) + if ret == 0: + break + else: + self.fail("Timeout while waiting for socat.") + + # We start getty on our first PTY. + self.assertRunOk(f"setsid getty {pty1} 115200 vt100") + + # We start tio on our second PTY and send a new line. + # We wait for tio to be ready then send a new line. + # After that, we expect to see a new login. + self.emulator.qemu.sendline(f"tio /dev/{pty2}") + self.emulator.qemu.expect(f"Connected to /dev/{pty2}") + self.emulator.qemu.sendline() + + # We try to re-login, in tio this time. + self.emulator.login() + + # We get again our tty name. + tio_tty = self.get_tty_name() + + # We check our second login TTY name is different from the one + # in the first login. + self.assertNotEqual(initial_tty, tio_tty) -- 2.52.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 3/3] support/testing: add tio runtime test 2025-12-21 11:57 ` [Buildroot] [PATCH 3/3] support/testing: add tio runtime test Julien Olivain via buildroot @ 2026-01-07 17:50 ` Arnout Vandecappelle via buildroot 0 siblings, 0 replies; 6+ messages in thread From: Arnout Vandecappelle via buildroot @ 2026-01-07 17:50 UTC (permalink / raw) To: Julien Olivain; +Cc: Arnout Vandecappelle, buildroot In reply of: > Signed-off-by: Julien Olivain <ju.o@free.fr> Applied to 2025.02.x and 2025.11.x. Thanks > --- > Patch series tested in: > https://gitlab.com/jolivain/buildroot/-/jobs/12509867607 > --- > DEVELOPERS | 1 + > support/testing/tests/package/test_tio.py | 74 +++++++++++++++++++++++ > 2 files changed, 75 insertions(+) > create mode 100644 support/testing/tests/package/test_tio.py > > diff --git a/DEVELOPERS b/DEVELOPERS > index 1b27df9beb..fe9fbf5154 100644 > --- a/DEVELOPERS > +++ b/DEVELOPERS > @@ -2014,6 +2014,7 @@ F: support/testing/tests/package/test_tcl.py > F: support/testing/tests/package/test_tcl/ > F: support/testing/tests/package/test_tcpdump.py > F: support/testing/tests/package/test_tesseract_ocr.py > +F: support/testing/tests/package/test_tio.py > F: support/testing/tests/package/test_trace_cmd.py > F: support/testing/tests/package/test_trace_cmd/ > F: support/testing/tests/package/test_tree.py > diff --git a/support/testing/tests/package/test_tio.py b/support/testing/tests/package/test_tio.py > new file mode 100644 > index 0000000000..f7d612b9dd > --- /dev/null > +++ b/support/testing/tests/package/test_tio.py > @@ -0,0 +1,74 @@ > +import os > +import time > + > +import infra.basetest > + > + > +class TestTio(infra.basetest.BRTest): > + config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \ > + """ > + BR2_PACKAGE_LUA=y > + BR2_PACKAGE_SOCAT=y > + BR2_PACKAGE_TIO=y > + BR2_TARGET_ROOTFS_CPIO=y > + # BR2_TARGET_ROOTFS_TAR is not set > + """ > + > + def get_tty_name(self): > + out, ret = self.emulator.run("tty") > + self.assertEqual(ret, 0) > + return out[0] > + > + 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() > + > + # We check the program can run > + self.assertRunOk("tio --version") > + > + # We save our tty name for later. > + initial_tty = self.get_tty_name() > + > + # We define two arbitrary pseudo-terminals, for our test. > + pty1 = "pty1_getty" > + pty2 = "pty2_tio" > + > + # We create our 2 PTYs with socat and connect them together. > + cmd = "( socat" > + for pty in [pty1, pty2]: > + cmd += f" PTY,link=/dev/{pty},rawer,b115200" > + cmd += " &> /dev/null & )" > + self.assertRunOk(cmd) > + > + # We wait for socat to be ready... > + for attempt in range(3 * self.timeout_multiplier): > + time.sleep(1) > + cmd = f"test -e /dev/{pty1} -a -e /dev/{pty2}" > + _, ret = self.emulator.run(cmd) > + if ret == 0: > + break > + else: > + self.fail("Timeout while waiting for socat.") > + > + # We start getty on our first PTY. > + self.assertRunOk(f"setsid getty {pty1} 115200 vt100") > + > + # We start tio on our second PTY and send a new line. > + # We wait for tio to be ready then send a new line. > + # After that, we expect to see a new login. > + self.emulator.qemu.sendline(f"tio /dev/{pty2}") > + self.emulator.qemu.expect(f"Connected to /dev/{pty2}") > + self.emulator.qemu.sendline() > + > + # We try to re-login, in tio this time. > + self.emulator.login() > + > + # We get again our tty name. > + tio_tty = self.get_tty_name() > + > + # We check our second login TTY name is different from the one > + # in the first login. > + self.assertNotEqual(initial_tty, tio_tty) > -- > 2.52.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 2025-12-21 11:57 [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Julien Olivain via buildroot 2025-12-21 11:57 ` [Buildroot] [PATCH 2/3] package/tio: bump version to 3.9 Julien Olivain via buildroot 2025-12-21 11:57 ` [Buildroot] [PATCH 3/3] support/testing: add tio runtime test Julien Olivain via buildroot @ 2025-12-28 21:58 ` Thomas Petazzoni via buildroot 2026-01-07 17:51 ` Arnout Vandecappelle via buildroot 2 siblings, 1 reply; 6+ messages in thread From: Thomas Petazzoni via buildroot @ 2025-12-28 21:58 UTC (permalink / raw) To: Julien Olivain via buildroot; +Cc: Julien Olivain, Sergio Prado Hello, On Sun, 21 Dec 2025 12:57:06 +0100 Julien Olivain via buildroot <buildroot@buildroot.org> wrote: > Buildroot commit [1] (package/tio: bump to 3.5) added the libglib2 in > the .mk file without selecting it in Config.in. > > This commit fixes that. > > [1] https://gitlab.com/buildroot.org/buildroot/-/commit/3d85e9df431af790930e03d860bfa098108888a0 > > Signed-off-by: Julien Olivain <ju.o@free.fr> Thanks a lot, series applied! Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 2025-12-28 21:58 ` [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Thomas Petazzoni via buildroot @ 2026-01-07 17:51 ` Arnout Vandecappelle via buildroot 0 siblings, 0 replies; 6+ messages in thread From: Arnout Vandecappelle via buildroot @ 2026-01-07 17:51 UTC (permalink / raw) To: Thomas Petazzoni; +Cc: Arnout Vandecappelle, Julien Olivain via buildroot In reply of: > Hello, > > On Sun, 21 Dec 2025 12:57:06 +0100 > Julien Olivain via buildroot <buildroot@buildroot.org> wrote: > > > Buildroot commit [1] (package/tio: bump to 3.5) added the libglib2 in > > the .mk file without selecting it in Config.in. > > > > This commit fixes that. > > > > [1] https://gitlab.com/buildroot.org/buildroot/-/commit/3d85e9df431af790930e03d860bfa098108888a0 > > > > Signed-off-by: Julien Olivain <ju.o@free.fr> > > Thanks a lot, series applied! > > Thomas > -- > Thomas Petazzoni, co-owner and CEO, Bootlin > Embedded Linux and Kernel engineering and training > https://bootlin.com > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot Applied to 2025.02.x and 2025.11.x. Thanks _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-01-07 17:51 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-12-21 11:57 [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Julien Olivain via buildroot 2025-12-21 11:57 ` [Buildroot] [PATCH 2/3] package/tio: bump version to 3.9 Julien Olivain via buildroot 2025-12-21 11:57 ` [Buildroot] [PATCH 3/3] support/testing: add tio runtime test Julien Olivain via buildroot 2026-01-07 17:50 ` Arnout Vandecappelle via buildroot 2025-12-28 21:58 ` [Buildroot] [PATCH 1/3] package/tio: Config.in: add missing selection of libglib2 Thomas Petazzoni via buildroot 2026-01-07 17:51 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox