From patchwork Sat May 12 02:58:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Martincoski X-Patchwork-Id: 912360 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C0jiAaxB"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40jWs60Y18z9s19 for ; Sat, 12 May 2018 12:59:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 565FB2F45F; Sat, 12 May 2018 02:59:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cXbU7WreoyEw; Sat, 12 May 2018 02:59:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D0F7E2FFFF; Sat, 12 May 2018 02:59:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id F3FBD1CF17E for ; Sat, 12 May 2018 02:59:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EFC498845F for ; Sat, 12 May 2018 02:59:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ce28lZx1NhBR for ; Sat, 12 May 2018 02:59:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 74F0285045 for ; Sat, 12 May 2018 02:59:21 +0000 (UTC) Received: by mail-qk0-f195.google.com with SMTP id s70-v6so5920956qks.13 for ; Fri, 11 May 2018 19:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=MfX0yhWWZ92Pb9GiRGMcg57UHKzhZOWn5kY7dovFFQA=; b=C0jiAaxBjgNFZgDdscBiL99mSQPLhDuIBPoa23QHqgOFyTnwzjMBvJN96ldX2//Nj6 9vXej4pVgve2zHtKy4YyE3y78N88iwGePnFDIP6RUL/oj4usWIXiMtf/yiEcd2xNZVkN xwNaovgUbDVEofiKH5Xfxe/gN90HVmMQMGGNJeG2VRgu/WyJeYSQqRDlJ+xVmqBbvkn8 Sb27BAgKVjGb+gSnjaQ2ulclRBeA0wDQtz4GYHt50QOaLrOyWdRdRawyTzF58Bg8vM/3 7JuontiIgUYkrDvpp/zlFH1MU1W41hhwv11VqviOyeoL2tqNzxlw/Q+2GG4/e8MtcNKN DNBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=MfX0yhWWZ92Pb9GiRGMcg57UHKzhZOWn5kY7dovFFQA=; b=uHNMc4BWx992PDAR4N+8T4pQeS/w+y4mJ60xNSv5LX30I4cyLDJ3YkpL8vgB9p4oQS ZD8YowsnGhv42m/hT82PKG13SxSY/gB6QlfACI0Ni2sPXrmw+qZw4Oc5MIikktm/ZXJd BVxKLEBPPf5SV3AMaOowBeWKanCGyW7yzeUQdab1rebLC+8sFAxpQcZV0ptAzLRsAUBb wX/zLATkh4uphe5rFWehaFgCnIg/0Ch/JsR3pbwSUR0Sk9nRsBkPyT+LINuxeC1X/GQg aKDAvwym+9vdWcJyX63woSyWyPorJ5K82z0KarhhM288417ltotacCPoahdkuq1UEAuE xitg== X-Gm-Message-State: ALKqPwfwh8UFq6CyGIJ7I7tWwq2SVcHA853BcdIX2/MNvoqqIIGYOxnk pD4e+X6dYKl1xuadEWqSE20efg== X-Google-Smtp-Source: AB8JxZpkdrPB4QLjDIQUgVRZBsz+60HeC348QMKkyZ3gnVSK05iPVGRt/Axc3GVfTETbkrKBDYkGPw== X-Received: by 2002:a37:b884:: with SMTP id i126-v6mr445835qkf.191.1526093960389; Fri, 11 May 2018 19:59:20 -0700 (PDT) Received: from ultri5.home ([189.114.97.193]) by smtp.gmail.com with ESMTPSA id l38-v6sm3832914qta.86.2018.05.11.19.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 19:59:19 -0700 (PDT) From: Ricardo Martincoski To: buildroot@buildroot.org Date: Fri, 11 May 2018 23:58:32 -0300 Message-Id: <20180512025833.22998-10-ricardo.martincoski@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512025833.22998-1-ricardo.martincoski@gmail.com> References: <20180512025833.22998-1-ricardo.martincoski@gmail.com> In-Reply-To: <20180429143349.24010-1-ricardo.martincoski@gmail.com> References: <20180429143349.24010-1-ricardo.martincoski@gmail.com> Subject: [Buildroot] [PATCH v5 09/10] testing/tests/download: test git special ref X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ricardo Martincoski , Thomas Petazzoni , Luca Ceresoli , "Yann E . MORIN" , Ricardo Martincoski MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Ricardo Martincoski Add a special ref to the static repo and check on the git refs test case the download of a git package: - with the name of a special ref as version; Signed-off-by: Ricardo Martincoski Cc: Arnout Vandecappelle --- Layout of static repo with the series applied until this patch: $ git -C support/testing/tests/download/git-remote/repo.git \ log --all --decorate --graph --oneline --decorate * 2fa37f6 (submodule) sub0-2 * a9dbc1e sub0-1 | * b72ff60 (refs/changes/01/1/2) specialref |/ | * 68c197d (mybranch) branch2 | * 3174063 branch1 |/ | * 516c9c5 (tag: mytag) tag2 | * 46bae5b tag1 |/ * a238b1d (HEAD -> master) initial Changes v4 -> v5: - no changes Changes v1 -> v4: - not included on v2 or v3; - rewrite from v1 using new git test infra with static repo; --- .../package/git-special-ref/git-special-ref.hash | 2 ++ .../package/git-special-ref/git-special-ref.mk | 11 +++++++++++ .../17/c409592968d17600ff9912e96fdd461bb72e74 | Bin 0 -> 48 bytes .../53/122a7b0454b33c6d9e159c10657173db77899e | Bin 0 -> 27 bytes .../b7/2ff6078f62522a87f5cae5e9f34dedf5ec3885 | Bin 0 -> 186 bytes .../git-remote/repo.git/refs/changes/01/1/2 | 1 + support/testing/tests/download/test_git.py | 1 + 7 files changed, 15 insertions(+) create mode 100644 support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash create mode 100644 support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk create mode 100644 support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74 create mode 100644 support/testing/tests/download/git-remote/repo.git/objects/53/122a7b0454b33c6d9e159c10657173db77899e create mode 100644 support/testing/tests/download/git-remote/repo.git/objects/b7/2ff6078f62522a87f5cae5e9f34dedf5ec3885 create mode 100644 support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2 diff --git a/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash b/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash new file mode 100644 index 0000000000..13e21aaeca --- /dev/null +++ b/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.hash @@ -0,0 +1,2 @@ +sha256 c639b15260d098d94b8802cae812453c9f878ffd5f80cca6d87c58c01eed5c5a git-special-ref-refs_changes_01_1_2.tar.gz +sha256 b252b594be4679764e2e06cfea77a3e50638dd445af9b472b0f298c43b134518 file diff --git a/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk b/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk new file mode 100644 index 0000000000..e7561bafca --- /dev/null +++ b/support/testing/tests/download/br2-external/git-refs/package/git-special-ref/git-special-ref.mk @@ -0,0 +1,11 @@ +################################################################################ +# +# git-special-ref +# +################################################################################ + +GIT_SPECIAL_REF_VERSION = refs/changes/01/1/2 +GIT_SPECIAL_REF_SITE = git://localhost:$(GITREMOTE_PORT_NUMBER)/repo.git +GIT_SPECIAL_REF_LICENSE_FILES = file + +$(eval $(generic-package)) diff --git a/support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74 b/support/testing/tests/download/git-remote/repo.git/objects/17/c409592968d17600ff9912e96fdd461bb72e74 new file mode 100644 index 0000000000000000000000000000000000000000..8c19de6455168ac65c81d70219e01eb2431c069e GIT binary patch literal 48 zcmbpD)l54sSDN4Q9^DeyfQkL!O@h`vX8x-PgzB#pAi~s-t literal 0 HcmV?d00001 diff --git a/support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2 b/support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2 new file mode 100644 index 0000000000..7066394dd0 --- /dev/null +++ b/support/testing/tests/download/git-remote/repo.git/refs/changes/01/1/2 @@ -0,0 +1 @@ +b72ff6078f62522a87f5cae5e9f34dedf5ec3885 diff --git a/support/testing/tests/download/test_git.py b/support/testing/tests/download/test_git.py index ce3655121c..162c03623b 100644 --- a/support/testing/tests/download/test_git.py +++ b/support/testing/tests/download/test_git.py @@ -75,6 +75,7 @@ class TestGitRefs(GitTestBase): self.check_download("git-sha1-reachable-by-tag") self.check_download("git-sha1-tag-itself") self.check_download("git-sha1-tag-points-to") + self.check_download("git-special-ref") self.check_download("git-submodule-disabled") self.check_download("git-submodule-enabled") self.check_download("git-tag")