PageRenderTime 56ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/Core/TestResources/Test-ENVVAR-source/.script_common

http://macfuse.googlecode.com/
#! | 85 lines | 70 code | 15 blank | 0 comment | 0 complexity | 057d52cd72af159eb7b6b70bd261c862 MD5 | raw file
 1# Copyright 2008 Google Inc.
 2#
 3# Licensed under the Apache License, Version 2.0 (the "License");
 4# you may not use this file except in compliance with the License.
 5# You may obtain a copy of the License at
 6#
 7#     http://www.apache.org/licenses/LICENSE-2.0
 8#
 9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Common environment variable checker code for all three test scripts.
16
17if [ "${KS_TICKET_PRODUCT_ID:=undefined}" != "com.google.hasselhoff" ]; then
18  echo "KS_TICKET_PRODUCT_ID has unexpected value: '${KS_TICKET_PRODUCT_ID}'"
19  result=1
20fi
21
22if [ "${KS_TICKET_SERVER_URL:=undefined}" != "http://google.com" ]; then
23  echo "KS_TICKET_SERVER_URL has unexpected value: '${KS_TICKET_SERVER_URL}'"
24  result=1
25fi
26
27if [ "${KS_TICKET_VERSION:=undefined}" != "3.14.15.9" ]; then
28  echo "KS_TICKET_VERSION has unexpected value: '${KS_TICKET_VERSION}'"
29  result=1
30fi
31
32if [ "${KS_TICKET_XC_PATH:=undefined}" != "/oombly/foombly" ]; then
33  echo "KS_TICKET_XC_PATH has unexpected value: '${KS_TICKET_XC_PATH}'"
34  result=1
35fi
36
37if [ "${KS_USER_INITIATED:=undefined}" != "NO" ]; then
38  echo "KS_USER_INITIATED has unexpected value: '${KS_USER_INITIATED}'"
39  result=1
40fi
41
42if [ "${KS_kServerCodeHash:=undefined}" != "zzz" ]; then
43  echo "KS_kServerCodeHash has unexpected value: '${KS_kServerCodeHash}'"
44  result=1
45fi
46
47if [ "${KS_kServerCodeSize:=undefined}" != "2" ]; then
48  echo "KS_kServerCodeSize has unexpected value: '${KS_kServerCodeSize}'"
49  result=1
50fi
51
52if [ "${KS_kServerCodebaseURL:=undefined}" != "a://a" ]; then
53  echo "KS_kServerCodebaseURL has unexpected value: '${KS_kServerCodebaseURL}'"
54  result=1
55fi
56
57if [ "${KS_kServerDisplayVersion:=undefined}" != "1.3.2 (with pudding)" ]; then
58  echo "KS_kServerDisplayVersion has unexpected value: '${KS_kServerDisplayVersion}'"
59  result=1
60fi
61
62if [ "${KS_kServerLocalizationBundle:=undefined}" != "/Hassel/Hoff" ]; then
63  echo "KS_kServerLocalizationBundle has unexpected value: '${KS_kServerLocalizationBundle}'"
64  result=1
65fi
66
67if [ "${KS_kServerMoreInfoURLString:=undefined}" != "a://b" ]; then
68  echo "KS_kServerMoreInfoURLString has unexpected value: '${KS_kServerMoreInfoURLString}'"
69  result=1
70fi
71
72if [ "${KS_kServerProductID:=undefined}" != "com.google.hasselhoff" ]; then
73  echo "KS_kServerProductID has unexpected value: '${KS_kServerProductID}'"
74  result=1
75fi
76
77if [ "${KS_kServerPromptUser:=undefined}" != "1" ]; then
78  echo "KS_kServerPromptUser has unexpected value: '${KS_kServerPromptUser}'"
79  result=1
80fi
81
82if [ "${KS_kServerRequireReboot:=undefined}" != "1" ]; then
83  echo "KS_kServerRequireReboot has unexpected value: '${KS_kServerRequireReboot}'"
84  result=1
85fi