From patchwork Fri Oct 18 20:52:58 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: 21188 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6E237202E6 for ; Fri, 18 Oct 2013 20:53:52 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id j10sf11877323oah.9 for ; Fri, 18 Oct 2013 13:53:52 -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=CIdLkmLx4XZHpXAIBoOVvFOV4YR44wnuT/yUSpuVwVk=; b=kkuTA+VWjCGVB56VMYae4b4YUqlbqAVJ9aTqLXQnoI8pOzv6u9W+ejbJPMHQl67lBy W8ZVE4SEejdU/fl9v1oD+ixMf6G3n1uGOUyB4abagQ2/BhLUq7M6xy6Zk9jb+HSi344h L5eOdFa3nD4Nyo6vbw1pNvmP22NnzQ/hqpsLTJOi69ZXKBiMEc78mCIuwkFhwAy+zBTB gM473KhUeKV09b3sF9dbAt3jh6De67lpu/4Ipci01riwDyCdB8qzuiEZr+muxzCN4E2s cZb7Z2EAC5opboBjMaT4IjftQ+7PBtqgRyajKPMsKtS94CUhlkC5K+NlHSwxE4aeEASB Cb4A== X-Received: by 10.50.130.44 with SMTP id ob12mr95986igb.0.1382129632020; Fri, 18 Oct 2013 13:53:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.5.9 with SMTP id o9ls1419455qeo.49.gmail; Fri, 18 Oct 2013 13:53:51 -0700 (PDT) X-Received: by 10.58.136.231 with SMTP id qd7mr3403166veb.1.1382129631863; Fri, 18 Oct 2013 13:53:51 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id gq10si672019vdc.56.2013.10.18.13.53.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 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.180; Received: by mail-ve0-f180.google.com with SMTP id db12so2268157veb.39 for ; Fri, 18 Oct 2013 13:53:51 -0700 (PDT) X-Gm-Message-State: ALoCoQleIXvA6aY/xnqRpONApqyYecQjNTOFfuqfxzkL5LBnF4jWtIdkHz3FnApDVuNz0xkCKXRw X-Received: by 10.58.254.200 with SMTP id ak8mr3499236ved.12.1382129631772; Fri, 18 Oct 2013 13:53:51 -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 u4csp63345vcz; Fri, 18 Oct 2013 13:53:51 -0700 (PDT) X-Received: by 10.50.120.104 with SMTP id lb8mr1004356igb.22.1382129631169; Fri, 18 Oct 2013 13:53:51 -0700 (PDT) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by mx.google.com with ESMTPS id x12si1674845igx.15.2013.10.18.13.53.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.181 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.181; Received: by mail-ie0-f181.google.com with SMTP id ar20so7285498iec.40 for ; Fri, 18 Oct 2013 13:53:50 -0700 (PDT) X-Received: by 10.42.149.130 with SMTP id w2mr1905115icv.64.1382129630759; Fri, 18 Oct 2013 13:53:50 -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.49 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 13:53:50 -0700 (PDT) From: "Ryan S. Arnold" To: Rob Savoye Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH][Cbuildv2/get_source 16/17] testsuite/test.sh: Add get_URL test for .git@revision. Date: Fri, 18 Oct 2013 15:52:58 -0500 Message-Id: <1382129579-5777-17-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.180 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/testsuite/test.sh b/testsuite/test.sh index 2cd79d5..25709eb 100755 --- a/testsuite/test.sh +++ b/testsuite/test.sh @@ -250,6 +250,20 @@ else fixme "get_URL returned ${out}" fi +out="`get_URL gcc.git@12345`" +if test x"`echo ${out} | cut -d ' ' -f 1`" = x"git://git.linaro.org/toolchain/gcc.git"; then + pass "get_URL: match URL for URL.git@revision" +else + fail "get_URL: match URL for URL.git@revision" + fixme "get_URL returned ${out}" +fi +if test x"`echo ${out} | cut -d ' ' -f 2`" = x"12345"; then + pass "get_URL: match revision for URL.git@revision" +else + fail "get_URL: match revision for URL.git@revision" + fixme "get_URL returned ${out}" +fi + out="`get_URL gcc.git/linaro-4.8-branch@12345`" if test x"`echo ${out} | cut -d ' ' -f 1`" = x"git://git.linaro.org/toolchain/gcc.git"; then pass "get_URL: git URL in latest field"