Merge commit '37e84ab74e939caf52150fc3352081786ecc0c29' into merges
[unleashed.git] / usr / src / cmd / Makefile.check
blob9c864d5416f0da1159e8b5a7a410c94127b4602d
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2017 Nexenta Systems, Inc.
28 include ../Makefile.master
31 # Commands providing manifests must offer a check target.  A recursive check
32 # target across all commands directories is not currently provided.
34 MANIFEST_TOPDIRS=                       \
35         acctadm                         \
36         auditd                          \
37         consadm                         \
38         coreadm                         \
39         cron                            \
40         cvcd                            \
41         dispadmin                       \
42         drd                             \
43         dumpadm                         \
44         fcinfo                          \
45         fcoesvc                         \
46         fm                              \
47         ibd_upgrade                     \
48         intrd                           \
49         iscsid                          \
50         iscsitsvc                       \
51         kbd                             \
52         keyserv                         \
53         ldapcachemgr                    \
54         ldmad                           \
55         dlmgmtd                         \
56         ndmpd                           \
57         nscd                            \
58         oplhpd                          \
59         pools                           \
60         power                           \
61         rmvolmgr                        \
62         rpcbind                         \
63         rpcsvc                          \
64         sa                              \
65         saf                             \
66         sckmd                           \
67         sf880drd                        \
68         smserverd                       \
69         stmfsvc                         \
70         stmsboot                        \
71         syseventd                       \
72         syslogd                         \
73         utmpd                           \
74         vntsd                           \
75         ypcmd                           \
76         zoneadm                         \
77         zoneadmd
79 MANIFEST_SUBDIRS=                       \
80         boot/scripts                    \
81         cmd-crypto/scripts              \
82         cmd-inet/usr.lib/ilbd           \
83         cmd-inet/usr.lib/in.chargend    \
84         cmd-inet/usr.lib/in.daytimed    \
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/vrrpd          \
93         cmd-inet/usr.lib/wpad           \
94         cmd-inet/usr.sbin               \
95         cmd-inet/usr.sbin/in.rdisc      \
96         cmd-inet/usr.sbin/in.routed     \
97         cmd-inet/usr.sbin/in.talkd      \
98         cmd-inet/usr.sbin/ipsecutils    \
99         dfs.cmds/sharemgr               \
100         fs.d/autofs                     \
101         fs.d/nfs/svc                    \
102         fs.d/smbclnt/svc                \
103         gss/gssd                        \
104         hal/addons/network-devices      \
105         hal/hald/solaris                \
106         halt/smf.$(MACH)                \
107         hostid/smf                      \
108         idmap/idmapd                    \
109         ipf/svc                         \
110         isns/isnsd                      \
111         krb5/kadmin/server              \
112         krb5/krb5kdc                    \
113         krb5/kwarn                      \
114         krb5/slave                      \
115         picl/picld                      \
116         rcap/rcapd                      \
117         rpcsvc/rpc.bootparamd           \
118         smbsrv/smbd                     \
119         svc/milestone                   \
120         vscan/vscand                    \
121         ypcmd/yppasswd                  \
122         ypcmd/ypupdated                 \
123         zonestat/zonestatd
125 MISC_SUBDIRS=           \
126         dtrace/test/tst \
127         sgs
129 .KEEP_STATE:
131 # Manifests cannot be checked in parallel, because we are using the global
132 # repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
133 # repository that is built from the manifests in this workspace, whereas
134 # the build machine's repository may be out of sync with these manifests.
135 # Because we are using a private repository, svccfg-native must start up a
136 # private copy of configd-native.  We cannot have multiple copies of
137 # configd-native trying to access global.db simultaneously.
139 .NO_PARALLEL:
141 check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
143 svccfg_check:
144         @$(ECHO) "building requirements for svccfg check ..."; \
145         (cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
147 $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
148         @cd $@; pwd; $(MAKE) check
150 FRC: