Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

335 lines
13 KiB

  1. #
  2. # created: 5/4/99, a-jbilas
  3. # modified:
  4. #
  5. if (!$__SPGBUILDPM ) { use spg::build; }
  6. use Win32::OLE;
  7. # include files here that need to be deleted after a BVT is run (so that we can ensure a 'clean' BVT)
  8. # perl doesn't hash lists so we have to fake it with space delimited string lists ('.' is string concat op)
  9. # use split(/ +/, %hAllowedBVT{elem}) to get a real list
  10. # these file locations are dependent upon the language or buildtype of the BVT and must thus be run after
  11. # initializing variables holding those values (which is why its wrapped in a function)
  12. # BE CAREFUL TO FOLLOW THE SYNTAX WHEN UPDATING!
  13. sub SetBVTDependentVars
  14. {
  15. %hStandardBVTs =
  16. (
  17. "TTS" => \%hTTSBVT,
  18. "SR" => \%hSRBVT,
  19. "SHSR" => \%hSHSRBVT,
  20. "LEX" => \%hLEXBVT,
  21. "RM" => \%hRMBVT,
  22. "GRAMCOMP" => \%hGRAMCOMPBVT,
  23. "CFGENG" => \%hCFGENGBVT,
  24. "AM" => \%hAMBVT,
  25. "SRENG" => \%hSRENGBVT,
  26. "SDK" => \%hSDKBVT,
  27. );
  28. %hSmokeBVTs =
  29. (
  30. );
  31. # Variables you may assume are defined in SetBVTDependentVars :
  32. # $sBVTBuildNumber : 4 digit build number specifier (passed as string)
  33. # $sBVTType : DEBUG, RELEASE, etc.
  34. # $SAPIROOT : sapi enlistment root path (local)
  35. # $sSLMServerRoot : sapi enlistment root path (server - DO NOT WRITE TO THIS DIR!)
  36. # $sShOS : short OS id (n4/98/w2)
  37. # PROC : processor architecture (alpha, x86, etc.)
  38. # Util Functions :
  39. # GetLatestBuildDir() - Given a directory string, will search the directory for the largest four digit subdirectory
  40. # and return the original directory with the subdirectory appended to it (null if none valid)
  41. # An optional second string argument will require the subdirectory to contain that specified string
  42. # as a subdirectory and append it to the return string (ex: GetLatestBuildDir("nlp3\english", "x86")
  43. # will only return "nlp3\english\1010\x86" if "nlp3\english\1010\x86" exists)
  44. # Component Syntax :
  45. # %hComponentName =
  46. # "Name" => component's name output during BVT
  47. # "Function" => name of function to call to run BVTs (functions should use same vars as above)
  48. # "Languages" => languages supported by component's BVT (space delimited)
  49. # "OutputFiles" => files created during BVT to be deleted upon completion (space delimited)
  50. # *** LOCAL
  51. # "LocalInputFiles" => files copied from $SAPIROOT during LOCAL BVT runs (assume each prepended
  52. # w/ $SAPIROOT var) (space delimited)
  53. # *** NON-LOCAL
  54. # "RemoteSrcDir" => build drop directory prepended to "RemoteInputFiles" during non-LOCAL BVTs
  55. # Also used during official builds as a root dir to store failed BVT diff files
  56. # "RemoteInputFiles" => files copied from "RemoteSrcDir" during non-LOCAL BVT runs (assume each
  57. # prepended w/ "RemoteSrcDir" var) (space delimited) ** files should mirror LocalInputFiles
  58. # *** COMMON
  59. # "SLMInputFiles" => files copied from SLM tree (assume each prepend w/ $SAPIROOT for LOCAL BVTs
  60. # or $sSLMServerRoot for non-LOCAL BVTs) (space delimited)
  61. # (optional fields) :
  62. # "BuildStartYear" => used to determine build number (defaults to 1999 if unspecified)
  63. # "ExternalFiles" => files always copied from a remote location (independent of local/non-local)
  64. my($sTuxSLMInputFiles) = "QA\\SAPI\\source\\tools\\tux\\tux.exe ".
  65. "QA\\SAPI\\source\\tools\\tux\\kato.dll ".
  66. "QA\\SAPI\\source\\tools\\tux\\tooltalk.dll ".
  67. "QA\\SAPI\\source\\tools\\tux\\msvcrtd.dll ";
  68. %hTTSBVT =
  69. (
  70. "Name" => "Text to Speech",
  71. "Function" => "RunBVTTTS",
  72. "OutputFiles" => "Converted.Wav ".
  73. "ttssapibvt.log ",
  74. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\ttsbvt.dll ",
  75. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  76. "RemoteInputFiles" => "debug\\bin\\".PROC."\\ttsbvt.dll ".
  77. "debug\\bin\\".PROC."\\ttseng.dll ",
  78. "SLMInputFiles" => $sTuxSLMInputFiles.
  79. "QA\\SAPI\\Data\\ttstest.wav ".
  80. "QA\\SAPI\\Data\\ttstest.txt ".
  81. "QA\\SAPI\\Data\\ttstest.xml ".
  82. "QA\\SAPI\\Data\\ttsparser.xml ".
  83. "QA\\SAPI\\Data\\TtsEngVoice.vdata ".
  84. "QA\\SAPI\\testsuites\\ttssapibvt.txt ".
  85. "QA\\SAPI\\testsuites\\ttssapibvt.tux ",
  86. );
  87. %hSRBVT =
  88. (
  89. "Name" => "Speech Recognition",
  90. "Function" => "RunBVTSR",
  91. "OutputFiles" => "srsapibvt.log ",
  92. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\srbvt.dll ",
  93. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  94. "RemoteInputFiles" => "debug\\bin\\".PROC."\\srbvt.dll ".
  95. "debug\\bin\\".PROC."\\sol.cfg ".
  96. "debug\\bin\\".PROC."\\srtengine.dll ".
  97. "debug\\bin\\".PROC."\\testengineext.dll ",
  98. "SLMInputFiles" => $sTuxSLMInputFiles.
  99. "QA\\SAPI\\Data\\test2.wav ".
  100. "QA\\SAPI\\Data\\test1.wav ".
  101. "QA\\SAPI\\Data\\sol.xml ".
  102. "QA\\SAPI\\testsuites\\srsapibvt.txt ".
  103. "QA\\SAPI\\testsuites\\srsapibvt.tux ",
  104. );
  105. %hSHSRBVT =
  106. (
  107. "Name" => "Speech Recognition [Shared Reco]",
  108. "Function" => "RunBVTSHSR",
  109. "OutputFiles" => "shsrsapibvt.log ",
  110. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\srbvt.dll ",
  111. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  112. "RemoteInputFiles" => "debug\\bin\\".PROC."\\srbvt.dll ".
  113. "debug\\bin\\".PROC."\\sol.cfg ".
  114. "debug\\bin\\".PROC."\\srtengine.dll ".
  115. "debug\\bin\\".PROC."\\testengineext.dll ",
  116. "SLMInputFiles" => $sTuxSLMInputFiles.
  117. "QA\\SAPI\\Data\\test2.wav ".
  118. "QA\\SAPI\\Data\\test1.wav ".
  119. "QA\\SAPI\\Data\\sol.xml ".
  120. "QA\\SAPI\\testsuites\\shsrsapibvt.txt ".
  121. "QA\\SAPI\\testsuites\\shsrsapibvt.tux ",
  122. );
  123. %hLEXBVT =
  124. (
  125. "Name" => "Lexicon Manager",
  126. "Function" => "RunBVTLex",
  127. "OutputFiles" => "lexsapibvt.log",
  128. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\lexbvt.dll ",
  129. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  130. "RemoteInputFiles" => "debug\\bin\\".PROC."\\lexbvt.dll ",
  131. "SLMInputFiles" => $sTuxSLMInputFiles.
  132. "QA\\SAPI\\testsuites\\lexsapibvt.txt ".
  133. "QA\\SAPI\\testsuites\\lexsapibvt.tux ",
  134. );
  135. %hRMBVT =
  136. (
  137. "Name" => "Resource Manager",
  138. "Function" => "RunBVTRM",
  139. "OutputFiles" => "rmsapibvt.log ".
  140. "Created.Wav ".
  141. "topen.wav ",
  142. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\rmbvt.dll ",
  143. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  144. "RemoteInputFiles" => "debug\\bin\\".PROC."\\rmbvt.dll ".
  145. "debug\\bin\\".PROC."\\ctestisptokenui.dll ",
  146. "SLMInputFiles" => $sTuxSLMInputFiles.
  147. "QA\\SAPI\\testsuites\\rmsapibvt.txt ".
  148. "QA\\SAPI\\testsuites\\rmsapibvt.tux ",
  149. );
  150. %hGRAMCOMPBVT =
  151. (
  152. "Name" => "Grammar Compiler",
  153. "Function" => "RunBVTGramComp",
  154. "OutputFiles" => "error.cfg ". # TODO : do we need to handle these files?
  155. "error.log ".
  156. "gramcompbvt.log ".
  157. "soltestout.cfg ".
  158. "thankyou.h ".
  159. "thankyoutestout.cfg ",
  160. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\gramcompbvt.dll ",
  161. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  162. "RemoteInputFiles" => "debug\\bin\\".PROC."\\gramcompbvt.dll ",
  163. "SLMInputFiles" => $sTuxSLMInputFiles.
  164. "QA\\SAPI\\Data\\sol.xml ".
  165. "QA\\SAPI\\Data\\thankyou.xml ".
  166. "QA\\SAPI\\Data\\error.xml ".
  167. "QA\\SAPI\\Data\\error2.xml ".
  168. "QA\\SAPI\\testsuites\\gramcompbvt.txt ".
  169. "QA\\SAPI\\testsuites\\gramcompbvt.tux ",
  170. );
  171. %hCFGENGBVT =
  172. (
  173. "Name" => "CFG Engine",
  174. "Function" => "RunBVTCFGENG",
  175. "OutputFiles" => "cfgengbvt.log ".
  176. "soltestout.cfg ".
  177. "error.cfg ".
  178. "error.log ".
  179. "thankyoutestout.cfg ".
  180. "thankyoutestout.h ",
  181. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\cfgengbvt.dll ",
  182. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  183. "RemoteInputFiles" => "debug\\bin\\".PROC."\\cfgengbvt.dll ".
  184. "debug\\bin\\".PROC."\\sol1.cfg ".
  185. "debug\\bin\\".PROC."\\sol2.cfg ".
  186. "debug\\bin\\".PROC."\\sol0.cfg ".
  187. "debug\\bin\\".PROC."\\thankyou.cfg ",
  188. "SLMInputFiles" => $sTuxSLMInputFiles.
  189. "QA\\SAPI\\testsuites\\cfgengbvt.txt ".
  190. "QA\\SAPI\\testsuites\\cfgengbvt.tux ",
  191. );
  192. %hAMBVT =
  193. (
  194. "Name" => "Audio Manager",
  195. "Function" => "RunBVTAM",
  196. "OutputFiles" => "amsapibvt.log ".
  197. "Created.Wav ".
  198. "topen.wav ",
  199. "LocalInputFiles" => "QA\\SAPI\\Project\\BVT\\debug\\ambvt.dll ",
  200. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  201. "RemoteInputFiles" => "debug\\bin\\".PROC."\\ambvt.dll ",
  202. "SLMInputFiles" => $sTuxSLMInputFiles.
  203. "QA\\SAPI\\testsuites\\amsapibvt.txt ".
  204. "QA\\SAPI\\testsuites\\amsapibvt.tux ",
  205. );
  206. %hSRENGBVT =
  207. (
  208. "Name" => "Speech Recognition Engine",
  209. "Function" => "RunBVTSRENG",
  210. "OutputFiles" => "srengbvt.log",
  211. "LocalInputFiles" => "QA\\SR\\srengbvt\\debug\\srengbvt.dll ",
  212. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5\\".$sBVTBuildNumber,
  213. "RemoteInputFiles" => "debug\\bin\\".PROC."\\srengbvt.dll",
  214. "SLMInputFiles" => $sTuxSLMInputFiles.
  215. "QA\\SAPI\\testsuites\\srengbvt.tux ",
  216. );
  217. %hSDKBVT =
  218. (
  219. "Name" => "Speech Development Kit",
  220. "Function" => "RunBVTSDK",
  221. "OutputFiles" => "",
  222. "LocalInputFiles" => "",
  223. "RemoteSrcDir" => "\\\\b11nlbuilds\\sapi5",
  224. "RemoteInputFiles" => "",
  225. "SLMInputFiles" => "QA\\tts\\bvt\\bvt_tts.txt ".
  226. "QA\\Sdk\\sdkbvt\\mtrun.exe ".
  227. "QA\\Sdk\\sdkbvt\\mtview.exe ".
  228. "QA\\Sdk\\sdkbvt\\".$sShOS."aoeopen.pc6 ".
  229. "QA\\Sdk\\sdkbvt\\".$sShOS."dictpadopen.pc6 ".
  230. "QA\\Sdk\\sdkbvt\\".$sShOS."grammarcomileropen.pc6 ".
  231. "QA\\Sdk\\sdkbvt\\".$sShOS."recoopen.pc6 ".
  232. "QA\\Sdk\\sdkbvt\\".$sShOS."sapihelpopen.pc6 ".
  233. "QA\\Sdk\\sdkbvt\\".$sShOS."simpleccopen.pc6 ".
  234. "QA\\Sdk\\sdkbvt\\".$sShOS."spcompopen.pc6 ".
  235. "QA\\Sdk\\sdkbvt\\".$sShOS."talkbackopen.pc6 ".
  236. "QA\\Sdk\\sdkbvt\\".$sShOS."ttsappopen.pc6 ".
  237. "QA\\Sdk\\sdkbvt\\sdkbvt.bat ".
  238. "QA\\Sdk\\sdkbvt\\sdkbvt.ini ".
  239. "QA\\Sdk\\sdkbvt\\sdkbvt.pc6 ".
  240. "QA\\tts\\bvt\\speakafile.exe ".
  241. "QA\\Sdk\\sdkbvt\\vt6reg.bat ".
  242. "QA\\Sdk\\sdkbvt\\vtest6.ocx ".
  243. "QA\\Sdk\\sdkbvt\\vtest60.dll ".
  244. "QA\\Sdk\\sdkbvt\\winfo.pc6 ",
  245. )
  246. }
  247. $__SPGBVTFILESPM = 1;
  248. 1;