dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / test / zfs-tests / tests / functional / delegate / setup.ksh
blob58cbba2b96e2b80636060fc3bdaeed9aa5fcfa8e
1 #!/usr/bin/ksh -p
3 # CDDL HEADER START
5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License (the "License").
7 # You may not use this file except in compliance with the License.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
20 # CDDL HEADER END
24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
29 # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
32 . $STF_SUITE/tests/functional/delegate/delegate_common.kshlib
34 # check svc:/network/nis/client:default state
35 # disable it if the state is ON
36 # and the state will be restored during cleanup.ksh
37 log_must rm -f $NISSTAFILE
38 if [[ "ON" == $(svcs -H -o sta svc:/network/nis/client:default) ]]; then
39 log_must svcadm disable -t svc:/network/nis/client:default
40 log_must touch $NISSTAFILE
43 cleanup_user_group
45 # Create staff group and add two user to it
46 log_must add_group $STAFF_GROUP
47 log_must add_user $STAFF_GROUP $STAFF1
48 log_must add_user $STAFF_GROUP $STAFF2
50 # Create other group and add two user to it
51 log_must add_group $OTHER_GROUP
52 log_must add_user $OTHER_GROUP $OTHER1
53 log_must add_user $OTHER_GROUP $OTHER2
55 DISK=${DISKS%% *}
56 default_volume_setup $DISK
57 log_must chmod 777 $TESTDIR
59 log_pass