Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 2020 18:25:00 +0530
From:      Ahsan Barkati <ahsanbarkati@gmail.com>
To:        Lawrence Greening <lg49152@outlook.com>
Cc:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>
Subject:   Re: Developers' Handbook: Chapter on testing
Message-ID:  <CAEMkzKt_Ae2qv7Y3TqvregAZ9CES04KXDE5UF9gki_9DEx0jMA@mail.gmail.com>
In-Reply-To: <DM6PR04MB5484F5C2A74E7CCC8012BAC1B2240@DM6PR04MB5484.namprd04.prod.outlook.com>
References:  <DM6PR04MB5484F5C2A74E7CCC8012BAC1B2240@DM6PR04MB5484.namprd04.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 11, 2020 at 6:33 AM Lawrence Greening <lg49152@outlook.com>
wrote:

> Hi.
>
> I am writing a chapter on testing for the FreeBSD Developers' Handbook.
>
That's great. We have been looking for it for quite a long time.

>
> The following topics are expected to be covered:
>
> * FreeBSD Test Suite
> * Kyua
> * Automated Testing Framework (ATF)
> * Organization of current FreeBSD tests.
> * Using automation and virtualization to reduce the overhead in setting up
> the test infrastructure.
> * Examples of standard types of testing, e.g. unit tests, functional
> testing, load testing, etc.
> * Reproducibility in building and testing.
>
> However, this list is just a starting point. The scope and organization
> will evolve as the chapter is written.
>
> After reading the chapter, the reader should be able to do at least the
> following:
>
> * Install and configure the necessary testing tools, test suites, etc. for
> the purposes of testing FreeBSD.
> * Run tests.
> * Write tests.
> * Submit tests.
>
> The chapter will include walkthroughs and guided or cumulative examples.
>
> At this preliminary stage, I am interested in the following feedback:
>
> (1) What material do you want to see covered?
> (2) What material do you want to see prioritized?
> (3) What general approach(es) do you want to see taken towards the subject
> matter?
> (4) Are there good example tests or areas of the code base that deserve
> focus, either because of their importance, usefulness as examples, history
> of regressions, etc.?


We have some good tests for the firewalls, which makes use of vnet jails to
create a network setup required for testing. This method can be very useful
for any network related tests. We have example tests in
`/tests/sys/netpfil/pf` and also have a method to write tests for all the
three firewalls in a single body (tests for common functionalities in the
firewalls) here -> `/tests/sys/netpfil/common`. You can also find a small
writeup on this common testing method here ->
https://ahsan.live/Framework-for-testing-multiple-firewalls.html.

I'd love to provide you with any assistance which falls under my reach. I
am excitedly looking forward to a chapter on testing.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEMkzKt_Ae2qv7Y3TqvregAZ9CES04KXDE5UF9gki_9DEx0jMA>