/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. # Common environment variable checker code for all three test scripts.
  15. if [ "${KS_TICKET_PRODUCT_ID:=undefined}" != "com.google.hasselhoff" ]; then
  16. echo "KS_TICKET_PRODUCT_ID has unexpected value: '${KS_TICKET_PRODUCT_ID}'"
  17. result=1
  18. fi
  19. if [ "${KS_TICKET_SERVER_URL:=undefined}" != "http://google.com" ]; then
  20. echo "KS_TICKET_SERVER_URL has unexpected value: '${KS_TICKET_SERVER_URL}'"
  21. result=1
  22. fi
  23. if [ "${KS_TICKET_VERSION:=undefined}" != "3.14.15.9" ]; then
  24. echo "KS_TICKET_VERSION has unexpected value: '${KS_TICKET_VERSION}'"
  25. result=1
  26. fi
  27. if [ "${KS_TICKET_XC_PATH:=undefined}" != "/oombly/foombly" ]; then
  28. echo "KS_TICKET_XC_PATH has unexpected value: '${KS_TICKET_XC_PATH}'"
  29. result=1
  30. fi
  31. if [ "${KS_USER_INITIATED:=undefined}" != "NO" ]; then
  32. echo "KS_USER_INITIATED has unexpected value: '${KS_USER_INITIATED}'"
  33. result=1
  34. fi
  35. if [ "${KS_kServerCodeHash:=undefined}" != "zzz" ]; then
  36. echo "KS_kServerCodeHash has unexpected value: '${KS_kServerCodeHash}'"
  37. result=1
  38. fi
  39. if [ "${KS_kServerCodeSize:=undefined}" != "2" ]; then
  40. echo "KS_kServerCodeSize has unexpected value: '${KS_kServerCodeSize}'"
  41. result=1
  42. fi
  43. if [ "${KS_kServerCodebaseURL:=undefined}" != "a://a" ]; then
  44. echo "KS_kServerCodebaseURL has unexpected value: '${KS_kServerCodebaseURL}'"
  45. result=1
  46. fi
  47. if [ "${KS_kServerDisplayVersion:=undefined}" != "1.3.2 (with pudding)" ]; then
  48. echo "KS_kServerDisplayVersion has unexpected value: '${KS_kServerDisplayVersion}'"
  49. result=1
  50. fi
  51. if [ "${KS_kServerLocalizationBundle:=undefined}" != "/Hassel/Hoff" ]; then
  52. echo "KS_kServerLocalizationBundle has unexpected value: '${KS_kServerLocalizationBundle}'"
  53. result=1
  54. fi
  55. if [ "${KS_kServerMoreInfoURLString:=undefined}" != "a://b" ]; then
  56. echo "KS_kServerMoreInfoURLString has unexpected value: '${KS_kServerMoreInfoURLString}'"
  57. result=1
  58. fi
  59. if [ "${KS_kServerProductID:=undefined}" != "com.google.hasselhoff" ]; then
  60. echo "KS_kServerProductID has unexpected value: '${KS_kServerProductID}'"
  61. result=1
  62. fi
  63. if [ "${KS_kServerPromptUser:=undefined}" != "1" ]; then
  64. echo "KS_kServerPromptUser has unexpected value: '${KS_kServerPromptUser}'"
  65. result=1
  66. fi
  67. if [ "${KS_kServerRequireReboot:=undefined}" != "1" ]; then
  68. echo "KS_kServerRequireReboot has unexpected value: '${KS_kServerRequireReboot}'"
  69. result=1
  70. fi