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: 1167620 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-105400-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="tJ0zgL6z"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46dqj963Jbz9sNw for ; Thu, 26 Sep 2019 06:41:33 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:message-id:from:to:subject; q=dns; s= default; b=I5R/TA/e3pI2o5WsJUelleTBCn/PPzmFtWgqh5iJ2CAEBjKdK41j6 EoPMRdBkI9OA6IO0u8cRThbusnt0ay0S/KTxbZxSAQwhyApwFD/e9PB/K6yvcUir nadNIV0ncJL/rc5XHRM7fAhIv1l0NbYQNYWh43/plAX4xmk1uHzRjQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:message-id:from:to:subject; s=default; bh=uxu7ad4QqaH98a/oRtb8YW9vI4I=; b=tJ0zgL6zccMVCpZbCjUctgJVxsst 7sjnoPBaAjDnaIVS4HVkC3X9u9tfzcFq0hgNsSLt3jov8gndDvfBccFbkho33VmW D8m54DVdUNPdgWDndOkrwq3ZzGetEDgP20OzbUmWys4GFgS1IX1gV5Rp7HPudLCd 02+Ij28RzolVw1w= 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