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 (c) 2013 by Delphix. All rights reserved.
  14 # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  15 #
  16 
  17 include $(SRC)/cmd/Makefile.cmd
  18 include $(SRC)/test/Makefile.com
  19 
  20 ROOTOPTPKG = $(ROOT)/opt/util-tests
  21 TESTDIR = $(ROOTOPTPKG)/tests/files
  22 
  23 PROGS = test0 \
  24         test1 \
  25         test2 \
  26         test3 \
  27         test4 \
  28         test5 \
  29         test6 \
  30         test7 \
  31         gout0 \
  32         gout1 \
  33         gout2 \
  34         gout3 \
  35         gout4 \
  36         gout5 \
  37         gout6 \
  38         gout7 \
  39         gout8 \
  40         gout9 \
  41         gout10 \
  42         gout11 \
  43         gout12 \
  44         gout13 \
  45         gout14 \
  46         gout15 \
  47         gout16 \
  48         gout17 \
  49         gout18 \
  50         gout19 \
  51         gout20 \
  52         gout21 \
  53         gout22 \
  54         gout23 \
  55         gout24 \
  56         gout25 \
  57         gout26 \
  58         gout27 \
  59         gout28 \
  60         gout29 \
  61         gout30 \
  62         gout31 \
  63         gout32 \
  64         gout33 \
  65         gout34 \
  66         gout35 \
  67         gout36 \
  68         gout37 \
  69         gout38 \
  70         gout39 \
  71         gout40 \
  72         gout41 \
  73         gout42 \
  74         gout43 \
  75         gout44 \
  76         gout45 \
  77         gout46 \
  78         gout47 \
  79         gout48 \
  80         gout49 \
  81         gout50 \
  82         gout51 \
  83         gout52 \
  84         gout53 \
  85         gout54 \
  86         gout55 \
  87         gout56 \
  88         gout57 \
  89         gout58 \
  90         gout59 \
  91         gout60 \
  92         gout61 \
  93         gout62
  94 
  95 CMDS = $(PROGS:%=$(TESTDIR)/%)
  96 $(CMDS) := FILEMODE = 0444
  97 
  98 all lint clean clobber:
  99 
 100 install: $(CMDS)
 101 
 102 $(CMDS): $(TESTDIR)
 103 
 104 $(TESTDIR):
 105         $(INS.dir)
 106 
 107 $(TESTDIR)/%: %
 108         $(INS.file)