xref: /titanic_44/usr/src/cmd/Makefile.check (revision 2c9a247fb01631b3eb3b85a1127e72f0b60ae108)
1# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2
3include ../Makefile.master
4
5#
6# Commands providing manifests must offer a check target.  A recursive check
7# target across all commands directories is not currently provided.
8#
9MANIFEST_TOPDIRS=			\
10	acctadm				\
11	auditd				\
12	bnu				\
13	consadm				\
14	coreadm				\
15	cron				\
16	cvcd				\
17	dispadmin			\
18	drd				\
19	dumpadm				\
20	fcinfo				\
21	fcoesvc				\
22	fm				\
23	ibd_upgrade			\
24	intrd				\
25	iscsid				\
26	iscsitsvc			\
27	kbd				\
28	keyserv				\
29	ldapcachemgr			\
30	ldmad				\
31	lms				\
32	dlmgmtd				\
33	ndmpd				\
34	nscd				\
35	oplhpd				\
36	pools				\
37	power				\
38	rexd				\
39	rmvolmgr			\
40	rpcbind				\
41	rpcsvc				\
42	sa				\
43	saf				\
44	sckmd				\
45	sf880drd			\
46	smserverd			\
47	stmfproxy			\
48	stmfsvc				\
49	stmsboot			\
50	syseventd			\
51	syslogd				\
52	utmpd				\
53	vntsd				\
54	ypcmd				\
55	zoneadm				\
56	zoneadmd
57
58MANIFEST_SUBDIRS=			\
59	agents/snmp/snmprelayd		\
60	boot/scripts			\
61	cmd-crypto/scripts		\
62	cmd-inet/usr.lib/ilbd		\
63	cmd-inet/usr.lib/in.chargend	\
64	cmd-inet/usr.lib/in.daytimed	\
65	cmd-inet/usr.lib/in.dhcpd	\
66	cmd-inet/usr.lib/in.discardd	\
67	cmd-inet/usr.lib/in.echod	\
68	cmd-inet/usr.lib/in.ndpd	\
69	cmd-inet/usr.lib/in.ripngd	\
70	cmd-inet/usr.lib/in.timed	\
71	cmd-inet/usr.lib/inetd		\
72	cmd-inet/usr.lib/mdnsd		\
73	cmd-inet/usr.lib/slpd		\
74	cmd-inet/usr.lib/vrrpd		\
75	cmd-inet/usr.lib/wpad		\
76	cmd-inet/usr.sbin		\
77	cmd-inet/usr.sbin/in.ftpd	\
78	cmd-inet/usr.sbin/in.rdisc	\
79	cmd-inet/usr.sbin/in.routed	\
80	cmd-inet/usr.sbin/in.talkd	\
81	cmd-inet/usr.sbin/ipsecutils	\
82	cmd-inet/usr.sbin/kssl/ksslcfg	\
83	cmd-inet/usr.sbin/routeadm	\
84	dcs/sparc/sun4u			\
85	dfs.cmds/sharemgr		\
86	fps/fpsd			\
87	fs.d/autofs			\
88	fs.d/nfs/svc			\
89	fs.d/smbclnt/svc		\
90	gss/gssd			\
91	hal/addons/network-devices	\
92	hal/hald/solaris		\
93	halt/smf.$(MACH)		\
94	hostid/smf			\
95	idmap/idmapd			\
96	ipf/svc				\
97	isns/isnsd			\
98	krb5/kadmin/server		\
99	krb5/krb5kdc			\
100	krb5/kwarn			\
101	krb5/slave			\
102	lp/cmd/lpsched			\
103	lvm/rpc.mdcommd			\
104	lvm/rpc.metad			\
105	lvm/rpc.metamedd		\
106	lvm/rpc.metamhd			\
107	lvm/md_monitord			\
108	lvm/util			\
109	picl/picld			\
110	pools/poold			\
111	print/bsd-sysv-commands		\
112	print/ppdmgr			\
113	rcap/rcapd			\
114	rpcsvc/rpc.bootparamd		\
115	sendmail/lib			\
116	smbsrv/smbd			\
117	ssh/etc				\
118	svc/milestone			\
119	tsol/labeld			\
120	tsol/tnctl			\
121	tsol/tnd			\
122	tsol/tsol-zones			\
123	vscan/vscand			\
124	xvm/ipagent			\
125	ypcmd/yppasswd			\
126	ypcmd/ypupdated
127
128$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
129	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
130
131DTEST_SUBDIRS= \
132	dtrace/test/tst
133
134.KEEP_STATE:
135
136# Manifests cannot be checked in parallel, because we are using the global
137# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
138# repository that is built from the manifests in this workspace, whereas
139# the build machine's repository may be out of sync with these manifests.
140# Because we are using a private repository, svccfg-native must start up a
141# private copy of configd-native.  We cannot have multiple copies of
142# configd-native trying to access global.db simultaneously.
143
144.NO_PARALLEL:
145
146check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
147
148svccfg_check:
149	@$(ECHO) "building requirements for svccfg check ..."; \
150	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
151
152$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
153	@cd $@; pwd; $(MAKE) check
154
155FRC:
156