This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: run one test
- From: Szabolcs Nagy <Szabolcs dot Nagy at arm dot com>
- To: DJ Delorie <dj at redhat dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Cc: nd <nd at arm dot com>
- Date: Thu, 26 Sep 2019 09:10:06 +0000
- Subject: Re: run one test
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=duoeOZTCfb1CfTliPDzxu/RYTXMsyOtOKeaAbiyX8nQ=; b=AQZOIhJ4BEqxbFyqsBb218aJtyhMmRF1l6NkT1STsZkG8z2fSMRmicfRqFZIIctbll5hyf8jguubOuS0f3qgMK/lOZgCk7p2zyQN9b/ZOzg6CvcQ47drieTUPTC/lNCGL90eUzUCBt8oMsLNlooxJQlWyEr2UEJ06Lcs8EEoaz/rNgRac76fbyjErB+wXggVoXxqr4Tp/PUk2zkm6XzwqRAPSDnu6MSqmrzYrj73U9eNyZRpNvTQ00L155ky64t2o4AvUANdk1siH2N+8e7mLtsmmhLy2U4FdUZj3/AYq1LURDRdNQT3xlzWp/NKE6tBYyHE0kkYBk+syBfh4vpUqQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mZpjEEt481kH0CrrLVIeDeB6JgvIua7TSTTNksAElWiXWQ5ZVsqouKxw39HERbooVFM9MzANg6bzoB0R8gn3EZB7IsGA/eGX91E8Q8wvunRUhKpmaWLPiA+5SuUgKQ1eGSWq/qS9vlnM0s1YUNDb4tqZNv5huJI4VaVWsBdYvdSPwtveSC6zyKSzdzOQGYNVd++F1Ci4GspP/ahv0rgiI+J1y7BKBBynL1qeTlDGpFt1v4bpIcPfK62KuoWeEWj57Zv+ZNjTbMfIA5n2CYmN2dwq9IDwsh4t1JZsFXJYbKvLOUlEW/S0RhgvToucGUJLjQ+PwHLZ1f6hnbKtPN0+VQ==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs dot Nagy at arm dot com;
- References: <xna7askt1n.fsf@greed.delorie.com>
On 25/09/2019 21:41, DJ Delorie wrote:
>
> 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...
looks useful to me.
unfortunately there is currently no easy way to
discover such make targets. (maybe there could be a
make target that prints out usage information for
the most commonly used make targets)
it can be convenient to rerun a set of tests too, e.g.
by providing a list or pattern like 'math/test-double-*',
which can be implemented in a similar way.
same for benchmarks.
for now the proposed patch looks good enough though.
>
> 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
>