1 #! /usr/bin/ksh -p
2 #
3 # CDDL HEADER START
4 #
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.
8 #
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.
13 #
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]
19 #
20 # CDDL HEADER END
21 #
22
23 #
24 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # ident "@(#)tc_remove_share.ksh 1.5 08/06/11 SMI"
28 #
29
30 #
31 # remove test case
32 #
33
34 tet_startup="startup"
35 tet_cleanup="cleanup"
36
37 iclist="ic1 ic2 ic3 ic4 ic5 ic6 ic7 ic8 ic9 ic10"
38 ic1="remove001"
39 ic2="remove002"
40 ic3="remove003"
41 ic4="remove004"
42 ic5="remove005"
43 ic6="remove006"
44 ic7="remove007"
45 ic8="remove008"
46 ic9="remove009"
47 ic10="remove010"
48
49 #
50 # Here we need to source the configure file and do the initial
51 # setup for the tests.
52 # Initial Setup steps :
53 # - check environment to see if we even need to run (checkenv)
54 # - check for legacy share commands and setup
55 # - Create file systems
56 #
57 function startup
58 {
59 tet_infoline "Checking environment and runability"
60 share_startup
61 }
62
63 function cleanup
64 {
65 tet_infoline "Cleaning up after tests"
66 share_cleanup
67 }
68
69 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_001
70 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_002
71 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_003
72 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_004
73 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_005
74 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_006
75 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_007
76 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_008
77 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_009
78 . ${TET_SUITE_ROOT}/sharefs-tests/tests/sharemgr/remove/tp_remove_010
79
80 . ${TET_SUITE_ROOT}/sharefs-tests/lib/share_common
81
82 . ${TET_ROOT}/common/lib/ctiutils.ksh
83 . ${TET_ROOT}/lib/ksh/tcm.ksh