xref: /illumos-gate/usr/src/test/util-tests/tests/mdb/Makefile (revision ac2f5fbefc05314fcd97b03f2338b39e6efe643f)
1*ac2f5fbeSJohn Levon#
2*ac2f5fbeSJohn Levon# This file and its contents are supplied under the terms of the
3*ac2f5fbeSJohn Levon# Common Development and Distribution License ("CDDL"), version 1.0.
4*ac2f5fbeSJohn Levon# You may only use this file in accordance with the terms of version
5*ac2f5fbeSJohn Levon# 1.0 of the CDDL.
6*ac2f5fbeSJohn Levon#
7*ac2f5fbeSJohn Levon# A full copy of the text of the CDDL should have accompanied this
8*ac2f5fbeSJohn Levon# source.  A copy of the CDDL is also available via the Internet at
9*ac2f5fbeSJohn Levon# http://www.illumos.org/license/CDDL.
10*ac2f5fbeSJohn Levon#
11*ac2f5fbeSJohn Levon
12*ac2f5fbeSJohn Levon#
13*ac2f5fbeSJohn Levon# Copyright 2020 Joyent, Inc.
14*ac2f5fbeSJohn Levon#
15*ac2f5fbeSJohn Levon
16*ac2f5fbeSJohn Levoninclude $(SRC)/cmd/Makefile.cmd
17*ac2f5fbeSJohn Levoninclude $(SRC)/test/Makefile.com
18*ac2f5fbeSJohn Levon
19*ac2f5fbeSJohn LevonROOTOPTPKG = $(ROOT)/opt/util-tests
20*ac2f5fbeSJohn LevonTESTDIR = $(ROOTOPTPKG)/tests/mdb
21*ac2f5fbeSJohn Levon
22*ac2f5fbeSJohn LevonPROG = mdbtest
23*ac2f5fbeSJohn Levon
24*ac2f5fbeSJohn LevonROOTPROG = $(PROG:%=$(TESTDIR)/%)
25*ac2f5fbeSJohn Levon
26*ac2f5fbeSJohn LevonMAKEDIRS = \
27*ac2f5fbeSJohn Levon	exit-e \
28*ac2f5fbeSJohn Levon	format \
29*ac2f5fbeSJohn Levon	options \
30*ac2f5fbeSJohn Levon	typedef
31*ac2f5fbeSJohn Levon
32*ac2f5fbeSJohn LevonFILES = \
33*ac2f5fbeSJohn Levon	exit-e/err.cmdbadopt.ksh \
34*ac2f5fbeSJohn Levon	exit-e/err.enocmd.ksh \
35*ac2f5fbeSJohn Levon	exit-e/err.nowrite.ksh \
36*ac2f5fbeSJohn Levon	exit-e/err.unmapped.ksh \
37*ac2f5fbeSJohn Levon	exit-e/tst.output.ksh \
38*ac2f5fbeSJohn Levon	exit-e/tst.output.ksh.out \
39*ac2f5fbeSJohn Levon	exit-e/tst.simple.ksh \
40*ac2f5fbeSJohn Levon	format/tst.format-cap-E.mdb \
41*ac2f5fbeSJohn Levon	format/tst.format-cap-E.mdb.out \
42*ac2f5fbeSJohn Levon	format/tst.format-cap-G.mdb \
43*ac2f5fbeSJohn Levon	format/tst.format-cap-G.mdb.out \
44*ac2f5fbeSJohn Levon	format/tst.format-cap-J.mdb \
45*ac2f5fbeSJohn Levon	format/tst.format-cap-J.mdb.out \
46*ac2f5fbeSJohn Levon	format/tst.format-cap-P.mdb \
47*ac2f5fbeSJohn Levon	format/tst.format-cap-P.mdb.out \
48*ac2f5fbeSJohn Levon	format/tst.format-cap-R.mdb \
49*ac2f5fbeSJohn Levon	format/tst.format-cap-R.mdb.out \
50*ac2f5fbeSJohn Levon	format/tst.format-e.mdb \
51*ac2f5fbeSJohn Levon	format/tst.format-e.mdb.out \
52*ac2f5fbeSJohn Levon	format/tst.format-g.mdb \
53*ac2f5fbeSJohn Levon	format/tst.format-g.mdb.out \
54*ac2f5fbeSJohn Levon	format/tst.format-j.mdb \
55*ac2f5fbeSJohn Levon	format/tst.format-j.mdb.out \
56*ac2f5fbeSJohn Levon	format/tst.format-p.mdb \
57*ac2f5fbeSJohn Levon	format/tst.format-p.mdb.out \
58*ac2f5fbeSJohn Levon	options/tst.autowrap.mdb \
59*ac2f5fbeSJohn Levon	options/tst.autowrap.mdb.out \
60*ac2f5fbeSJohn Levon	typedef/err.badid-leadnum.ksh \
61*ac2f5fbeSJohn Levon	typedef/err.badid-leadschar.ksh \
62*ac2f5fbeSJohn Levon	typedef/err.badmodel.ksh \
63*ac2f5fbeSJohn Levon	typedef/err.badstruct-extrabraces.ksh \
64*ac2f5fbeSJohn Levon	typedef/err.badstruct-neglenarr.ksh \
65*ac2f5fbeSJohn Levon	typedef/err.badstruct-noarrayclose.ksh \
66*ac2f5fbeSJohn Levon	typedef/err.badstruct-noarraylen.ksh \
67*ac2f5fbeSJohn Levon	typedef/err.badstruct-noarrayopen.ksh \
68*ac2f5fbeSJohn Levon	typedef/err.badstruct-nobraces.ksh \
69*ac2f5fbeSJohn Levon	typedef/err.badstruct-noclosebrace.ksh \
70*ac2f5fbeSJohn Levon	typedef/err.badstruct-nomembers.ksh \
71*ac2f5fbeSJohn Levon	typedef/err.badstruct-nomemname.ksh \
72*ac2f5fbeSJohn Levon	typedef/err.badstruct-nomemsemi.ksh \
73*ac2f5fbeSJohn Levon	typedef/err.badstruct-noopenbrace.ksh \
74*ac2f5fbeSJohn Levon	typedef/err.badstruct-noquotes.ksh \
75*ac2f5fbeSJohn Levon	typedef/err.badstruct-repmemname.ksh \
76*ac2f5fbeSJohn Levon	typedef/err.badstruct-vlaonly.ksh \
77*ac2f5fbeSJohn Levon	typedef/err.badstruct-zerolenarr.ksh \
78*ac2f5fbeSJohn Levon	typedef/err.badunion-hasvla.ksh \
79*ac2f5fbeSJohn Levon	typedef/err.extraargs.ksh \
80*ac2f5fbeSJohn Levon	typedef/err.noargs.ksh \
81*ac2f5fbeSJohn Levon	typedef/err.nokeyword.ksh \
82*ac2f5fbeSJohn Levon	typedef/err.nomodel.ksh \
83*ac2f5fbeSJohn Levon	typedef/err.noname.ksh \
84*ac2f5fbeSJohn Levon	typedef/err.typeexists.ksh \
85*ac2f5fbeSJohn Levon	typedef/tst.anonstruct.mdb \
86*ac2f5fbeSJohn Levon	typedef/tst.anonstruct.mdb.out \
87*ac2f5fbeSJohn Levon	typedef/tst.anonunion.mdb \
88*ac2f5fbeSJohn Levon	typedef/tst.anonunion.mdb.out \
89*ac2f5fbeSJohn Levon	typedef/tst.cleanupstruct.ksh \
90*ac2f5fbeSJohn Levon	typedef/tst.deftypes32.mdb \
91*ac2f5fbeSJohn Levon	typedef/tst.deftypes32.mdb.out \
92*ac2f5fbeSJohn Levon	typedef/tst.deftypes64.mdb \
93*ac2f5fbeSJohn Levon	typedef/tst.deftypes64.mdb.out \
94*ac2f5fbeSJohn Levon	typedef/tst.dellist.mdb \
95*ac2f5fbeSJohn Levon	typedef/tst.emptylist.mdb \
96*ac2f5fbeSJohn Levon	typedef/tst.libctype.ksh \
97*ac2f5fbeSJohn Levon	typedef/tst.libctype.ksh.out \
98*ac2f5fbeSJohn Levon	typedef/tst.models.ksh \
99*ac2f5fbeSJohn Levon	typedef/tst.struct.mdb \
100*ac2f5fbeSJohn Levon	typedef/tst.struct.mdb.out \
101*ac2f5fbeSJohn Levon	typedef/tst.structselfref.mdb \
102*ac2f5fbeSJohn Levon	typedef/tst.structselfref.mdb.out \
103*ac2f5fbeSJohn Levon	typedef/tst.structvla.mdb \
104*ac2f5fbeSJohn Levon	typedef/tst.structvla.mdb.out \
105*ac2f5fbeSJohn Levon	typedef/tst.union.mdb \
106*ac2f5fbeSJohn Levon	typedef/tst.union.mdb.out \
107*ac2f5fbeSJohn Levon
108*ac2f5fbeSJohn LevonROOTFILES = $(FILES:%=$(TESTDIR)/%)
109*ac2f5fbeSJohn LevonROOTMAKEDIRS = $(MAKEDIRS:%=$(TESTDIR)/%)
110*ac2f5fbeSJohn Levon
111*ac2f5fbeSJohn LevonFILEMODE = 0444
112*ac2f5fbeSJohn Levon
113*ac2f5fbeSJohn Levon$(TESTDIR)/mdbtest := FILEMODE = 0555
114*ac2f5fbeSJohn Levon
115*ac2f5fbeSJohn Levonall:
116*ac2f5fbeSJohn Levon
117*ac2f5fbeSJohn Levoninstall: all $(ROOTFILES) $(ROOTPROG)
118*ac2f5fbeSJohn Levon
119*ac2f5fbeSJohn Levonclean clobber:
120*ac2f5fbeSJohn Levon
121*ac2f5fbeSJohn Levon$(ROOTFILES): $(TESTDIR) $(ROOTMAKEDIRS) $(FILES)
122*ac2f5fbeSJohn Levon
123*ac2f5fbeSJohn Levon$(TESTDIR) $(ROOTMAKEDIRS):
124*ac2f5fbeSJohn Levon	$(INS.dir)
125*ac2f5fbeSJohn Levon
126*ac2f5fbeSJohn Levon$(TESTDIR)/%: %
127*ac2f5fbeSJohn Levon	$(INS.file)
128