xref: /titanic_41/usr/src/cmd/Makefile.check (revision dbed73cbda2229fd1aa6dc5743993cae7f0a7ee9)
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	fcoesvc				\
45	fm				\
46	intrd				\
47	iscsid				\
48	iscsitsvc			\
49	kbd				\
50	keyserv				\
51	ldapcachemgr			\
52	ldmad				\
53	lms				\
54	mms				\
55	dlmgmtd				\
56	ndmpd				\
57	nscd				\
58	oplhpd				\
59	pools				\
60	power				\
61	rexd				\
62	rmvolmgr			\
63	rpcbind				\
64	rpcsvc				\
65	sa				\
66	saf				\
67	sckmd				\
68	sf880drd			\
69	smserverd			\
70	stmfproxy			\
71	stmfsvc				\
72	stmsboot			\
73	syseventd			\
74	syslogd				\
75	utmpd				\
76	vntsd				\
77	ypcmd				\
78	zoneadm				\
79	zoneadmd
80
81MANIFEST_SUBDIRS=			\
82	agents/snmp/snmprelayd		\
83	boot/scripts			\
84	cmd-crypto/scripts		\
85	cmd-inet/usr.lib/ilbd		\
86	cmd-inet/usr.lib/in.chargend	\
87	cmd-inet/usr.lib/in.daytimed	\
88	cmd-inet/usr.lib/in.dhcpd	\
89	cmd-inet/usr.lib/in.discardd	\
90	cmd-inet/usr.lib/in.echod	\
91	cmd-inet/usr.lib/in.ndpd	\
92	cmd-inet/usr.lib/in.ripngd	\
93	cmd-inet/usr.lib/in.timed	\
94	cmd-inet/usr.lib/inetd		\
95	cmd-inet/usr.lib/mdnsd		\
96	cmd-inet/usr.lib/slpd		\
97	cmd-inet/usr.lib/wpad		\
98	cmd-inet/usr.sbin		\
99	cmd-inet/usr.sbin/in.ftpd	\
100	cmd-inet/usr.sbin/in.rdisc	\
101	cmd-inet/usr.sbin/in.routed	\
102	cmd-inet/usr.sbin/in.talkd	\
103	cmd-inet/usr.sbin/ipsecutils	\
104	cmd-inet/usr.sbin/kssl/ksslcfg	\
105	cmd-inet/usr.sbin/routeadm	\
106	dcs/sparc/sun4u			\
107	dfs.cmds/sharemgr		\
108	fps/fpsd			\
109	fs.d/autofs			\
110	fs.d/nfs/svc			\
111	fs.d/smbclnt/svc		\
112	gss/gssd			\
113	hal/addons/network-devices	\
114	hal/hald/solaris		\
115	halt/smf			\
116	hostid/smf			\
117	idmap/idmapd			\
118	ipf/svc				\
119	iscsi/iscsitgtd			\
120	isns/isnsd			\
121	krb5/kadmin/server		\
122	krb5/krb5kdc			\
123	krb5/kwarn			\
124	krb5/slave			\
125	lp/cmd/lpsched			\
126	lvm/rpc.mdcommd			\
127	lvm/rpc.metad			\
128	lvm/rpc.metamedd		\
129	lvm/rpc.metamhd			\
130	lvm/md_monitord			\
131	lvm/util			\
132	picl/picld			\
133	pools/poold			\
134	print/bsd-sysv-commands		\
135	print/ppdmgr			\
136	rcap/rcapd			\
137	rpcsvc/rpc.bootparamd		\
138	sendmail/lib			\
139	smbsrv/smbd			\
140	ssh/etc				\
141	svc/milestone			\
142	tsol/labeld			\
143	tsol/tnctl			\
144	tsol/tnd			\
145	tsol/tsol-zones			\
146	vscan/vscand			\
147	xvm/ipagent			\
148	ypcmd/yppasswd			\
149	ypcmd/ypupdated
150
151$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
152	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
153
154DTEST_SUBDIRS= \
155	dtrace/test/tst
156
157.KEEP_STATE:
158
159# Manifests cannot be checked in parallel, because we are using the global
160# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
161# repository that is built from the manifests in this workspace, whereas
162# the build machine's repository may be out of sync with these manifests.
163# Because we are using a private repository, svccfg-native must start up a
164# private copy of configd-native.  We cannot have multiple copies of
165# configd-native trying to access global.db simultaneously.
166
167.NO_PARALLEL:
168
169check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
170
171svccfg_check:
172	@$(ECHO) "building requirements for svccfg check ..."; \
173	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
174
175$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
176	@cd $@; pwd; $(MAKE) check
177
178FRC:
179