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/cli_user/misc
  20 
  21 PROGS = cleanup \
  22         setup \
  23         zdb_001_neg \
  24         zfs_001_neg \
  25         zfs_allow_001_neg \
  26         zfs_clone_001_neg \
  27         zfs_create_001_neg \
  28         zfs_destroy_001_neg \
  29         zfs_get_001_neg \
  30         zfs_inherit_001_neg \
  31         zfs_mount_001_neg \
  32         zfs_promote_001_neg \
  33         zfs_receive_001_neg \
  34         zfs_rename_001_neg \
  35         zfs_rollback_001_neg \
  36         zfs_send_001_neg \
  37         zfs_set_001_neg \
  38         zfs_share_001_neg \
  39         zfs_snapshot_001_neg \
  40         zfs_unallow_001_neg \
  41         zfs_unmount_001_neg \
  42         zfs_unshare_001_neg \
  43         zfs_upgrade_001_neg \
  44         zpool_001_neg \
  45         zpool_add_001_neg \
  46         zpool_attach_001_neg \
  47         zpool_clear_001_neg \
  48         zpool_create_001_neg \
  49         zpool_destroy_001_neg \
  50         zpool_detach_001_neg \
  51         zpool_export_001_neg \
  52         zpool_get_001_neg \
  53         zpool_history_001_neg \
  54         zpool_import_001_neg \
  55         zpool_import_002_neg \
  56         zpool_offline_001_neg \
  57         zpool_online_001_neg \
  58         zpool_remove_001_neg \
  59         zpool_replace_001_neg \
  60         zpool_scrub_001_neg \
  61         zpool_set_001_neg \
  62         zpool_status_001_neg \
  63         zpool_upgrade_001_neg
  64 
  65 FILES = misc.cfg
  66 
  67 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%)
  68 $(CMDS) := FILEMODE = 0555
  69 
  70 all lint clean clobber:
  71 
  72 install: $(CMDS)
  73 
  74 $(CMDS): $(TESTDIR)
  75 
  76 $(TESTDIR):
  77         $(INS.dir)
  78 
  79 $(TESTDIR)/%: %
  80         $(INS.file)
  81 
  82 $(TESTDIR)/%: %.ksh
  83         $(INS.rename)