Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id A02C31A9217 for ; Sat, 4 Jul 2020 22:01:12 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 1522884D64; Sat, 4 Jul 2020 22:01:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8EFE884D55 for ; Sat, 4 Jul 2020 22:01:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id hYlIz5wdZIzN for ; Sat, 4 Jul 2020 22:01:11 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 219B784D4D for ; Sat, 4 Jul 2020 22:01:11 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 0F483FB28; Sat, 4 Jul 2020 22:01:11 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 4 Jul 2020 22:01:11 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make/unit-tests To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200704220111.0F483FB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sat Jul 4 22:01:10 UTC 2020 Modified Files: src/usr.bin/make/unit-tests: Makefile varshell.exp Log Message: make(1): add post-processing for tests By defining SED_CMDS.${test}, a test can do additional post-processing on its output, for example to normalize paths or error messages. The Makefile for the tests now follows the common style to have all relevant definitions at the top of the file, and all the implementation details at the bottom. By using the += instead of backslashed lists, it becomes easier to comment out a single test, either temporarily or permanently (such as the POSIX tests). The :C modifier has been replaced with the simpler :S, some :S modifiers have been replaced with simpler := modifiers. The postprocessing commands have been extracted from the actual command. This makes editing and commenting them easier. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/usr.bin/make/unit-tests/Makefile cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/varshell.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.