From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@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 20:41:00 -0000 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org Subject: run one test X-SW-Source: 2019-09/txt/msg00436.txt.bz2 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