Page MenuHomeFreeBSD

Framework: Introduce testing feature.
ClosedPublic

Authored by arrowd on Feb 17 2024, 5:06 PM.
Tags
None
Referenced Files
F84306844: D43949.id135203.diff
Wed, May 22, 2:58 AM
Unknown Object (File)
Sat, May 18, 9:30 AM
Unknown Object (File)
Fri, May 17, 2:09 PM
Unknown Object (File)
Wed, May 8, 10:58 PM
Unknown Object (File)
Wed, May 8, 3:33 PM
Unknown Object (File)
Mon, May 6, 2:44 PM
Unknown Object (File)
Fri, Apr 26, 3:30 AM
Unknown Object (File)
Mon, Apr 22, 8:24 PM

Details

Summary

Setting WITH_TESTING=yes will cause running make test between stage and
package in the default pipeline.

This feature is off by default.

Another change that I put into this diff is

Mk/bsd.port.mk: Allow WITHOUT_FEATURE_PORTS to cancel WITH_FEATURE

I had to rewrite the loop as @pizzamig initially suggested.

Test Plan

Tested the feature itself on devel/zfp (that has USES=cmake:testing) and graphics/ImageMagick7 (which has just TEST_TARGET).

Tested WITH/WITHOUT stuff the following way:

make -C audio/abx -V _WITH_TESTING

make -C audio/abx -V _WITH_TESTING WITH_TESTING=yes
yes

make -C audio/abx -V _WITH_TESTING WITH_TESTING=yes WITHOUT_TESTING_PORTS=audio/abx

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 56072
Build 52961: arc lint + arc unit

Event Timeline

arrowd created this revision.

Around 500 ports define TEST, DEBUG, LTO options. What are implications for them?

I haven't yet got my head around options that are named after features. But it is orthogonal to this diff anyways.

This revision is now accepted and ready to land.Feb 28 2024, 9:37 AM