From nobody Tue Mar 05 00:55:24 2024 X-Original-To: freebsd-stable@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 4TpcYW3Wv0z5DcVp for ; Tue, 5 Mar 2024 00:55:27 +0000 (UTC) (envelope-from henrichhartzer@tuta.io) Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162]) (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 (2048 bits) client-digest SHA256) (Client CN "mail.tutanota.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TpcYV5Zgrz4Nfv for ; Tue, 5 Mar 2024 00:55:26 +0000 (UTC) (envelope-from henrichhartzer@tuta.io) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tuta.io header.s=s1 header.b="Z/z26ro2"; dmarc=pass (policy=quarantine) header.from=tuta.io; spf=pass (mx1.freebsd.org: domain of henrichhartzer@tuta.io designates 81.3.6.162 as permitted sender) smtp.mailfrom=henrichhartzer@tuta.io Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w1.tutanota.de (Postfix) with ESMTP id F009EFBFB78 for ; Tue, 5 Mar 2024 00:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1709600124; s=s1; d=tuta.io; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=q8MOpZNMhZ4y9ms4Cp6YhE/Pqx/RSVQdkq5ZA2sCZ6w=; b=Z/z26ro2A89g2BeEAUWFtbAbwG2+tU35L/enJE5K0umVFEz2F18yN8QQk7TKmPze d9jjZa9jaqkTqbnuCefeQYna2lKaBS4lFz/H2KKq4FjWIle4/qObbxvNyjvSsG77ptW RQwqzkA2hG3Qqm8SQQfVrcOZTcqgnIY7nYFHm11rCILon39J+BhnbfcYSr+0mjj9p4g 9SM0Epk2Pl7+pJWuHKxjt11/7B/Azxu182y/k73Fcsq2CN3LlBMM9yFft3BxR7lboY4 tC8ee4DWhKssUfHltGZRT58nyYUWPoTY0S/9o8Xw3f2pEO7dFhRnQqKQ3DsteQ8ayIU tPcQpyZjGQ== Date: Tue, 5 Mar 2024 01:55:24 +0100 (CET) From: henrichhartzer@tuta.io To: Freebsd Stable Message-ID: Subject: Running tests for a single program in src/bin, src/usr.bin, etc List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.10 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[tuta.io,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:81.3.6.160/28]; R_DKIM_ALLOW(-0.20)[tuta.io:s=s1]; RWL_MAILSPIKE_VERYGOOD(-0.20)[81.3.6.162:from]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; FROM_NO_DN(0.00)[]; ASN(0.00)[asn:24679, ipnet:81.3.0.0/18, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[tuta.io:+] X-Rspamd-Queue-Id: 4TpcYV5Zgrz4Nfv Hi everyone, Not sure if this is the best list for this. Maybe hackers@ would be better? I wanted to tinker with utilities in /usr/src/bin and /usrsrc/usr.bin. I noticed that rmdir exits 1 for usage, which is a pet peeve of mine. I updated it to exit 2 and then wanted to alter the tests to ensure it's exiting 2. At this point, I'm unsure of how to run tests for this single component. Is there a way I can be in /usr/src/bin/rmdir and just run a succesful `make test` (or equivalent) without some combination of `make install` + kyua out of /usr/tests? Seems like for self-contained tests, simple testing should be possible. I did find `make check`, but I'm having issues with checkdir sticking around. Thank you! -Henrich