From patchwork Fri Oct 18 20:52:55 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: 21185 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 497E1202E6 for ; Fri, 18 Oct 2013 20:53:49 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id j10sf11871889oah.5 for ; Fri, 18 Oct 2013 13:53:48 -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=Hn6JLpXThx9REIhlQDtLQ9ixY6FtqJxZ/JZVMVtV1ag=; b=dpRgRaFgiKwoCjuEwbeKeJzOzyvO8zMZEvZCnauwa6a5eoXn/FDYGOx0+EwgSPIk9b YPdgoyDxb5o8Y99mEZnvBlGiF1+WOR62QNp2gG6ARhvDtVqdlrpPuVCK/T8z3qlrTVbq YU8DOvSo1RK6iZRpv0fNMyVWdYuKoepVD8dy4uzdvDioXUwqOnAgp+cMTTaq5o1yZdra 057ae5r5vAZdtRtxbdY01j7nMxhTUZPFJQmBRPxE3gaDRhvDxBk2RvpuU9eqEN30ndgz zrQ9nVELjIXUWnpqGNsVKKewcid5I6dZzFAxERV6WVhghkXtGJTnUmudeqvWad7sTvim DBHA== X-Received: by 10.50.61.242 with SMTP id t18mr524741igr.3.1382129628858; Fri, 18 Oct 2013 13:53:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.233 with SMTP id oh9ls1444627qeb.62.gmail; Fri, 18 Oct 2013 13:53:48 -0700 (PDT) X-Received: by 10.52.35.20 with SMTP id d20mr483066vdj.33.1382129628684; Fri, 18 Oct 2013 13:53:48 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id uh5si666165vcb.127.2013.10.18.13.53.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.180; Received: by mail-vc0-f180.google.com with SMTP id ld13so687626vcb.25 for ; Fri, 18 Oct 2013 13:53:48 -0700 (PDT) X-Gm-Message-State: ALoCoQl0HWpoZCw7AH4+VV9i/bzZQXtk8974KvA+ZqXzF285luJA5UhYaHmHZFU2ZLiaigP+eKB7 X-Received: by 10.58.64.202 with SMTP id q10mr1884195ves.22.1382129628564; Fri, 18 Oct 2013 13:53:48 -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 u4csp63341vcz; Fri, 18 Oct 2013 13:53:48 -0700 (PDT) X-Received: by 10.50.46.67 with SMTP id t3mr962889igm.46.1382129627888; Fri, 18 Oct 2013 13:53:47 -0700 (PDT) Received: from mail-ie0-f170.google.com (mail-ie0-f170.google.com [209.85.223.170]) by mx.google.com with ESMTPS id m5si8559488igk.27.2013.10.18.13.53.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Oct 2013 13:53:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.223.170 is neither permitted nor denied by best guess record for domain of ryan.arnold@linaro.org) client-ip=209.85.223.170; Received: by mail-ie0-f170.google.com with SMTP id at1so7713173iec.29 for ; Fri, 18 Oct 2013 13:53:47 -0700 (PDT) X-Received: by 10.50.87.4 with SMTP id t4mr1016884igz.18.1382129627312; Fri, 18 Oct 2013 13:53:47 -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.46 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2013 13:53:46 -0700 (PDT) From: "Ryan S. Arnold" To: Rob Savoye Cc: patches@linaro.org, "Ryan S. Arnold" Subject: [PATCH][Cbuildv2/get_source 13/17] testsuite/test.sh: Add tests for user git repos not ending in .git. Date: Fri, 18 Oct 2013 15:52:55 -0500 Message-Id: <1382129579-5777-14-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.220.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 | 36 ++++++++++++++++++++++++++++++++++++ testsuite/test_sources.conf | 3 +++ 2 files changed, 39 insertions(+) diff --git a/testsuite/test.sh b/testsuite/test.sh index f8189e7..db827c2 100755 --- a/testsuite/test.sh +++ b/testsuite/test.sh @@ -442,6 +442,42 @@ else fixme "get_source returned ${out}" fi +in="bitbake.git" +out="`get_source ${in} 2>/dev/null`" +if test x"${out}" = x"git://git.openembedded.org/bitbake"; then + pass "get_source: ${sources_conf}:${in} matching non .git suffixed repo." +else + fail "get_source: ${sources_conf}:${in} matching non .git suffixed repo." + fixme "get_source returned ${out}" +fi + +in="foo.git" +out="`get_source ${in} 2>/dev/null`" +if test x"${out}" = x"git://testingrepository/foo"; then + pass "get_source: ${sources_conf}:${in} matching non .git suffixed repo." +else + fail "get_source: ${sources_conf}:${in} matching non .git suffixed repo." + fixme "get_source returned ${out}" +fi + +in="foo.git/bar" +out="`get_source ${in} 2>/dev/null`" +if test x"${out}" = x"git://testingrepository/foo bar"; then + pass "get_source: ${sources_conf}:${in} matching non .git suffixed repo with branch." +else + fail "get_source: ${sources_conf}:${in} matching non .git suffixed repo with branch." + fixme "get_source returned ${out}" +fi + +in="foo.git/bar@rev" +out="`get_source ${in} 2>/dev/null`" +if test x"${out}" = x"git://testingrepository/foo bar rev"; then + pass "get_source: ${sources_conf}:${in} matching non .git suffixed repo with branch and revision." +else + fail "get_source: ${sources_conf}:${in} matching non .git suffixed repo with branch and revision." + fixme "get_source returned ${out}" +fi + # ---------------------------------------------------------------------------------- echo "========= create_release_tag() tests ============" diff --git a/testsuite/test_sources.conf b/testsuite/test_sources.conf index 109921b..cf3bcf7 100644 --- a/testsuite/test_sources.conf +++ b/testsuite/test_sources.conf @@ -45,3 +45,6 @@ openembedded-core.git git://git.openembedded.org/openembedded-core valgrind svn://svn.valgrind.org/valgrind/trunk qemu.git git://git.qemu.org/qemu.git qemu-linaro.git git://git.linaro.org/qemu/qemu-linaro.git + +# For Testing Only +foo.git git://testingrepository/foo