xref: /titanic_52/usr/src/test/test-runner/stf/include/stf.shlib (revision d583b39bfb4e2571d3e41097c5c357ffe353ad45)
1*d583b39bSJohn Wren Kennedy#
2*d583b39bSJohn Wren Kennedy# CDDL HEADER START
3*d583b39bSJohn Wren Kennedy#
4*d583b39bSJohn Wren Kennedy# The contents of this file are subject to the terms of the
5*d583b39bSJohn Wren Kennedy# Common Development and Distribution License (the "License").
6*d583b39bSJohn Wren Kennedy# You may not use this file except in compliance with the License.
7*d583b39bSJohn Wren Kennedy#
8*d583b39bSJohn Wren Kennedy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d583b39bSJohn Wren Kennedy# or http://www.opensolaris.org/os/licensing.
10*d583b39bSJohn Wren Kennedy# See the License for the specific language governing permissions
11*d583b39bSJohn Wren Kennedy# and limitations under the License.
12*d583b39bSJohn Wren Kennedy#
13*d583b39bSJohn Wren Kennedy# When distributing Covered Code, include this CDDL HEADER in each
14*d583b39bSJohn Wren Kennedy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d583b39bSJohn Wren Kennedy# If applicable, add the following below this CDDL HEADER, with the
16*d583b39bSJohn Wren Kennedy# fields enclosed by brackets "[]" replaced with your own identifying
17*d583b39bSJohn Wren Kennedy# information: Portions Copyright [yyyy] [name of copyright owner]
18*d583b39bSJohn Wren Kennedy#
19*d583b39bSJohn Wren Kennedy# CDDL HEADER END
20*d583b39bSJohn Wren Kennedy#
21*d583b39bSJohn Wren Kennedy
22*d583b39bSJohn Wren Kennedy#
23*d583b39bSJohn Wren Kennedy# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*d583b39bSJohn Wren Kennedy# Use is subject to license terms.
25*d583b39bSJohn Wren Kennedy#
26*d583b39bSJohn Wren Kennedy# Copyright (c) 2012 by Delphix. All rights reserved.
27*d583b39bSJohn Wren Kennedy#
28*d583b39bSJohn Wren Kennedy
29*d583b39bSJohn Wren Kennedy
30*d583b39bSJohn Wren KennedySTF_PASS=0
31*d583b39bSJohn Wren KennedySTF_FAIL=1
32*d583b39bSJohn Wren KennedySTF_UNRESOLVED=2
33*d583b39bSJohn Wren KennedySTF_NOTINUSE=3
34*d583b39bSJohn Wren KennedySTF_UNSUPPORTED=4
35*d583b39bSJohn Wren KennedySTF_UNTESTED=5
36*d583b39bSJohn Wren KennedySTF_UNINITIATED=6
37*d583b39bSJohn Wren KennedySTF_NORESULT=7
38*d583b39bSJohn Wren KennedySTF_WARNING=8
39*d583b39bSJohn Wren KennedySTF_TIMED_OUT=9
40*d583b39bSJohn Wren KennedySTF_OTHER=10
41*d583b39bSJohn Wren Kennedy
42*d583b39bSJohn Wren Kennedy# do this to use the names: eval echo \$STF_RESULT_NAME_${result}
43*d583b39bSJohn Wren KennedySTF_RESULT_NAME_0="PASS"
44*d583b39bSJohn Wren KennedySTF_RESULT_NAME_1="FAIL"
45*d583b39bSJohn Wren KennedySTF_RESULT_NAME_2="UNRESOLVED"
46*d583b39bSJohn Wren KennedySTF_RESULT_NAME_3="NOTINUSE"
47*d583b39bSJohn Wren KennedySTF_RESULT_NAME_4="UNSUPPORTED"
48*d583b39bSJohn Wren KennedySTF_RESULT_NAME_5="UNTESTED"
49*d583b39bSJohn Wren KennedySTF_RESULT_NAME_6="UNINITIATED"
50*d583b39bSJohn Wren KennedySTF_RESULT_NAME_7="NORESULT"
51*d583b39bSJohn Wren KennedySTF_RESULT_NAME_8="WARNING"
52*d583b39bSJohn Wren KennedySTF_RESULT_NAME_9="TIMED_OUT"
53*d583b39bSJohn Wren KennedySTF_RESULT_NAME_10="OTHER"
54*d583b39bSJohn Wren Kennedy
55*d583b39bSJohn Wren Kennedy# do this to use the array: ${STF_RESULT_NAMES[$result]}
56*d583b39bSJohn Wren KennedySTF_RESULT_NAMES=( "PASS" "FAIL" "UNRESOLVED" "NOTINUSE" "UNSUPPORTED" \
57*d583b39bSJohn Wren Kennedy    "UNTESTED" "UNINITIATED" "NORESULT" "WARNING" "TIMED_OUT" "OTHER" )
58