]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
insane: Add a naive heuristic to detect test subdirectories
authorJérémy Rosen <jeremy.rosen@smile.fr>
Tue, 10 Oct 2023 13:49:31 +0000 (15:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Oct 2023 08:11:40 +0000 (09:11 +0100)
commit0c91ad29f7ea313bc25481be9d40f216c0770b98
tree6f9fe6ea24dac0748540f809d81fe650d904f532
parentbc9013295256443e877f29b7e00605ffa5177efa
insane: Add a naive heuristic to detect test subdirectories

if there is a "test" or "tests" subdirectory at toplevel, this usually
means we have some unit tests available.

This test is very good at detecting handcrafted tests and I was not able
to find any false positive.

False positive can be dealt with the usual INSANE_SKIP mechanism

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/classes-global/insane.bbclass