xref: /illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/Makefile (revision 4c28a617e3922d92a58e813a5b955eb526b9c386)
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) 2014, 2017 by Delphix. All rights reserved.
14#
15
16include $(SRC)/Makefile.master
17
18ROOTOPTPKG = $(ROOT)/opt/zfs-tests
19TESTDIR = $(ROOTOPTPKG)/tests/functional/removal
20
21PROGS = cleanup \
22        removal_all_vdev \
23        removal_check_space \
24        removal_condense_export \
25        removal_multiple_indirection \
26        removal_remap \
27        removal_reservation \
28        removal_sanity \
29        removal_remap_deadlists \
30        removal_with_add \
31        removal_with_create_fs \
32        removal_with_dedup \
33        removal_with_export \
34        removal_with_ganging \
35        removal_with_remap \
36        removal_with_remove \
37        removal_with_scrub \
38        removal_with_send \
39        removal_with_send_recv \
40        removal_with_snapshot \
41        removal_with_write \
42        removal_with_zdb \
43        removal_resume_export \
44        remove_mirror \
45        remove_mirror_sanity \
46        remove_raidz
47
48FILES = removal.kshlib
49
50CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%)
51$(CMDS) := FILEMODE = 0555
52
53all lint clean clobber:
54
55install: $(CMDS)
56
57$(CMDS): $(TESTDIR)
58
59$(TESTDIR):
60	$(INS.dir)
61
62$(TESTDIR)/%: %.ksh
63	$(INS.rename)
64
65$(TESTDIR)/%: %
66	$(INS.file)
67