From patchwork Fri Oct 18 20:52:52 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: 21182 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9AA46202E6 for ; Fri, 18 Oct 2013 20:53:45 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m17sf8075760oag.7 for ; Fri, 18 Oct 2013 13:53:45 -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:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=vNXPAz6aburHkvOhA5m0EcRZ0wyztbvp2zYA0c3ZnQg=; b=eCRllH5sDgfsioZwzjr2PkTxeM6Pm+TZlwMSn5pWtNLz1kSz5OFByN8Y4/42fCimWA 0eInM3sxjNQf/kgRvNmu7cS53QVmh4OTxgdK1bCCzV2yHKEVU/s1u5JrE3cmgwrfzuoe CZlOhPj5U+9K7dX+Yap70JU0ERv2W3LnZ481PuMzLgtR8G3/9pnADyZaJ4bvLEXO0yS1 dlZkSRoNhKPrERE913UBHTXjWxTmWLujpLJjrXXSrvIb1m6ImR7mxUQUlAGBwYdnJKqZ /lYCfncM/dZDdA7K50oC5qLRAVqu4yMoKIf+h2Z+tE0inA0ZAP4eHjbBYMUGpFcVQfav /AYw== X-Received: by 10.182.111.134 with SMTP id ii6mr1827206obb.38.1382129625244; Fri, 18 Oct 2013 13:53:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.84.1 with SMTP id u1ls1362867qey.8.gmail; Fri, 18 Oct 2013 13:53:45 -0700 (PDT) X-Received: by 10.52.120.78 with SMTP id la14mr2955292vdb.9.1382129625127; Fri, 18 Oct 2013 13:53:45 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id nk5si678108vec.16.2013.10.18.13.53.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id c14so2349595vea.33 for ; Fri, 18 Oct 2013 13:53:45 -0700 (PDT) X-Gm-Message-State: ALoCoQnHjADv+rzeKLjdA1hePTJDYQ8pylJoJulLsPSb7gARoMyVuO8u/Kay/AKyFP9u4pCHbNyD X-Received: by 10.52.227.6 with SMTP id rw6mr2896786vdc.19.1382129624993; Fri, 18 Oct 2013 13:53:44 -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 u4csp63336vcz; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) X-Received: by 10.43.49.8 with SMTP id uy8mr201309icb.73.1382129624321; Fri, 18 Oct 2013 13:53:44 -0700 (PDT) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) by mx.google.com with ESMTPS id d9si3331096icq.120.2013.10.18.13.53.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.177 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.177; Received: by mail-ie0-f177.google.com with SMTP id e14so7164566iej.8 for ; Fri, 18 Oct 2013 13:53:43 -0700 (PDT) X-Received: by 10.50.221.99 with SMTP id qd3mr51024igc.49.1382129623836; Fri, 18 Oct 2013 13:53:43 -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 cl4sm14877361igc.1.2013.10.18.13.53.42 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 13:53:43 -0700 (PDT) From: "Ryan S. Arnold" To: Rob Savoye Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH][Cbuildv2/get_source 10/17] testsuite/test.sh: Add test for tag matching an svn repo in sources.conf. Date: Fri, 18 Oct 2013 15:52:52 -0500 Message-Id: <1382129579-5777-11-git-send-email-ryan.arnold@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1382129579-5777-1-git-send-email-ryan.arnold@linaro.org> References: <1382129579-5777-1-git-send-email-ryan.arnold@linaro.org> 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.128.174 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" --- testsuite/test.sh | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/testsuite/test.sh b/testsuite/test.sh index 7013830..9121f92 100755 --- a/testsuite/test.sh +++ b/testsuite/test.sh @@ -354,6 +354,16 @@ else fixme "get_source returned ${out}" fi +in="newlib.git@e9a210b" +out="`get_source ${in}`" +if test x"${out}" = x"git://git.linaro.org/toolchain/newlib.git e9a210b"; then + pass "get_source: git repository with commit" +else + fail "get_source: git repository with commit" + fixme "get_source returned ${out}" + fixme "should return git://git.linaro.org/toolchain/newlib.git e9a210b" +fi + in="gcc-linaro-4.8-2013.05.tar.bz2" out="`get_source ${in}`" if test x"${out}" = x"gcc-linaro-4.8-2013.05.tar.bz2"; then @@ -372,6 +382,60 @@ else fixme "get_source returned ${out}" fi +in="svn://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch" +out="`get_source ${in}`" +if test x"${out}" = x"svn://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch"; then + pass "get_source: Non-git direct url" +else + fail "get_source: Non-git direct url" + fixme "get_source returned ${out}" +fi + +in="git://git.linaro.org/toolchain/eglibc" +out="`get_source ${in}`" +if test x"${out}" = x"git://git.linaro.org/toolchain/eglibc"; then + pass "get_source: git direct url not ending in .git" +else + fail "get_source: git direct url not ending in .git" + fixme "get_source returned ${out}" +fi + +in="git://git.linaro.org/toolchain/eglibc/branchname@revision" +out="`get_source ${in}`" +if test x"${out}" = x"git://git.linaro.org/toolchain/eglibc/branchname@revision"; then + pass "get_source: git direct url not ending in .git with revision returns bogus url." +else + fail "get_source: git direct url not ending in .git with revision returns bogus url." + fixme "get_source returned ${out}" +fi + +in="git://git.linaro.org/toolchain/foo.git" +out="`get_source ${in}`" +if test x"${out}" = x""; then + pass "get_source: full url with .git with no matching source.conf entry should fail." +else + fail "get_source: full url with .git with no matching source.conf entry should fail." + fixme "get_source returned ${out}" +fi + +in="foo.git" +out="`get_source ${in}`" +if test x"${out}" = x""; then + pass "get_source: .git identifier with no matching source.conf entry should fail." +else + fail "get_source: .git identifier with no matching source.conf entry should fail." + fixme "get_source returned ${out}" +fi + +in="gcc-4.6" +out="`get_source ${in} 2>/dev/null`" +if test x"${out}" = x"svn://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch"; then + pass "get_source: tag matching an svn repo in sources.conf" +else + fail "get_source: tag matching an svn repo in sources.conf" + fixme "get_source returned ${out}" +fi + # ---------------------------------------------------------------------------------- echo "========= create_release_tag() tests ============"