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 2009 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27
28 # The main test case file to test data visibility related with
29 # iscsi target port provider.
30 #
31 # This file contains the test startup functions and the invocable component list
32 # of all the test purposes that are to be executed.
33 #
34
35 #
36 # Set the tet global variables tet_startup and tet_cleanup to the
37 # startup and cleanup function names
38 #
39 tet_startup="startup"
40 tet_cleanup="cleanup"
41
42 #
43 # The list of invocable components for this test case set.
44 # All the components are a 1:1 relation to each test purpose.
45 #
46 iclist="ic1 ic2 ic3 ic4 ic5 ic6 ic7 ic8 ic9 ic10 ic11 ic12 ic13 ic14"
47
48 ic1="tp_iscsi_visible_001"
49 ic2="tp_iscsi_visible_002"
50 ic3="tp_iscsi_visible_003"
51 ic4="tp_iscsi_visible_004"
52 ic5="tp_iscsi_visible_005"
53 ic6="tp_iscsi_visible_006"
54 ic7="tp_iscsi_visible_007"
55 ic8="tp_iscsi_visible_008"
56 ic9="tp_iscsi_visible_009"
57 ic10="tp_iscsi_visible_010"
58 ic11="tp_iscsi_visible_011"
59 ic12="tp_iscsi_visible_012"
60 ic13="tp_iscsi_visible_013"
61 ic14="tp_iscsi_visible_014"
62
63 #
64 # Source in each of the test purpose files that are associated with
65 # each of the invocable components listed in the previous settings.
66 #
67 . ./tp_iscsi_visible_001
68 . ./tp_iscsi_visible_002
69 . ./tp_iscsi_visible_003
70 . ./tp_iscsi_visible_004
71 . ./tp_iscsi_visible_005
72 . ./tp_iscsi_visible_006
73 . ./tp_iscsi_visible_007
74 . ./tp_iscsi_visible_008
75 . ./tp_iscsi_visible_009
76 . ./tp_iscsi_visible_010
77 . ./tp_iscsi_visible_011
78 . ./tp_iscsi_visible_012
79 . ./tp_iscsi_visible_013
80 . ./tp_iscsi_visible_014
81
82 STAND_ALONE=1
83 #
84 # The startup function that will be called when this test case is
85 # invoked before any test purposes are executed.
86 #
87 function startup
88 {
89 #
90 # Call the _startup function to initialize the system and
91 # verify the system resources and setup the filesystems to be
92 # used by the tests.
93 #
94 cti_report "Starting up"
95 comstar_startup_iscsi_target
96 }
97
98 #
99 # The cleanup function that will be called when this test case is
100 # invoked after all the test purposes are executed (or aborted).
101 #
102 function cleanup
103 {
104 #
105 # Call the _cleanup function to remove any filesystems that were
106 # in use and free any resource that might still be in use by the tests.
107 #
108 cti_report "Cleaning up after tests"
109 comstar_cleanup_iscsi_target
110 }
111
112 #
113 # Source in the common utilities and tools that are used by the test purposes
114 # and test case.
115 #
116 . ${CTI_SUITE}/lib/comstar_common
117
118 #
119 # Source in the cti and tet required utilities and tools.
120 #
121 . ${CTI_ROOT}/lib/ctiutils.ksh
122 . ${TET_ROOT}/lib/ksh/tcm.ksh
123