From patchwork Wed Sep 25 20:41:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 34662 Received: (qmail 123239 invoked by alias); 25 Sep 2019 20:41:28 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 123226 invoked by uid 89); 25 Sep 2019 20:41:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=tout, HX-Languages-Length:750 X-HELO: mx1.redhat.com Date: Wed, 25 Sep 2019 16:41:24 -0400 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org Subject: run one test One of the small items that was mentioned at Cauldron was "how do to re-run just one test?" While it can be done with a suitable command line make invocation, this is a lot easier... I'll turn it into a real patch once we bikeshed the target name ;-) diff --git a/Makefile b/Makefile index 67ddd01bfe..c424d9ee02 100644 --- a/Makefile +++ b/Makefile @@ -499,3 +499,11 @@ FORCE: iconvdata/% localedata/% po/%: FORCE $(MAKE) $(PARALLELMFLAGS) -C $(@D) $(@F) + +# Convenience target to rerun one test, from the top of the build tree +# Example: make onetest t=wcsmbs/test-wcsnlen +onetest : + @-rm -f $(objpfx)$t.out + $(MAKE) subdir=$(dir $t) -C $(dir $t) ..=../ $(objpfx)$t.out + @cat $(objpfx)$t.test-result + @cat $(objpfx)$t.out