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 # 15 16 include $(SRC)/Makefile.master 17 18 ROOTOPTPKG = $(ROOT)/opt/zfs-tests 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/history 20 21 PROGS = cleanup \ 22 history_001_pos \ 23 history_002_pos \ 24 history_003_pos \ 25 history_004_pos \ 26 history_005_neg \ 27 history_006_neg \ 28 history_007_pos \ 29 history_008_pos \ 30 history_009_pos \ 31 history_010_pos \ 32 setup 33 34 FILES = history.cfg \ 35 history_common.kshlib 36 37 DATAFILES = i386.migratedpool.DAT.Z \ 38 i386.orig_history.txt \ 39 sparc.migratedpool.DAT.Z \ 40 sparc.orig_history.txt \ 41 zfs-pool-v4.dat.Z 42 43 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%) 44 $(CMDS) := FILEMODE = 0555 45 46 DATA = $(DATAFILES:%=$(TESTDIR)/%) 47 $(DATA) := FILEMODE = 0444 48 49 all lint clean clobber: 50 51 install: $(CMDS) $(DATA) 52 53 $(CMDS): $(TESTDIR) 54 55 $(DATA): $(TESTDIR) 56 57 $(TESTDIR): 58 $(INS.dir) 59 60 $(TESTDIR)/%: %.ksh 61 $(INS.rename) 62 63 $(TESTDIR)/%: % 64 $(INS.file)