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 2016 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.avx2 \ 30 32.aes \ 31 32.bmi1 \ 32 32.bmi2 \ 33 32.fma-pd \ 34 32.fma-ps \ 35 32.fma-sd \ 36 32.fma-ss \ 37 32.lzcnt \ 38 32.popcnt \ 39 32.sha \ 40 32.sse-3 \ 41 32.sse-4.1 \ 42 32.sse-4.2 \ 43 32.ssse3 \ 44 32.xsave \ 45 64.avx2 \ 46 64.adx \ 47 64.aes \ 48 64.bmi1 \ 49 64.bmi2 \ 50 64.ept \ 51 64.fma-pd \ 52 64.fma-ps \ 53 64.fma-sd \ 54 64.fma-ss \ 55 64.lzcnt \ 56 64.popcnt \ 57 64.random \ 58 64.sha \ 59 64.sse-3 \ 60 64.sse-4.1 \ 61 64.sse-4.2 \ 62 64.ssse3 \ 63 64.vmx \ 64 64.xsave \ 65 tst.mwait \ 66 tst.random \ 67 tst.smap \ 68 tst.vmx 69 70I386_FILES = $(I386_TESTS:%=%.s) $(I386_TESTS:%=%.out) 71ROOTI386 = $(I386_FILES:%=$(TESTDIR)/i386/%) 72 73SPARC_FILES = $(SPARC_TESTS:%=%.s) $(SPARC_TESTS:%=%.out) 74ROOTSPARC = $(SPARC_FILES:%=$(TESTDIR)/sparc/%) 75 76include $(SRC)/cmd/Makefile.cmd 77include $(SRC)/test/Makefile.com 78 79ARCHDIRS = $(ARCHS:%=$(TESTDIR)/%) 80CMDS = $(PROG:%=$(TESTDIR)/%) 81$(CMDS) := FILEMODE = 0555 82 83install: $(CMDS) $(ROOTI386) $(ROOTSPARC) 84 85lint: 86 87clobber: clean 88 89clean: 90 91$(CMDS) $(ROOTI386) $(ROOTSPARC): $(TESTDIR) $(ARCHDIRS) 92 93$(TESTDIR) $(ARCHDIRS): 94 $(INS.dir) 95 96$(TESTDIR)/%: % 97 $(INS.file) 98 99$(TESTDIR)/%: %.ksh 100 $(INS.rename) 101