Question about porting sh tests to dash.
Yuri Pankov
yuripv at yuripv.net
Thu Nov 15 17:08:52 UTC 2018
Devin Hussey wrote:
> The dash shell has a complete lack of quality control. It has a total
> of zero tests, which is a problem considering it is supposed to be the
> reliable workhorse /bin/sh on many Linux distros.
>
> For example, I have seen a patch that was so buggy that dash couldn't
> even run its own ./configure script. Despite this, two versions were
> released without it even being noticed. Recently, it happened again:
> Another patch was released which broke variable expansion, five other
> patches pushed, a supposed "fix" for the buggy patch, that didn't even
> fix the most obvious bug.
>
> dash, like FreeBSD's sh, is based off of ash, and therefore would be
> compatible with most or all of the FreeBSD tests.
>
> I was considering porting some or all of the sh test suite to dash
> (obviously giving credit), as the tests are remarkably thorough. I
> want to know if you are all okay with it.
There's no need to ask, the license text describes all you can (or can
not) do. It would be nice though if you could give back any useful
changes/fixes.
> Obviously, some tweaks would be required, such as how the tests are
> run. However, it would still save weeks, if not months of repetitive
> work and would prevent/fix many serious bugs in the codebase.
Or you could just use kyua/atf the tests are using, and save yourself
even more time :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20181115/e94d8ad3/attachment.sig>
More information about the freebsd-questions
mailing list