Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2024 17:13:57 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Alan Somers <asomers@freebsd.org>
Cc:        George Mitchell <george+freebsd@m5p.com>, freebsd-hackers@freebsd.org
Subject:   Re: The Case for Rust (in the base system)
Message-ID:  <202401211713.40LHDv6b025462@critter.freebsd.dk>
In-Reply-To: <CAOtMX2inanNDXVz5V3ELp5ffUXny_EhJ6VjR0HXc4KLvzjikEw@mail.gmail.com>
References:  <CAOtMX2hAUiWdGPtpaCJLPZB%2Bj2yzNw5DSjUmkwTi%2B%2BmyemehCA@mail.gmail.com> <1673801705774097@mail.yandex.ru> <CANCZdfpqWgvV_RCvVO_pvTrmajQFspW%2BQ9TM_Ok3JrXZAfeAfA@mail.gmail.com> <ef4ad207-5899-42b6-8728-bc46f1417e9e@antonovs.family> <202401210751.40L7pWEF011188@critter.freebsd.dk> <40bc1694-ee00-431b-866e-396e9d5c07a2@m5p.com> <CAOtMX2hppfdu5ypDdGpfw_QDcd1rwJEeyVfSk9ogFEm7CiV6Kw@mail.gmail.com> <202401211626.40LGQDim013134@critter.freebsd.dk> <CAOtMX2inanNDXVz5V3ELp5ffUXny_EhJ6VjR0HXc4KLvzjikEw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
Alan Somers writes:

> > Why would such a test-tool live in src rather than ports ?
>
> I initially considered putting it in ports just for that reason.  But
> it's too tightly coupled to src.  The tests need to change with every
> feature addition or bug fix to src.

I know exactly where you come from there:  I had that exact
problem in Varnish too.

My solution was to separate the "test-running tool" from the
"test-case description", by writing the latter in a DSL interpreted
by the former.

One very big advantage was the almost total elimination of
"boiler-plate" in the test-case descriptions.

You can see a typical "complex" test-case here:

	https://github.com/varnishcache/varnish-cache/blob/master/bin/varnishtest=
/tests/c00016.vtc

But there are so many other advantages that I could talk about this
for hours, but we can do that in private email if you are interested :-)

I'm not saying that the exact same idea can be used to test FUSE,
but IMO you should /really/ try to find a solution along those
lines.

So yes, I feel your plight, but it does not convince me that we need
to pay the huge cost of Rust in src.

-- =

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    =

Never attribute to malice what can adequately be explained by incompetence=
.



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