xref: /illumos-gate/usr/src/cmd/Makefile.check (revision 8622ec4569457733001d4982ef7f5b44427069be)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23# Copyright 2014 Garrett D'Amore <garrett@damore.org>
24
25include ../Makefile.master
26
27#
28# Commands providing manifests must offer a check target.  A recursive check
29# target across all commands directories is not currently provided.
30#
31MANIFEST_TOPDIRS=			\
32	acctadm				\
33	auditd				\
34	bnu				\
35	consadm				\
36	coreadm				\
37	cron				\
38	cvcd				\
39	dispadmin			\
40	drd				\
41	dumpadm				\
42	fcinfo				\
43	fcoesvc				\
44	fm				\
45	ibd_upgrade			\
46	intrd				\
47	iscsid				\
48	iscsitsvc			\
49	kbd				\
50	keyserv				\
51	ldapcachemgr			\
52	ldmad				\
53	lms				\
54	dlmgmtd				\
55	ndmpd				\
56	nscd				\
57	oplhpd				\
58	pools				\
59	power				\
60	rexd				\
61	rmvolmgr			\
62	rpcbind				\
63	rpcsvc				\
64	sa				\
65	saf				\
66	sckmd				\
67	sf880drd			\
68	smserverd			\
69	stmfproxy			\
70	stmfsvc				\
71	stmsboot			\
72	syseventd			\
73	syslogd				\
74	utmpd				\
75	vntsd				\
76	ypcmd				\
77	zoneadm				\
78	zoneadmd
79
80MANIFEST_SUBDIRS=			\
81	boot/scripts			\
82	cmd-crypto/scripts		\
83	cmd-inet/usr.lib/ilbd		\
84	cmd-inet/usr.lib/in.chargend	\
85	cmd-inet/usr.lib/in.daytimed	\
86	cmd-inet/usr.lib/in.discardd	\
87	cmd-inet/usr.lib/in.echod	\
88	cmd-inet/usr.lib/in.ndpd	\
89	cmd-inet/usr.lib/in.ripngd	\
90	cmd-inet/usr.lib/in.timed	\
91	cmd-inet/usr.lib/inetd		\
92	cmd-inet/usr.lib/mdnsd		\
93	cmd-inet/usr.lib/slpd		\
94	cmd-inet/usr.lib/vrrpd		\
95	cmd-inet/usr.lib/wpad		\
96	cmd-inet/usr.sbin		\
97	cmd-inet/usr.sbin/in.rdisc	\
98	cmd-inet/usr.sbin/in.routed	\
99	cmd-inet/usr.sbin/in.talkd	\
100	cmd-inet/usr.sbin/ipsecutils	\
101	cmd-inet/usr.sbin/kssl/ksslcfg	\
102	cmd-inet/usr.sbin/routeadm	\
103	dcs/sparc/sun4u			\
104	dfs.cmds/sharemgr		\
105	fs.d/autofs			\
106	fs.d/nfs/svc			\
107	fs.d/smbclnt/svc		\
108	gss/gssd			\
109	hal/addons/network-devices	\
110	hal/hald/solaris		\
111	halt/smf.$(MACH)		\
112	hostid/smf			\
113	idmap/idmapd			\
114	ipf/svc				\
115	isns/isnsd			\
116	krb5/kadmin/server		\
117	krb5/krb5kdc			\
118	krb5/kwarn			\
119	krb5/slave			\
120	lp/cmd/lpsched			\
121	lvm/rpc.mdcommd			\
122	lvm/rpc.metad			\
123	lvm/rpc.metamedd		\
124	lvm/rpc.metamhd			\
125	lvm/md_monitord			\
126	lvm/util			\
127	picl/picld			\
128	pools/poold			\
129	print/bsd-sysv-commands		\
130	print/ppdmgr			\
131	rcap/rcapd			\
132	rpcsvc/rpc.bootparamd		\
133	sendmail/lib			\
134	smbsrv/smbd			\
135	ssh/etc				\
136	svc/milestone			\
137	tsol/labeld			\
138	tsol/tnctl			\
139	tsol/tnd			\
140	tsol/tsol-zones			\
141	vscan/vscand			\
142	xvm/ipagent			\
143	ypcmd/yppasswd			\
144	ypcmd/ypupdated			\
145	zonestat/zonestatd
146
147MISC_SUBDIRS=		\
148	dtrace/test/tst \
149	sgs
150
151.KEEP_STATE:
152
153# Manifests cannot be checked in parallel, because we are using the global
154# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
155# repository that is built from the manifests in this workspace, whereas
156# the build machine's repository may be out of sync with these manifests.
157# Because we are using a private repository, svccfg-native must start up a
158# private copy of configd-native.  We cannot have multiple copies of
159# configd-native trying to access global.db simultaneously.
160
161.NO_PARALLEL:
162
163check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
164
165svccfg_check:
166	@$(ECHO) "building requirements for svccfg check ..."; \
167	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
168
169$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
170	@cd $@; pwd; $(MAKE) check
171
172FRC:
173