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