Received: by mail.netbsd.org (Postfix, from userid 605) id 70A4D84D52; Tue, 4 Aug 2020 21:35:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E91F884D47 for ; Tue, 4 Aug 2020 21:35:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id UVWHMeujz7x9 for ; Tue, 4 Aug 2020 21:35:01 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4222B84C8B for ; Tue, 4 Aug 2020 21:35:01 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 36E3FFB28; Tue, 4 Aug 2020 21:35:01 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_159657690121650" MIME-Version: 1.0 Date: Tue, 4 Aug 2020 21:35:01 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/regress/infra-unittests To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20200804213501.36E3FFB28@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_159657690121650 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Tue Aug 4 21:35:01 UTC 2020 Modified Files: pkgsrc/regress/infra-unittests: help.sh Log Message: regress/infra-unittests: add test for help, topic followed by comma To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 pkgsrc/regress/infra-unittests/help.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_159657690121650 Content-Disposition: inline Content-Length: 1021 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/regress/infra-unittests/help.sh diff -u pkgsrc/regress/infra-unittests/help.sh:1.5 pkgsrc/regress/infra-unittests/help.sh:1.6 --- pkgsrc/regress/infra-unittests/help.sh:1.5 Sat May 16 20:22:41 2020 +++ pkgsrc/regress/infra-unittests/help.sh Tue Aug 4 21:35:01 2020 @@ -1,5 +1,5 @@ #! /bin/sh -# $NetBSD: help.sh,v 1.5 2020/05/16 20:22:41 rillig Exp $ +# $NetBSD: help.sh,v 1.6 2020/08/04 21:35:01 rillig Exp $ # # Test cases for "bmake help", mainly implemented in mk/help/help.awk. # @@ -142,3 +142,24 @@ if test_case_begin 'commented variables test_case_end fi + + +if test_case_begin 'variable name followed by comma'; then + + create_file 'fetch.mk' <<-EOF + # + # FETCH_USE_IPV4_ONLY, if defined, will ... + # ... + # ... + EOF + + TOPIC='fetch_use_ipv4_only' awk -f "$pkgsrcdir/mk/help/help.awk" \ + 'fetch.mk' >'out' + + assert_that 'out' --file-is-lines \ + 'No help found for fetch_use_ipv4_only, but it appears in:' \ + '' \ + 'fetch.mk' + + test_case_end +fi --_----------=_159657690121650--