Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/test/zfs-tests/tests/functional/migration/migration.cfg
+++ new/usr/src/test/zfs-tests/tests/functional/migration/migration.cfg
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
|
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 -# Copyright (c) 2013 by Delphix. All rights reserved.
28 +# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
29 29 #
30 30
31 31 . $STF_SUITE/include/libtest.shlib
32 32
33 33 set -A disk_array $(find_disks $DISKS)
34 34 case "${#disk_array[*]}" in
35 35 0)
36 36 DISK_COUNT=0
37 37 ;;
38 38 1)
39 39 # We need to repartition the single disk to two slices.
40 40 DISK_COUNT=1
41 41 ZFS_DISK=${disk_array[0]}
42 42 SINGLE_DISK=$ZFS_DISK
43 43 NONZFS_DISK=$ZFS_DISK
44 44 ZFSSIDE_DISK=${SINGLE_DISK}s0
45 45 NONZFSSIDE_DISK=${SINGLE_DISK}s1
46 46 ;;
47 47 *)
48 48 # In this case there are at least enough disks to use.
49 49 DISK_COUNT=2
50 50 ZFS_DISK=${disk_array[0]}
|
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
51 51 NONZFS_DISK=${disk_array[1]}
52 52 ZFSSIDE_DISK=${ZFS_DISK}s0
53 53 NONZFSSIDE_DISK=${NONZFS_DISK}s0
54 54 ;;
55 55 esac
56 56
57 57 export DISK_COUNT ZFS_DISK NONZFS_DISK SINGLE_DISK ZFSSIDE_DISK NONZFSSIDE_DISK
58 58
59 59 export TESTFILE=/etc/passwd
60 60 export NONZFS_TESTDIR=$TESTDIR/nonzfstestdir
61 -tmp=`$SUM $TESTFILE`
62 -export SUMA=`$ECHO $tmp | $AWK '{print $1}'`
63 -export SUMB=`$ECHO $tmp | $AWK '{print $2}'`
61 +tmp=`sum $TESTFILE`
62 +export SUMA=`echo $tmp | awk '{print $1}'`
63 +export SUMB=`echo $tmp | awk '{print $2}'`
64 64 export FS_SIZE=1g
65 -export BNAME=`$BASENAME $TESTFILE`
66 -export DNAME=`$DIRNAME $TESTFILE`
65 +export BNAME=`basename $TESTFILE`
66 +export DNAME=`dirname $TESTFILE`
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX