Date: Thu, 27 Mar 2014 22:25:36 +0000 From: "Peel, Casey" <casey.peel@isilon.com> To: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org> Subject: Makefiles for skip-level directories? Message-ID: <16437CC5729B5345AF77F816513376E8129868F1@MX103CL02.corp.emc.com>
next in thread | raw e-mail | index | archive | help
We've created some ATF network tests in sys/net/, which involved creating the sys/net/tests directory and sys/net/tests/Makefile. There are currently no tests under sys/ at all. In order for that Makefile to get picked up by the build, I added sys/net/Makefile that looks like this:
# $FreeBSD$
.include <bsd.own.mk>
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
.include <bsd.subdir.mk>
For that to get picked up, I added this to sys/Makefile before .include <bsd.subdir.mk>:
.if ${MK_TESTS} != "no"
SUBDIR+= net
.endif
My tests build and get installed correctly in /usr/tests:
[root@system /usr/tests]# find sys
sys
sys/net
sys/net/t_lagg_smoke
sys/net/Kyuafile
You'll note that there is no Kyuafile in sys/ which prevents kyua from traversing into sys/net/ to pick up the Kyuafile there and actually execute the test from /usr/tests
All that to say: what magic am I missing in the sys/Makefile to have the sys/Kyuafile generated? I've looked and can't find another example in the current tests that have this type of skip-level test layout.
Thanks,
-- Casey
--
Performance Test Ninja
casey.peel@isilon.com<mailto:casey.peel@isilon.com> / 206.777.7945
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16437CC5729B5345AF77F816513376E8129868F1>
