From patchwork Sun Apr 28 10:41:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1092224 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="GbdME9b1"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44sPVJ3ylpz9s5c for ; Sun, 28 Apr 2019 20:41:42 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0358984B0F; Sun, 28 Apr 2019 10:41:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kt0VUNFJGDXg; Sun, 28 Apr 2019 10:41:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A2ABE84AB8; Sun, 28 Apr 2019 10:41:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 23A5C1BF2CF for ; Sun, 28 Apr 2019 10:41:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 20FB3226D0 for ; Sun, 28 Apr 2019 10:41:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SnGPbvLsy+wh for ; Sun, 28 Apr 2019 10:41:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by silver.osuosl.org (Postfix) with ESMTPS id 95651226B2 for ; Sun, 28 Apr 2019 10:41:35 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id c5so11236450wrs.11 for ; Sun, 28 Apr 2019 03:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=L69dBTNi67tRuqqun6mpWF/BTPpjRPWU+V4SnJVyYjw=; b=GbdME9b1VLG+vgzG1HSbrDC97qG4Nm6zxJKYqD78qEeJXuGZpXMk4oRUzgyBHgjcj0 u9Et4sjiFNQtWenhkMh1WuPabOvuqZlvrHEj/dYvS/zMbIKlnL5ITHBiIFAIt2Zq5H4I xkKFboic6EpAVtS+yb9AdC5xv07LVJc/3Pm97P7cVCkw000V+XLut8BLYT43IoHv1i/+ eXefMp0fh0PlCLgmGyljacG7Oe/THzWySwjibTT5wMDosnBYn0suj3YI52gbdDue7k/c S/fbSSn+qJIjp2B7niGRbM5eJKUnPuPpQUIog3PPTdbtV13UCGGaAPoUPtsO8n/kzWcC lm8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=L69dBTNi67tRuqqun6mpWF/BTPpjRPWU+V4SnJVyYjw=; b=MvV81m0k7Xje6K6EDH1FdGIfI6syC+ZECJkR0RCQPMQQUU56t/mNM0EVtcqkdBvtK8 WqU6KlHPBCPTIS4io+C5wHkJXFBiNfBBHilqXuj6RvYysOcDBgP2bqIwYuao2krMICcV 6dA0e5VgnPoR41MpK5qljKs/G+CGobWssfUoYfSFvUpclNLafFpLV6aQtjVxkfY0grR8 fN7ihv7C4zSQd2DwrrleaL1aEkdTBc7WHKM7qvtjSMA6QDcGNA5CwgtJrZgCLXex/KOd TWHorxWInLH3iaR/kQGhBwxyt4U66eu7LjfqHU8w0ZYC5gfbjF1LnnffziSqLTREfZh8 9zIw== X-Gm-Message-State: APjAAAWhqFDuUS3edRdJPz+B2QODfH15fyqZZW0zVvncmA97wte+xx4w 6+/erAKf5cyCPIza3K4FXie0tO7k+z8= X-Google-Smtp-Source: APXvYqws7zbwiI6a1lzBX0wiU2kQ+y34HPutcZ0v6I6IRrDsUlOsOI2129rITKnd0VRNt//GDBL0UQ== X-Received: by 2002:adf:eb4c:: with SMTP id u12mr32205139wrn.235.1556448094016; Sun, 28 Apr 2019 03:41:34 -0700 (PDT) Received: from localhost.localdomain (161.89.8.109.rev.sfr.net. [109.8.89.161]) by smtp.gmail.com with ESMTPSA id w10sm13864567wmi.43.2019.04.28.03.41.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Apr 2019 03:41:33 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Sun, 28 Apr 2019 12:41:30 +0200 Message-Id: <1556448090-11254-1-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] support/docker/Dockerfile: new package expect X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jugurtha BELKALEM MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" expect package is required for various automation tests. One use case is to integrate the script from toolchain builder : https://github.com/bootlin/toolchains-builder/blob/master/build.sh 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/ git/torvalds/linux.git/commit/? id=43838a23a05fbd13e47d750d3dfd77001536dd33). 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 --- 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