From patchwork Mon Aug 13 06:36:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 956833 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41pmHM0D9Yz9s9l for ; Mon, 13 Aug 2018 16:37:19 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YS+NowVm"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41pmHL5W8fzF0bZ for ; Mon, 13 Aug 2018 16:37:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YS+NowVm"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::52d; helo=mail-pg1-x52d.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YS+NowVm"; dkim-atps=neutral Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41pmHF6xPBzF0dY for ; Mon, 13 Aug 2018 16:37:13 +1000 (AEST) Received: by mail-pg1-x52d.google.com with SMTP id y5-v6so7109149pgv.1 for ; Sun, 12 Aug 2018 23:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=8L3gHojNaMrvjke14d2qlZxVObvNUQ/dIJhJgX2tPCk=; b=YS+NowVm0P1ygQ7WpToWu5e+w3RHF4to3OTUh6cZrDImHH7ym/36T+l5Szgdieg44t qZJbWXIDEGE6kFxhYU0n2I/ZsEiWOEkgUzPQ0buZ1mQlIdf28P4ZvtKEVCbom6f+T/iu 5bP8RNFl71MCYIFfG+ukNBViKCTXjuguk6k3xfjgXyL4yFFpOsmCCLXDF6ehv1SMQARf e2OFbl2NY10V76MGAVFaSml7Jwwo34omDeWl4eq+uLuJTgV2ffKl6YPUbeCDNTMlop8q tZ33/U7Ni0Q2vl9FsKtgP6IRmx+SlzDF/sMUlZYJ28UU50AjLp8t2ci2Elp7NSRp8lQ3 pygA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=8L3gHojNaMrvjke14d2qlZxVObvNUQ/dIJhJgX2tPCk=; b=YrANEtqoMIEh0AzPz8+dJqXKrO00MfdLZSb3hK3+16A6KWozwNI3Ey/vIbQMPQ6ILt fmvXBwM1I9N5HARSzfb4TCSVZ6LZ2J1Y+rofkGgRjI8A9lEwRNxsMnXHzbPRLiAZ7Dry 0iG26kUZ6Y2D36r+51XcZwMzv8TC9zljJ2w4DMa+dhpt4oWEmoKDLmMQ7o6buyoo2uLF hDqV3Mx0xbXdpPM13dv6VftkXCIGVrI4j6sqlrJGpQv6d0vQejP5bW6Q6LGNFTRxEdqU KgH6Qp0V5T2X42o89JzQbWXvHMbLxrysobqShwMiIa69/nQZnT1hecVPR9Ri9NY5opy8 vBew== X-Gm-Message-State: AOUpUlGnwaX373otvO/L0cHCHy+niLHgHzcMZXn3fGJk1ipSAR96kXvR Eyqo6gsWFufEByWTrtx/5WJLXzGS X-Google-Smtp-Source: AA+uWPwHHRtK0HNkjn8HAGCkcMSZhFIjm4uLS0xUUD9teXE4krV5P/Z4iwUhj600/2m0g11yl8cyeQ== X-Received: by 2002:a62:f50b:: with SMTP id n11-v6mr17615200pfh.120.1534142231378; Sun, 12 Aug 2018 23:37:11 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id e73-v6sm34176626pfb.153.2018.08.12.23.37.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Aug 2018 23:37:10 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 13 Aug 2018 16:07:06 +0930 From: Joel Stanley To: pdbg@lists.ozlabs.org Date: Mon, 13 Aug 2018 16:06:52 +0930 Message-Id: <20180813063652.20534-3-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180813063652.20534-1-joel@jms.id.au> References: <20180813063652.20534-1-joel@jms.id.au> Subject: [Pdbg] [PATCH 2/2] utils: Add script to run make check X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" This builds the software for the host architecture and runs make check inside a container. Added to the travis configuration. Signed-off-by: Joel Stanley --- .travis.yml | 1 + utils/test.sh | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 utils/test.sh diff --git a/.travis.yml b/.travis.yml index 9e1a86bc3140..596b50ff4e1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,4 @@ services: script: - ./utils/build.sh + - ./utils/test.sh diff --git a/utils/test.sh b/utils/test.sh new file mode 100755 index 000000000000..e2bd25893910 --- /dev/null +++ b/utils/test.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -e + +CONTAINER=pdbg-check + +Dockerfile=$(cat << EOF +FROM ubuntu:18.04 +RUN apt-get update && apt-get install --no-install-recommends -yy \ + make \ + gcc \ + autoconf \ + automake \ + libtool \ + git \ + device-tree-compiler +RUN groupadd -g ${GROUPS} ${USER} && useradd -d ${HOME} -m -u ${UID} -g ${GROUPS} ${USER} +USER ${USER} +ENV HOME ${HOME} +RUN /bin/bash +EOF +) + +docker pull ubuntu:18.04 +docker build -t ${CONTAINER} - <<< "${Dockerfile}" + +RUN="docker run --rm=true --user=${USER} -w ${PWD} -v ${HOME}:${HOME} -t ${CONTAINER}" + +${RUN} ./bootstrap.sh +${RUN} ./configure +${RUN} make clean +${RUN} make +${RUN} make check