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
16include $(SRC)/Makefile.master
17
18ROOTOPTPKG = $(ROOT)/opt/zfs-tests
19TESTDIR = $(ROOTOPTPKG)/tests/functional/delegate
20
21PROGS = cleanup \
22	setup \
23	zfs_allow_001_pos \
24	zfs_allow_002_pos \
25	zfs_allow_003_pos \
26	zfs_allow_004_pos \
27	zfs_allow_005_pos \
28	zfs_allow_006_pos \
29	zfs_allow_007_pos \
30	zfs_allow_008_pos \
31	zfs_allow_009_neg \
32	zfs_allow_010_pos \
33	zfs_allow_011_neg \
34	zfs_allow_012_neg \
35	zfs_unallow_001_pos \
36	zfs_unallow_002_pos \
37	zfs_unallow_003_pos \
38	zfs_unallow_004_pos \
39	zfs_unallow_005_pos \
40	zfs_unallow_006_pos \
41	zfs_unallow_007_neg \
42	zfs_unallow_008_neg
43
44FILES = delegate.cfg \
45	delegate_common.kshlib
46
47CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%)
48$(CMDS) := FILEMODE = 0555
49
50all lint clean clobber:
51
52install: $(CMDS)
53
54$(CMDS): $(TESTDIR)
55
56$(TESTDIR):
57	$(INS.dir)
58
59$(TESTDIR)/%: %.ksh
60	$(INS.rename)
61
62$(TESTDIR)/%: %
63	$(INS.file)
64