From owner-freebsd-current@freebsd.org Fri Jan 31 12:25:01 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 225C723E8B3 for ; Fri, 31 Jan 2020 12:25:01 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 488Gd90B1Lz4XQT; Fri, 31 Jan 2020 12:25:01 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id DBC6F1C087; Fri, 31 Jan 2020 12:25:00 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [192.168.183.1] (unknown [5.255.146.89]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 803BE4AEF5; Fri, 31 Jan 2020 13:24:59 +0100 (CET) From: "Kristof Provost" To: "Clay Daniels" Cc: freebsd-current@freebsd.org Subject: Re: kyua test Date: Fri, 31 Jan 2020 13:24:58 +0100 X-Mailer: MailMate (1.13.1r5671) Message-ID: <4E17DC37-023F-429F-8208-47B5A386EBB0@FreeBSD.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2020 12:25:01 -0000 On 31 Jan 2020, at 7:34, Clay Daniels wrote: > I've started running kyua test when I load the weekly current > snapshot, and > I'm a little confused about if I should run kyua test as user or root. > In > order to make the /usr/ports/devel/kyua port you need to be root and I > have > just been doing the test as root, but I notice in the instructions I'm > using in the test(7) manpage it says: > > $ kyua test -k /usr/tests/Kyuafile > > Which suggested to me run as user with the $ (not #) > > Of course, when I run it as user as I'm doing right now, it skips some > tests that are only for root. I guess I could use a little advice. > Some tests require root, some do not. It depends on what you want to test. All tests that require root should announce this in their configuration, so running tests as a regular user should work, but you’ll end up with more skipped tests than if you run them as root. I personally mostly care about network (and specifically pf) tests, so I tend to always run them as root. If you care about (e.g.) grep tests they should just work as a regular user. Best regards, Kristof