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# Copyright 2020 Peter Tribble. 16# Copyright 2020 Oxide Computer Company 17# 18 19include $(SRC)/cmd/Makefile.cmd 20include $(SRC)/test/Makefile.com 21 22ROOTOPTPKG = $(ROOT)/opt/util-tests 23TESTDIR = $(ROOTOPTPKG)/tests/files/grep 24 25PROGS = test0 \ 26 test1 \ 27 test2 \ 28 test3 \ 29 test4 \ 30 test5 \ 31 test6 \ 32 test7 \ 33 test.lL.0 \ 34 test.lL.1 \ 35 test.mb.0 \ 36 test.o.0 \ 37 gout.t1.0 \ 38 gout.t1.1 \ 39 gout.t1.2 \ 40 gout.t1.3 \ 41 gout.t1.4 \ 42 gout.t1.5 \ 43 gout.t1.6 \ 44 gout.t1.7 \ 45 gout.t1.8 \ 46 gout.t1.9 \ 47 gout.t1.10 \ 48 gout.t1.11 \ 49 gout.t1.12 \ 50 gout.t1.13 \ 51 gout.t1.14 \ 52 gout.t1.15 \ 53 gout.t1.16 \ 54 gout.t1.17 \ 55 gout.t1.18 \ 56 gout.t1.19 \ 57 gout.t1.20 \ 58 gout.t1.21 \ 59 gout.t1.22 \ 60 gout.t1.23 \ 61 gout.t1.24 \ 62 gout.t1.25 \ 63 gout.t1.26 \ 64 gout.t1.27 \ 65 gout.t1.28 \ 66 gout.t1.29 \ 67 gout.t1.30 \ 68 gout.t1.31 \ 69 gout.t1.32 \ 70 gout.t1.33 \ 71 gout.t1.34 \ 72 gout.t1.35 \ 73 gout.t1.36 \ 74 gout.t1.37 \ 75 gout.t1.38 \ 76 gout.t1.39 \ 77 gout.t1.40 \ 78 gout.t1.41 \ 79 gout.t1.42 \ 80 gout.t1.43 \ 81 gout.t1.44 \ 82 gout.t1.45 \ 83 gout.t1.46 \ 84 gout.t1.47 \ 85 gout.t1.48 \ 86 gout.t1.49 \ 87 gout.t1.50 \ 88 gout.t1.51 \ 89 gout.t1.52 \ 90 gout.t1.53 \ 91 gout.t1.54 \ 92 gout.t1.55 \ 93 gout.t1.56 \ 94 gout.t1.57 \ 95 gout.t1.58 \ 96 gout.t1.59 \ 97 gout.t1.60 \ 98 gout.t1.61 \ 99 gout.t1.62 \ 100 gout.t1.63 \ 101 gout.t1.64 \ 102 gout.t1.65 \ 103 gout.t1.66 \ 104 gout.t1.67 \ 105 gout.t1.68 \ 106 gout.t1.69 \ 107 gout.t1.70 \ 108 gout.t1.71 \ 109 gout.t1.72 \ 110 gout.t1.73 \ 111 gout.t1.74 \ 112 gout.t1.75 \ 113 gout.t1.76 \ 114 gout.t1.77 \ 115 gout.t1.78 \ 116 gout.t1.79 \ 117 gout.t2.0 \ 118 gout.t3.0 \ 119 gout.t3.1 \ 120 gout.t3.2 \ 121 gout.t4.0 \ 122 gout.t4.1 \ 123 gout.t5.0 \ 124 gout.t5.1 \ 125 gout.t6.0 \ 126 gout.t6.1 \ 127 gout.t6.2 \ 128 gout.t6.3 \ 129 gout.t6.4 \ 130 gout.t6.5 \ 131 gout.t6.6 \ 132 gout.t6.7 \ 133 gout.t6.8 \ 134 gout.t6.9 \ 135 gout.t6.10 \ 136 gout.t6.11 \ 137 gout.t6.12 \ 138 gout.t6.13 \ 139 gout.t6.14 \ 140 gout.t6.15 \ 141 gout.t6.16 \ 142 gout.t6.17 \ 143 gout.t6.18 \ 144 gout.t6.19 \ 145 gout.t8.0 \ 146 gout.t8.1 \ 147 gout.t8.2 \ 148 gout.t8.3 \ 149 gout.t8.4 \ 150 gout.t8.5 \ 151 gout.t9.0 \ 152 gout.t9.1 \ 153 gout.t9.2 \ 154 gout.t9.3 \ 155 gout.t9.4 \ 156 gout.t9.5 \ 157 gout.t10.0 \ 158 gout.t10.1 \ 159 gout.t10.2 \ 160 gout.t10.3 \ 161 gout.t10.4 \ 162 gout.t10.5 \ 163 gout.t10.6 \ 164 gout.t10.7 \ 165 gout.t11.0 \ 166 gout.t11.1 \ 167 gout.t11.2 \ 168 gout.t11.3 \ 169 gout.t11.4 \ 170 gout.t11.5 \ 171 gout.t11.6 \ 172 testnl 173 174CMDS = $(PROGS:%=$(TESTDIR)/%) 175$(CMDS) := FILEMODE = 0444 176 177all lint clean clobber: 178 179install: $(CMDS) 180 181$(CMDS): $(TESTDIR) 182 183$(TESTDIR): 184 $(INS.dir) 185 186$(TESTDIR)/%: % 187 $(INS.file) 188