From nobody Thu Feb 06 02:35:00 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YpLmQ53s3z5mrZk for ; Thu, 06 Feb 2025 02:35:02 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YpLmP5cqXz3lHw for ; Thu, 06 Feb 2025 02:35:01 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738809301; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vqeXR8UgrcEcuNQoRswQa99dRXqNRXGYyAGNknu0Fs4=; b=wYBQyqyXs7/zxl91BpY9ryzf8GodVbvNB6y3jqljjp/Nc9G2/Be5fgEQ2m4szVQIM9HrsW 1qskqHQ5MxfuACmpa6NshzEN8WHAoh2b7rvCgxqFvBhzJevG4t5ZAEub3tSgTVgQYX3dAl zkMXi34ymXq/Rp8JHfv9nA9oOfTXuyNq0mGOX7yIFjRYF+TBaiC+gAV9t6Q8rImRtHOIEa +8cxzrYT19sgNKXAXYPWFzS6dbtG5ih4TjLqLyIlrlRQ4SVNvYHgPSoJlhGA8OVsrZNcEZ kioj1FuNKEH9G5YeXnnf/2huOWjbRHu5ZsooWd0vZTRFgLvKoXF9cOWOpTklRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738809301; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vqeXR8UgrcEcuNQoRswQa99dRXqNRXGYyAGNknu0Fs4=; b=VZuyLDWTRwO/9QZopXTzA4F0yIJzHcJk+PcfzVEasA65TrKM4q9zP8Tf8V6AlCzs5kYxaE oaeidA7q4NagCm3X/D0py5bxhvVHhlTm4fg/ysuf+0alqGi+XebZ4yUIYFmm4DMzEOUQks c5nniMC7SgZnfHyJYLtmepxmzI2lIFndpiPniEENFefl7K2bnQugjUN5Xv8MV6jGjnGq8Y lJWRTA8bS7uLXo5+xo/59XHWwm9c8rFlGRspOWuF1latcYhwo8lgPGkrdIPNX68GMhSbNL /osrlrtejooIIpENjYIg17BJpKPwiBKNLGye8D2PG8W4N1Vr1B2IAXAdNp9RFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738809301; a=rsa-sha256; cv=none; b=gLXgdZxbS3c400qbK0QD4PVHF/dSLbjV8LYC5NSJ8Y0Icx6SMV303OiB5uUcCndPFoEFA8 K6fDhlRzfdZUrwdd8BSVoT1da6Rx/gK8hUJ4P8mYuAVw5aroBWFXIZA2YNZZ+ntxuaiEfQ +XMJU2Z/HX6k0QsyX0EFm0sODRNDZ9uSpMhsUvqbMoHuICxCeseYLEj8/DcDJkJZtAqy8g QDhViJT7vTi/6C887ZgDQ0HcgdnJSMNMUwgL+SF611QGx9e8g24FFiR4z0Ua4EbcqWzRSu 28suQHtYy+MX6gUM42Q8htROrSrpPdmyy7uZzb/ujuNzxsQyLT8956aC35qpHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YpLmP3fVxz6df for ; Thu, 06 Feb 2025 02:35:01 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: <5a3808ce-c4b8-4fe8-a0aa-3a6a801722ff@FreeBSD.org> Date: Wed, 5 Feb 2025 20:35:00 -0600 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to run specific running usr.bin/grep tests? To: freebsd-hackers@freebsd.org References: <6193201a-c457-4b6a-98de-3fda021f4f25@freebsd.org> Content-Language: en-US From: Kyle Evans In-Reply-To: <6193201a-c457-4b6a-98de-3fda021f4f25@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/5/25 13:09, Craig Leres wrote: > I want to investigate the remaining zgrep wrapper script deficiencies > and this requires being able to run specific tests for usr.bin/grep. > Unfortunately it looks like I did not take notes the last time I did > this (2020). > > Given a checkout of src in /usr/src/15-CURRENT I tried the appended > which kinda works (for some tests) but gives a bunch of warnings. > > Could someone please point me in the right direction? My test/build > system is 14.2. > >         Craig > > zinc 30 # cd /usr/src/15-CURRENT/usr.bin/grep/tests > zinc 31 # make > echo '#! /usr/libexec/atf-sh' > grep_test.tmp > cat /usr/src/15-CURRENT/contrib/netbsd-tests/usr.bin/grep/t_grep.sh > >>grep_test.tmp > chmod +x grep_test.tmp > mv grep_test.tmp grep_test > zinc 32 # /usr/obj/usr/src/amd64.amd64/usr.bin/grep/tests/grep_test > zgrep_combined_flags > grep_test: WARNING: Running test cases outside of kyua(1) is unsupported > grep_test: WARNING: No isolation nor timeout control is being applied; > you may get unexpected failures; see atf-test-case(4) > Executing command [ zgrep -we foo test ] > Executing command [ zgrep -wefoo test ] > Fail: stderr not empty > --- /dev/null   2025-02-05 10:58:40.451627000 -0800 > +++ /tmp/check.CAnhLI/stderr    2025-02-05 10:58:40.450138000 -0800 > @@ -0,0 +1 @@ > +zcat: (stdin): unexpected end of file > expected_failure: known but unsolved zgrep wrapper script regression: > atf-check failed; see the output of the test for details > > IMO you can ignore the warnings, just be conscientious of the fact that it'll leave $PWD dirty and clean anything we might've dropped in there before each run. You can always do a final confirmation run with kyua and the installed test Thanks, Kyle Evans