From patchwork Fri Jan 17 13:19:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Panteleev X-Patchwork-Id: 1456 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id DA6D6165B97AC for ; Fri, 17 Jan 2020 13:20:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on apollo.archlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DMARC_TESTS_FAIL=0.01 autolearn=ham autolearn_force=no version=3.4.3 X-Spam-BL-Results: [127.0.9.2] [127.0.0.6] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 13:20:43 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 4A653182649BBB; Fri, 17 Jan 2020 13:20:26 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: luna) by orion.archlinux.org (Postfix) with ESMTPSA id 3C11B182649B27; Fri, 17 Jan 2020 13:19:59 +0000 (UTC) Authentication-Results: orion.archlinux.org; dkim=none Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 1C1CB2BFE3; Fri, 17 Jan 2020 13:19:59 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=none Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id A23EB2BFE8 for ; Fri, 17 Jan 2020 13:19:53 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 13:19:53 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 4BF71182649B05 for ; Fri, 17 Jan 2020 13:19:47 +0000 (UTC) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 13:19:47 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id c9so22693049wrw.8 for ; Fri, 17 Jan 2020 05:19:47 -0800 (PST) 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:mime-version:content-transfer-encoding; bh=t/9x5+iO5FjUJsItbSzphHKmj17dsrUUf+joWxRhmJ8=; b=a3baqhFO9l+ggpYW+QQuc+sm1ck4Sv8XiqqiXCBdflJomEf2GnHDEmwfT3kSCAZfzl 1RgB+TcSNU8MkG3NSvZoapeEsuE0Ynt23Quu9s9U3SNzrW6XeMCxqzIXwYZX1NxS3oq7 A0wgMg/VNWL6VUQsfO3NMlG/EoxV6kyJIY1bAovEaJRL4WngpGurIdgogjhDpgqScD2H UkDx13G5+VcFjl/QO9H2WEEf5M/M5dPm8ckw0MaYteUpxB3Najk9dU8lCtDAMfroYrCU bRFDOaUq8tWjhVn4U5dylyzVPGnYy8kjBi/+6QAIh63d6IgBwyFeliBwVKii+lbNKJ3u bISw== X-Gm-Message-State: APjAAAVGpc6T2lD4VpgjpSTe3B80IkVXQlanalnjrcSXjAyuUO6b0i9q K04Ppzk6yGSmgZ4bFyOaa46P0HviV6k= X-Google-Smtp-Source: APXvYqwFSI7wN6L/AXqgGcJonSHfPMnBeXHMTBShj7BxiZh1ovp0h+VpQ/nN0P8xMadqXViGjbX5wg== X-Received: by 2002:a5d:6551:: with SMTP id z17mr3051287wrv.269.1579267186739; Fri, 17 Jan 2020 05:19:46 -0800 (PST) Received: from home.thecybershadow.net ([89.28.117.31]) by smtp.gmail.com with ESMTPSA id z124sm10577779wmc.20.2020.01.17.05.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 05:19:46 -0800 (PST) From: Vladimir Panteleev To: arch-projects@archlinux.org Date: Fri, 17 Jan 2020 13:19:29 +0000 Message-Id: <20200117131931.1746498-3-archlinux@thecybershadow.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200117131931.1746498-1-archlinux@thecybershadow.net> References: <20200117131931.1746498-1-archlinux@thecybershadow.net> MIME-Version: 1.0 Subject: [arch-projects] [namcap] [PATCH 3/5] README: Document how to run the test suite X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux projects development discussion Cc: Vladimir Panteleev Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" --- README | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README b/README index c90315e..83b406b 100644 --- a/README +++ b/README @@ -141,6 +141,16 @@ warnings we are expecting from the rules. The test suite is in Namcap/tests. The makepkg and pkgbuild_test submodules provide easy generic methods to test a rule. +To run the test suite, run: + +env PARSE_PKGBUILD_PATH="$PWD" \ + PATH="$PWD:$PATH" \ + python setup.py test + +To run a single test, append e.g. +"-s Namcap.tests.package.test_shebangdepends" +to the command-line above. + Here is an example testing the rule "pkgnameindesc" from Namcap.tests.pkgbuild_test import PkgbuildTest