From owner-freebsd-hackers@freebsd.org Wed Sep 9 00:14:40 2020 Return-Path: Delivered-To: freebsd-hackers@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 6F2703DD343 for ; Wed, 9 Sep 2020 00:14:40 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail01.asahi-net.or.jp (mail01.asahi-net.or.jp [202.224.55.13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BmMvw5fS1z4hPf for ; Wed, 9 Sep 2020 00:14:35 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from rv515.advok.com (cpe-184-152-96-96.nj.res.rr.com [184.152.96.96]) (Authenticated sender: NR2Y-OOT) by mail01.asahi-net.or.jp (Postfix) with ESMTPSA id DF51C10FB09 for ; Wed, 9 Sep 2020 09:14:31 +0900 (JST) Date: Tue, 8 Sep 2020 20:13:52 -0400 From: Yoshihiro Ota To: freebsd-hackers@freebsd.org Subject: Integration Test, Unit Test, and head/tests in FreeBSD Message-Id: <20200908201352.e4e78f7aea8a2b081adfb57e@j.email.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; i386-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BmMvw5fS1z4hPf X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ota@j.email.ne.jp designates 202.224.55.13 as permitted sender) smtp.mailfrom=ota@j.email.ne.jp X-Spamd-Result: default: False [3.86 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(0.00)[+ip4:202.224.55.0/24]; TO_DN_NONE(0.00)[]; RBL_MAILSPIKE_BAD(1.00)[202.224.55.13:from]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[184.152.96.96:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:4685, ipnet:202.224.32.0/19, country:JP]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[202.224.55.13:from]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.49)[0.494]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[email.ne.jp]; NEURAL_SPAM_MEDIUM(0.92)[0.920]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_LONG(0.95)[0.950]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 00:14:40 -0000 Hi Hackers, How are FreeBSD unit tests, integration test, and CI pipe lines are connected? I found some documents from "man tests", tests/README, and few others. I also wasn't clear how unit tests and integration tests are organized in the tree well. Are all integration tests in shell script, for example? For example, I want to make a change to ggated/ggatec under sbin/ggate and would like to couple with unit tests. Will I create sbin/ggate/tests or sbin/ggate/ggated/tests and sbin/ggate/ggatec/tests or all of these 3 directories based on APIs? Where should I put it and how do I set up so that review/phab can verify as well? Thanks, Hiro