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 iscsi authentication methods.
29 #
30 # This file contains the test startup functions and the invocable component list
31 # of all the test purposes that are to be executed.
32 #
33
34 #
35 # Set the tet global variables tet_startup and tet_cleanup to the
36 # startup and cleanup function names
37 #
38 tet_startup="startup"
39 tet_cleanup="cleanup"
40
41 #
42 # The list of invocable components for this test case set.
43 # All the components are a 1:1 relation to each test purpose.
44 #
45 iclist="ic1 ic2 ic3 ic4 ic5 ic6 ic7 ic8 ic9 ic10 ic11 ic12"
46
47 ic1="iscsi_auth_001"
48 ic2="iscsi_auth_002"
49 ic3="iscsi_auth_003"
50 ic4="iscsi_auth_004"
51 ic5="iscsi_auth_005"
52 ic6="iscsi_auth_006"
53 ic7="iscsi_auth_007"
54 ic8="iscsi_auth_008"
55 ic9="iscsi_auth_009"
56 ic10="iscsi_auth_010"
57 ic11="iscsi_auth_011"
58 ic12="iscsi_auth_012"
59
60 #
61 # Source in each of the test purpose files that are associated with
62 # each of the invocable components listed in the previous settings.
63 #
64 . ./tp_iscsi_auth_001
65 . ./tp_iscsi_auth_002
66 . ./tp_iscsi_auth_003
67 . ./tp_iscsi_auth_004
68 . ./tp_iscsi_auth_005
69 . ./tp_iscsi_auth_006
70 . ./tp_iscsi_auth_007
71 . ./tp_iscsi_auth_008
72 . ./tp_iscsi_auth_009
73 . ./tp_iscsi_auth_010
74 . ./tp_iscsi_auth_011
75 . ./tp_iscsi_auth_012
76
77 STAND_ALONE=1
78
79 #
80 # The startup function that will be called when this test case is
81 # invoked before any test purposes are executed.
82 #
83 function startup
84 {
85 #
86 # Call the _startup function to initialize the system and
87 # verify the system resources and setup the filesystems to be
88 # used by the tests.
89 #
90 cti_report "Starting up"
91 comstar_startup_iscsi_target
92 }
93
94 #
95 # The cleanup function that will be called when this test case is
96 # invoked after all the test purposes are executed (or aborted).
97 #
98 function cleanup
99 {
100 #
101 # Call the _cleanup function to remove any filesystems that were
102 # in use and free any resource that might still be in use by the tests.
103 #
104 cti_report "Cleaning up after tests"
105 comstar_cleanup_iscsi_target
106 }
107
108 #
109 # Source in the common utilities and tools that are used by the test purposes
110 # and test case.
111 #
112 . ${CTI_SUITE}/lib/comstar_common
113
114 #
115 # Source in the cti and tet required utilities and tools.
116 #
117 . ${CTI_ROOT}/lib/ctiutils.ksh
118 . ${TET_ROOT}/lib/ksh/tcm.ksh
119