xref: /illumos-gate/usr/src/test/util-tests/tests/dis/Makefile (revision c193478586214940af708897e19c9a878b6a6223)
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 2017 Joyent, Inc.
14#
15
16include $(SRC)/Makefile.master
17
18ROOTOPTPKG = $(ROOT)/opt/util-tests
19TESTDIR = $(ROOTOPTPKG)/tests/dis
20ARCHS = i386 sparc
21
22PROG = distest
23
24SPARC_TESTS = \
25	tst.regs
26
27I386_TESTS =		\
28	32.adx 		\
29	32.avx		\
30	32.avx2		\
31	32.aes 		\
32	32.bmi1 	\
33	32.bmi2 	\
34	32.f16c 	\
35	32.fma-pd 	\
36	32.fma-ps 	\
37	32.fma-sd 	\
38	32.fma-ss 	\
39	32.lzcnt 	\
40	32.movbe	\
41	32.opmask	\
42	32.pclmulqdq	\
43	32.popcnt 	\
44	32.sha		\
45	32.sse-3	\
46	32.sse-4.1 	\
47	32.sse-4.2 	\
48	32.ssse3 	\
49	32.xsave 	\
50	64.avx		\
51	64.avx2		\
52	64.adx 		\
53	64.aes 		\
54	64.bmi1 	\
55	64.bmi2 	\
56	64.ept 		\
57	64.f16c 	\
58	64.fma-pd 	\
59	64.fma-ps 	\
60	64.fma-sd 	\
61	64.fma-ss 	\
62	64.lzcnt 	\
63	64.movbe	\
64	64.opmask	\
65	64.pclmulqdq	\
66	64.popcnt 	\
67	64.random 	\
68	64.sha		\
69	64.sse-3	\
70	64.sse-4.1 	\
71	64.sse-4.2 	\
72	64.ssse3 	\
73	64.vmx 		\
74	64.xsave 	\
75	tst.cpuid	\
76	tst.fence	\
77	tst.msr		\
78	tst.mwait 	\
79	tst.random	\
80	tst.smap	\
81	tst.sep		\
82	tst.tsc		\
83	tst.vmx
84
85I386_FILES = $(I386_TESTS:%=%.s) $(I386_TESTS:%=%.out)
86ROOTI386 = $(I386_FILES:%=$(TESTDIR)/i386/%)
87
88SPARC_FILES = $(SPARC_TESTS:%=%.s) $(SPARC_TESTS:%=%.out)
89ROOTSPARC = $(SPARC_FILES:%=$(TESTDIR)/sparc/%)
90
91include $(SRC)/cmd/Makefile.cmd
92include $(SRC)/test/Makefile.com
93
94ARCHDIRS = $(ARCHS:%=$(TESTDIR)/%)
95CMDS = $(PROG:%=$(TESTDIR)/%)
96$(CMDS) := FILEMODE = 0555
97
98install: $(CMDS) $(ROOTI386) $(ROOTSPARC)
99
100lint:
101
102clobber: clean
103
104clean:
105
106$(CMDS) $(ROOTI386) $(ROOTSPARC): $(TESTDIR) $(ARCHDIRS)
107
108$(TESTDIR) $(ARCHDIRS):
109	$(INS.dir)
110
111$(TESTDIR)/%: %
112	$(INS.file)
113
114$(TESTDIR)/%: %.ksh
115	$(INS.rename)
116