[Buildroot] [PATCH] support/docker/Dockerfile: new package expect

Jugurtha BELKALEM jugurtha.belkalem at smile.fr
Sun Apr 28 10:41:30 UTC 2019

expect package is required for various automation tests.
One use case is to integrate the script from toolchain builder :
to check Qemu build states.
expect can be used to launch a qemu machine for a given
architecture (x86, x86_64, mips, arm, sparc, nios2, ..., etc),
send root password,  wait for login and then perform shutdown.
Simple algorithms always win, even being a basic test; it can
point out several issues (like  random: crng init done in
qemu_m68k_mcf5208_defconfig, a bug introduced by this
commit : https://git.kernel.org/pub/scm/linux/kernel/

Special note concerning python-pexpect package which can be
used for the same task: After testing the package, We
have noticed that it does not show the automation process
correcly (you may not even see the message welcome to buildroot)
and it is not verbose when errors are encountered.

Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem at smile.fr>
 support/docker/Dockerfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/support/docker/Dockerfile b/support/docker/Dockerfile
index 36cd3b2..33fac37 100644
--- a/support/docker/Dockerfile
+++ b/support/docker/Dockerfile
@@ -45,6 +45,7 @@ RUN apt-get install -y --no-install-recommends \
         subversion \
         unzip \
         wget \
+        expect \
         && \
     apt-get -y autoremove && \
     apt-get -y clean

More information about the buildroot mailing list