Page MenuHomeFreeBSD

Add the kyua test framework to the base system.
ClosedPublic

Authored by brooks on Mar 17 2020, 8:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 2:56 AM
Unknown Object (File)
Fri, Apr 12, 6:57 PM
Unknown Object (File)
Fri, Mar 29, 9:08 AM
Unknown Object (File)
Feb 23 2024, 6:02 PM
Unknown Object (File)
Jan 11 2024, 1:26 AM
Unknown Object (File)
Dec 22 2023, 11:22 PM
Unknown Object (File)
Dec 20 2023, 2:15 AM
Unknown Object (File)
Dec 12 2023, 6:19 PM

Details

Summary

Having kyua in the base system will simplify automated testing in CI and
eliminates bootstrapping issues on new platforms.

Note: This change includes adding liblutok which will be done seperately.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29987
Build 27800: arc lint + arc unit

Event Timeline

The patch assumes lutok and kyua are extracted in contrib. If you want to test you can clone the repos there.

New CI job with tweak so the sources are available https://cirrus-ci.com/task/5382784613089280?command=package#L1883

Build works, but the install part fails with a seemingly unrelated issue...

  • Fix a typo in the mtree file for kyua.

Ah, the CI error was my fault and caused by the mtree error. Working build here https://cirrus-ci.com/task/4696992890748928

Thanks to @arichardson for finding this on CheriBSD (it's really weird that my mtree didn't fail and the files ended up in the right place).

emaste added inline comments.
lib/kyua/Makefile.inc
16

Maybe we should address this holistically later on

lib/kyua/Makefile.kyua
4

Not great but OK... something for us to address later on in our fork I guess

This revision is now accepted and ready to land.Mar 18 2020, 4:51 PM

The package also creates a tests user. Not sure if that is still required.

lib/kyua/Makefile.inc
16

I figure this is something we should fix in our fork on GitHub.

lib/kyua/Makefile.kyua
4

In this case I decided not to install the docs because they are fundamentally uninteresting and wanted to avoid patching. I also consider something like "/install/the/devel/kyua/pkg/for/docs".

lib/kyua/Makefile.kyua
4

Right, I'm not suggesting that we install the docs, just that later on (in the fork) we might want to more cleanly handle uninstalled docs - e.g. "Documentation omitted at build time" or whatever.

The package also creates a tests user. Not sure if that is still required.

Yeah, that's required by the default config. I'll add that (and probably commit it separately since that's immediatly MFC-able.)

  • Add the tests user, and unprivileged user from the default kyua config.
This revision now requires review to proceed.Mar 18 2020, 8:41 PM
This revision is now accepted and ready to land.Mar 18 2020, 8:48 PM