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 gout.t1.0 \ 36 gout.t1.1 \ 37 gout.t1.2 \ 38 gout.t1.3 \ 39 gout.t1.4 \ 40 gout.t1.5 \ 41 gout.t1.6 \ 42 gout.t1.7 \ 43 gout.t1.8 \ 44 gout.t1.9 \ 45 gout.t1.10 \ 46 gout.t1.11 \ 47 gout.t1.12 \ 48 gout.t1.13 \ 49 gout.t1.14 \ 50 gout.t1.15 \ 51 gout.t1.16 \ 52 gout.t1.17 \ 53 gout.t1.18 \ 54 gout.t1.19 \ 55 gout.t1.20 \ 56 gout.t1.21 \ 57 gout.t1.22 \ 58 gout.t1.23 \ 59 gout.t1.24 \ 60 gout.t1.25 \ 61 gout.t1.26 \ 62 gout.t1.27 \ 63 gout.t1.28 \ 64 gout.t1.29 \ 65 gout.t1.30 \ 66 gout.t1.31 \ 67 gout.t1.32 \ 68 gout.t1.33 \ 69 gout.t1.34 \ 70 gout.t1.35 \ 71 gout.t1.36 \ 72 gout.t1.37 \ 73 gout.t1.38 \ 74 gout.t1.39 \ 75 gout.t1.40 \ 76 gout.t1.41 \ 77 gout.t1.42 \ 78 gout.t1.43 \ 79 gout.t1.44 \ 80 gout.t1.45 \ 81 gout.t1.46 \ 82 gout.t1.47 \ 83 gout.t1.48 \ 84 gout.t1.49 \ 85 gout.t1.50 \ 86 gout.t1.51 \ 87 gout.t1.52 \ 88 gout.t1.53 \ 89 gout.t1.54 \ 90 gout.t1.55 \ 91 gout.t1.56 \ 92 gout.t1.57 \ 93 gout.t1.58 \ 94 gout.t1.59 \ 95 gout.t1.60 \ 96 gout.t1.61 \ 97 gout.t1.62 \ 98 gout.t2.0 \ 99 gout.t3.0 \ 100 gout.t3.1 \ 101 gout.t3.2 \ 102 gout.t4.0 \ 103 gout.t4.1 \ 104 gout.t5.0 \ 105 gout.t5.1 \ 106 gout.t6.0 \ 107 gout.t6.1 \ 108 gout.t6.2 \ 109 gout.t6.3 \ 110 gout.t6.4 \ 111 gout.t6.5 \ 112 gout.t6.6 \ 113 gout.t6.7 \ 114 gout.t6.8 \ 115 gout.t6.9 \ 116 gout.t6.10 \ 117 gout.t6.11 \ 118 gout.t6.12 \ 119 gout.t6.13 \ 120 gout.t6.14 \ 121 gout.t6.15 \ 122 gout.t6.16 \ 123 gout.t6.17 \ 124 gout.t6.18 \ 125 gout.t6.19 \ 126 testnl 127 128CMDS = $(PROGS:%=$(TESTDIR)/%) 129$(CMDS) := FILEMODE = 0444 130 131all lint clean clobber: 132 133install: $(CMDS) 134 135$(CMDS): $(TESTDIR) 136 137$(TESTDIR): 138 $(INS.dir) 139 140$(TESTDIR)/%: % 141 $(INS.file) 142