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