1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 # This file defines configurable variable that are loaded during the
28 # stf_configure stage.
29
30 export SERVICE_APP=${STF_SUITE}/bin/service_app
31
32 export TMPDIR=${TMPDIR:=/tmp}
33
34 export OUTFILE=${OUTFILE:=$TMPDIR/stdout.$$}
35 export ERRFILE=${ERRFILE:=$TMPDIR/stderr.$$}
36 export CMDFILE=${CMDFILE:=$TMPDIR/cmd.$$}
37
38 export SYNTAX_ERRMSG=${SYNTAX_ERRMSG:="Syntax error"}
39 export SERVICE_EXISTS_ERRMSG=${SERVICE_EXISTS_ERRMSG:="Service already exists"}
40 export INSTANCE_EXISTS_ERRMSG=${INSTANCE_EXISTS_ERRMSG:="Instance already exists"}
41 export INVALID_NAME_ERRMSG=${INVALID_NAME_ERRMSG:="Invalid name"}
42 export INVALID_FMRI_ERRMSG=${INVALID_FMRI_ERRMSG:="Invalid FMRI"}
43 export UNSELECT_SCOPE_ERRMSG=${UNSELECT_SCOPE_ERRMSG:="Cannot unselect at scope level"}
44 export INVALID_PROPGRP_ERRMSG=${INVALID_PROPGRP_ERRMSG:="Invalid property group"}
45 export INVALID_PROPGRP_FLAG_ERRMSG=${INVALID_PROPGRP_FLAG_ERRMSG:="Invalid property group flag"}
46 export NO_PROPGRP_ERRMSG=${NO_PROPGRP_ERRMSG:="No such property group"}
47 export NO_PROP_ERRMSG=${NO_PROP_ERRMSG:="No such property"}
48 export NOT_FOUND_PROPGRP_ERRMSG=${NOT_FOUND_PROPGRP_ERRMSG:="Couldn't find property group"}
49 export INVALID_ERRMSG=${INVALID_ERRMSG:="Name, type, or flags are invalid"}
50 export NOT_FOUND_ERRMSG=${NOT_FOUND_ERRMSG:="Not found."}
51 export not_FOUND_ERRMSG=${not_FOUND_ERRMSG:="not found"}
52 export ENTITY_NOT_FOUND_ERRMSG=${ENTITY_NOT_FOUND:="Entity not found"}
53 export CANNOT_EXECUTE_ERRMSG=${CANNOT_EXECUTE_ERRMSG:="cannot execute"}
54 export ADD_ENTITIES_ERRMSG=${ADD_ENTITES_ERRMSG:="Cannot add entities to an instance"}
55 export NOT_SELECTED_ERRMSG=${NOT_SELECTED_ERRMSG:="An entity is not selected"}
56 export NOT_SELECTED_INSTANCE_ERRMSG=${NOT_SELECTED_INSTANCE_ERRMSG:="Instance not selected"}
57 export UNPARSEABLE_ERRMSG=${UNPARSEABLE_ERRMSG:="couldn't parse document"}
58 export NOT_PROFILE_ERRMSG=${NOT_PROFILE_ERRMSG:="document is not a profile"}
59 export NOT_MANIFEST_ERRMSG=${NOT_MANIFEST_ERRMSG:="document is not a manifest"}
60 export NOT_SMFDTD_ERRMSG=${NOT_SMFDTD_ERRMSG:="document DTD unknown; not service bundle?"}
61 export NO_FILE_ERRMSG=${NO_FILE_ERRMSG:="No such file or directory"}
62 export UNKNOWN_COMMAND_ERRMSG=${UNKNOWN_COMMAND_ERRMSG:="Unknown command."}
63 export NOT_DISABLED_ERRMSG=${NOT_DISABLED_ERRMSG:='is not in the "disabled" state.'}
64 export INTERACTIVE_MODE_ERRMSG=${INTERACTIVE_MODE_ERRMSG:="Must be in interactive mode"}
65 export NO_INSTANCE_SELECTED_ERRMSG=${NO_INSTANCE_SELECTED_ERRMSG:="No instance selected"}
66
67 export NEW_ENTITY=${NEW_ENTITY:=new_entity_$$}
68 export NEW_ENTITY_PROFILE=${NEW_ENTITY_PROFILE:=/tmp/newprofile}
69
70
71 export TEST_PROPERTY=${TEST_PROPERTY:=svccfg_prop_$$}
72
73 export TEST_SERVICE=${TEST_SERVICE:=svccfg_service_$$}
74 export TEST_SERVICE_FMRI=${TEST_SERVICE_FMRI:=svc:/svccfg_service_$$}
75 export TEST_INSTANCE=${TEST_INSTANCE:=instance_$$}
76 export TEST_INSTANCE_FMRI=${TEST_INSTANCE_FMRI:=svc:/${TEST_SERVICE}:${TEST_INSTANCE}}
77
78 export INVALID_NAME=${INVALID_NAME:=$$}
79 export INVALID_NAME_LIST=${INVALID_NAME_LIST:="123456789 ~ abc\$def +foo+ _bar_"}
80 export INVALID_FMRI=${INVALID_FMRI:=invalid_@#$#%^}
81 export INVALID_FMRI_LIST=${INVALID_FMRI_LIST:="invalid_@#$#%^ svc://invalid_@%@ svc://fmri:.12_invalid_instance"}
82