From patchwork Mon Oct 14 23:33:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ryan S. Arnold" X-Patchwork-Id: 21013 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D509120DA3 for ; Mon, 14 Oct 2013 23:33:48 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id kq14sf14942755pab.8 for ; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=F9iEiw9SIK1AfKK8N2kVGfNTgN+tUoqR4FWNVNWfYWY=; b=R4LvXFY3yGbnaUpNk8/pvMNDGpiwyKz7od3P6vRgmBNnlwuFctbgEh2MUXZt5GoQVk 9Dj3nonh1z3vU/RWWSAjTBhsT/VxE1RDBa/9JXgCgEU0lmwK9Bj3J/Dw6pESc08HXspa 3N+GkLlkdUqUngxyBwCcwi+dpvn7XwcY+J8vZBetn4uHjwgsA6Iz/VxprqwY4a0W7KfC 5VIAZ2QSiSm3wrRlbdcl63Bl+TtppuAVxiTMRN/G+YyacjcJw9KTgTSS8QctumSZtRbP /Ohz2Tjd5uOd759H1sevqpdYtats1l+YHXSZx6FJ0x1IirP2ekQ+PaKelqf3KSqmzamw CDVw== X-Received: by 10.66.121.194 with SMTP id lm2mr12789584pab.20.1381793627823; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.63.37 with SMTP id d5ls880191qes.17.gmail; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) X-Received: by 10.221.44.136 with SMTP id ug8mr37065194vcb.13.1381793627679; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id dt10si21758524vdb.112.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 16:33:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ia6so3803167vcb.20 for ; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) X-Gm-Message-State: ALoCoQkTrA6MuA+hnP8c+2rj/Wnp6tW8bX/d14ZF/osPbV/FXAJEKzNLLGzmHYwVG0gDSd3qiWdy X-Received: by 10.221.51.206 with SMTP id vj14mr3764498vcb.17.1381793627360; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp257781vcz; Mon, 14 Oct 2013 16:33:47 -0700 (PDT) X-Received: by 10.50.60.5 with SMTP id d5mr15049406igr.26.1381793626811; Mon, 14 Oct 2013 16:33:46 -0700 (PDT) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx.google.com with ESMTPS id a10si27474820icq.152.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 16:33:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.182 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.182; Received: by mail-ie0-f182.google.com with SMTP id as1so12195716iec.27 for ; Mon, 14 Oct 2013 16:33:46 -0700 (PDT) X-Received: by 10.50.61.35 with SMTP id m3mr12939264igr.56.1381793626069; Mon, 14 Oct 2013 16:33:46 -0700 (PDT) Received: from badwing.hsd1.mn.comcast.net. (c-71-195-40-9.hsd1.mn.comcast.net. [71.195.40.9]) by mx.google.com with ESMTPSA id k6sm326003igx.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Oct 2013 16:33:45 -0700 (PDT) From: "Ryan S. Arnold" To: Rob Savoye Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH][test_fetch_md5sums_fix] testsuite/test.sh: Add second fetch md5sums test and always use wget -q in testsuite. Date: Mon, 14 Oct 2013 18:33:40 -0500 Message-Id: <1381793620-13816-1-git-send-email-ryan.arnold@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ryan.arnold@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: "Ryan S. Arnold" Tested in src dir and in build dir. --- testsuite/test.sh | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/testsuite/test.sh b/testsuite/test.sh index 3cb2356..92e1c76 100755 --- a/testsuite/test.sh +++ b/testsuite/test.sh @@ -17,12 +17,14 @@ else warning "no host.conf file!" remote_snapshots=http://cbuild.validation.linaro.org/snapshots wget_bin=/usr/bin/wget - wget_quiet=yes fi +# Use wget -q in the testsuite +wget_quiet=yes + # We always override $local_snapshots so that we don't damage or move the # local_snapshots directory of an existing build. -local_snapshots="`mktemp -d /tmp/cbuild2.XXX`/snapshots" +local_snapshots="`mktemp -d /tmp/cbuild2.$$.XXX`/snapshots" # Let's make sure that the snapshots portion of the directory is created before # we use it just to be safe. @@ -163,6 +165,26 @@ if test $? -eq 0; then else fail "fetch md5sums" fi + +# Fetching again to test the .bak functionality. +out="`fetch md5sums`" +if test $? -eq 0; then + pass "fetch md5sums" +else + fail "fetch md5sums" +fi + +if test ! -e "${local_snapshots}/md5sums"; then + fail "Did not find ${local_snapshots}/md5sums" +else + pass "Found ${local_snapshots}/md5sums" +fi + +if test ! -e "${local_snapshots}/md5sums.bak"; then + fail "Did not find ${local_snapshots}/md5sums.bak" +else + pass "Found ${local_snapshots}/md5sums.bak" +fi # ---------------------------------------------------------------------------------- echo "============= find_snapshot() tests ================"