xref: /illumos-gate/usr/src/cmd/Makefile.check (revision d67944fbe3fa0b31893a7116a09b0718eecf6078)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include ../Makefile.master
27
28#
29# Commands providing manifests must offer a check target.  A recursive check
30# target across all commands directories is not currently provided.
31#
32MANIFEST_TOPDIRS=			\
33	acctadm				\
34	auditd				\
35	bnu				\
36	consadm				\
37	coreadm				\
38	cron				\
39	cvcd				\
40	dispadmin			\
41	drd				\
42	dumpadm				\
43	fcinfo				\
44	fm				\
45	intrd				\
46	iscsid				\
47	iscsitsvc			\
48	kbd				\
49	keyserv				\
50	ldapcachemgr			\
51	lms				\
52	mms				\
53	dlmgmtd				\
54	ndmpd				\
55	nscd				\
56	oplhpd				\
57	pools				\
58	power				\
59	rexd				\
60	rmvolmgr			\
61	rpcbind				\
62	rpcsvc				\
63	sa				\
64	saf				\
65	sckmd				\
66	sf880drd			\
67	smserverd			\
68	stmfsvc				\
69	stmsboot			\
70	syseventd			\
71	syslogd				\
72	utmpd				\
73	vntsd				\
74	ypcmd				\
75	zoneadm				\
76	zoneadmd
77
78MANIFEST_SUBDIRS=			\
79	agents/snmp/snmprelayd		\
80	boot/scripts			\
81	cmd-crypto/scripts		\
82	cmd-inet/usr.lib/in.chargend	\
83	cmd-inet/usr.lib/in.daytimed	\
84	cmd-inet/usr.lib/in.dhcpd	\
85	cmd-inet/usr.lib/in.discardd	\
86	cmd-inet/usr.lib/in.echod	\
87	cmd-inet/usr.lib/in.ndpd	\
88	cmd-inet/usr.lib/in.ripngd	\
89	cmd-inet/usr.lib/in.timed	\
90	cmd-inet/usr.lib/inetd		\
91	cmd-inet/usr.lib/mdnsd		\
92	cmd-inet/usr.lib/slpd		\
93	cmd-inet/usr.lib/wpad		\
94	cmd-inet/usr.sbin		\
95	cmd-inet/usr.sbin/in.ftpd	\
96	cmd-inet/usr.sbin/in.rdisc	\
97	cmd-inet/usr.sbin/in.routed	\
98	cmd-inet/usr.sbin/in.talkd	\
99	cmd-inet/usr.sbin/ipsecutils	\
100	cmd-inet/usr.sbin/kssl/ksslcfg	\
101	cmd-inet/usr.sbin/routeadm	\
102	dcs/sparc/sun4u			\
103	dfs.cmds/sharemgr		\
104	fps/fpsd			\
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			\
112	hostid/smf			\
113	idmap/idmapd			\
114	ipf/svc				\
115	iscsi/iscsitgtd			\
116	isns/isnsd			\
117	krb5/kadmin/server		\
118	krb5/krb5kdc			\
119	krb5/kwarn			\
120	krb5/slave			\
121	lp/cmd/lpsched			\
122	lvm/rpc.mdcommd			\
123	lvm/rpc.metad			\
124	lvm/rpc.metamedd		\
125	lvm/rpc.metamhd			\
126	lvm/md_monitord			\
127	lvm/util			\
128	picl/picld			\
129	pools/poold			\
130	print/bsd-sysv-commands		\
131	print/ppdmgr			\
132	rcap/rcapd			\
133	rpcsvc/rpc.bootparamd		\
134	sendmail/lib			\
135	smbsrv/smbd			\
136	ssh/etc				\
137	svc/milestone			\
138	tsol/labeld			\
139	tsol/tnctl			\
140	tsol/tnd			\
141	tsol/tsol-zones			\
142	vscan/vscand			\
143	xvm/ipagent			\
144	ypcmd/yppasswd			\
145	ypcmd/ypupdated
146
147$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
148	$(CLOSED)/cmd/smartcard/daemon		\
149	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
150
151DTEST_SUBDIRS= \
152	dtrace/test/tst
153
154.KEEP_STATE:
155
156# Manifests cannot be checked in parallel, because we are using the global
157# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
158# repository that is built from the manifests in this workspace, whereas
159# the build machine's repository may be out of sync with these manifests.
160# Because we are using a private repository, svccfg-native must start up a
161# private copy of configd-native.  We cannot have multiple copies of
162# configd-native trying to access global.db simultaneously.
163
164.NO_PARALLEL:
165
166check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
167
168svccfg_check:
169	@$(ECHO) "building requirements for svccfg check ..."; \
170	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
171
172$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
173	@cd $@; pwd; $(MAKE) check
174
175FRC:
176