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