Permalink
Browse files

Fix Utils

  • Loading branch information...
1 parent 6da9cb0 commit 732d56ad775505af55c0afbb318fac30362a2a70 @Merllab Merllab committed Sep 15, 2010
Showing with 41,154 additions and 158 deletions.
  1. +3 −3 Util/GPPG/Source/GPPG.sln
  2. +10 −63 Util/GPPG/Source/ParserGenerator/GPPG.csproj
  3. BIN Util/IronPython/IronMath.dll
  4. BIN Util/IronPython/IronPython.Modules.dll
  5. BIN Util/IronPython/IronPython.dll
  6. +25 −0 Util/IronPython/Lib/__future__.py
  7. +91 −0 Util/IronPython/Lib/iptest/__init__.py
  8. +622 −0 Util/IronPython/Lib/iptest/assert_util.py
  9. +700 −0 Util/IronPython/Lib/iptest/cominterop_util.py
  10. +203 −0 Util/IronPython/Lib/iptest/console_util.py
  11. +203 −0 Util/IronPython/Lib/iptest/file_util.py
  12. +34 −0 Util/IronPython/Lib/iptest/misc_util.py
  13. +147 −0 Util/IronPython/Lib/iptest/process_util.py
  14. +128 −0 Util/IronPython/Lib/iptest/runner.py
  15. +109 −0 Util/IronPython/Lib/iptest/test_env.py
  16. +87 −0 Util/IronPython/Lib/iptest/type_util.py
  17. +48 −0 Util/IronPython/Lib/iptest/util.py
  18. +72 −0 Util/IronPython/Lib/iptest/warning_util.py
  19. +31 −0 Util/IronPython/Lib/runpy.py
  20. +0 −17 Util/IronPython/Lib/site.py
  21. BIN Util/IronPython/Microsoft.Dynamic.dll
  22. BIN Util/IronPython/Microsoft.Scripting.Debugging.dll
  23. BIN Util/IronPython/Microsoft.Scripting.dll
  24. BIN Util/IronPython/ipy.exe
  25. BIN Util/IronPython/ipy64.exe
  26. BIN Util/IronPython/ipyw.exe
  27. +214 −0 Util/IronRuby/Apache.html
  28. +3 −3 Util/IronRuby/lib/IronRuby/IronRuby.rb
  29. +3 −3 Util/IronRuby/lib/IronRuby/PresentationCore.rb
  30. +3 −3 Util/IronRuby/lib/IronRuby/PresentationFramework.rb
  31. +3 −3 Util/IronRuby/lib/IronRuby/System.Data.rb
  32. +3 −3 Util/IronRuby/lib/IronRuby/System.Drawing.rb
  33. +3 −3 Util/IronRuby/lib/IronRuby/bigdecimal.rb
  34. +3 −3 Util/IronRuby/lib/IronRuby/digest.rb
  35. +3 −3 Util/IronRuby/lib/IronRuby/digest/md5.rb
  36. +3 −3 Util/IronRuby/lib/IronRuby/digest/sha1.rb
  37. +3 −3 Util/IronRuby/lib/IronRuby/enumerator.rb
  38. +3 −3 Util/IronRuby/lib/IronRuby/etc.rb
  39. +3 −3 Util/IronRuby/lib/IronRuby/fcntl.rb
  40. +3 −3 Util/IronRuby/lib/IronRuby/iconv.rb
  41. +3 −3 Util/IronRuby/lib/IronRuby/nkf.rb
  42. +3 −3 Util/IronRuby/lib/IronRuby/openssl.rb
  43. +3 −3 Util/IronRuby/lib/IronRuby/parse_tree.rb
  44. +3 −3 Util/IronRuby/lib/IronRuby/prime.rb
  45. +3 −3 Util/IronRuby/lib/IronRuby/rbconfig.rb
  46. +3 −3 Util/IronRuby/lib/IronRuby/socket.rb
  47. +3 −3 Util/IronRuby/lib/IronRuby/stringio.rb
  48. +3 −3 Util/IronRuby/lib/IronRuby/strscan.rb
  49. +3 −3 Util/IronRuby/lib/IronRuby/syslog.rb
  50. +3 −3 Util/IronRuby/lib/IronRuby/thread.rb
  51. +3 −3 Util/IronRuby/lib/IronRuby/yaml.rb
  52. +3 −3 Util/IronRuby/lib/IronRuby/zlib.rb
  53. +8 −0 Util/IronRuby/lib/ruby/1.8/rexml/undefinednamespaceexception.rb
  54. +831 −0 Util/IronRuby/lib/ruby/1.8/win32/registry.rb
  55. +366 −0 Util/IronRuby/lib/ruby/1.8/win32/resolv.rb
  56. +16 −0 Util/IronRuby/lib/ruby/1.8/win32ole/property.rb
  57. BIN Util/Wix35/BlankFile.zip
  58. +94 −0 Util/Wix35/CPL.TXT
  59. BIN Util/Wix35/CustomActionCPP_2005.zip
  60. BIN Util/Wix35/CustomActionCPP_2008.zip
  61. BIN Util/Wix35/IncludeFile.ico
  62. BIN Util/Wix35/IncludeFile.zip
  63. BIN Util/Wix35/LocalizationFile.ico
  64. BIN Util/Wix35/LocalizationFile.zip
  65. BIN Util/Wix35/LuxTasks.dll
  66. BIN Util/Wix35/Microsoft.Deployment.WindowsInstaller.dll
  67. BIN Util/Wix35/Microsoft.Tools.WindowsInstallerXml.NAntTasks.dll
  68. BIN Util/Wix35/ProductFile.ico
  69. BIN Util/Wix35/ProjectFile.ico
  70. BIN Util/Wix35/SetupBuilder.dll
  71. BIN Util/Wix35/TextFile.zip
  72. BIN Util/Wix35/WixComPlusExtension.dll
  73. BIN Util/Wix35/WixCop.exe
  74. BIN Util/Wix35/WixDifxAppExtension.dll
  75. BIN Util/Wix35/WixDirectXExtension.dll
  76. BIN Util/Wix35/WixFirewallExtension.dll
  77. BIN Util/Wix35/WixGamingExtension.dll
  78. BIN Util/Wix35/WixIIsExtension.dll
  79. BIN Util/Wix35/WixLibrary.zip
  80. BIN Util/Wix35/WixLibraryFile.ico
  81. BIN Util/Wix35/WixLuxExtension.dll
  82. BIN Util/Wix35/WixMergeModule.zip
  83. BIN Util/Wix35/WixMsmqExtension.dll
  84. BIN Util/Wix35/WixNetFxExtension.dll
  85. BIN Util/Wix35/WixPSExtension.dll
  86. BIN Util/Wix35/WixProject.zip
  87. BIN Util/Wix35/WixSqlExtension.dll
  88. BIN Util/Wix35/WixTasks.dll
  89. BIN Util/Wix35/WixUIExtension.dll
  90. BIN Util/Wix35/WixUtilExtension.dll
  91. BIN Util/Wix35/WixVSExtension.dll
  92. 0 Util/Wix35/candle
  93. BIN Util/Wix35/candle.exe
  94. +10 −0 Util/Wix35/candle.exe.config
  95. BIN Util/Wix35/darice.cub
  96. BIN Util/Wix35/dark.exe
  97. +13 −0 Util/Wix35/dark.exe.config
  98. BIN Util/Wix35/difxapp_ia64.wixlib
  99. BIN Util/Wix35/difxapp_x64.wixlib
  100. BIN Util/Wix35/difxapp_x86.wixlib
  101. BIN Util/Wix35/doc/DTF.chm
  102. BIN Util/Wix35/doc/DTFAPI.chm
  103. +115 −0 Util/Wix35/doc/difxapp.xsd
  104. +193 −0 Util/Wix35/doc/firewall.xsd
  105. +134 −0 Util/Wix35/doc/gaming.xsd
  106. +1,091 −0 Util/Wix35/doc/iis.xsd
  107. +228 −0 Util/Wix35/doc/lux.xsd
  108. +128 −0 Util/Wix35/doc/msmq.xsd
  109. +207 −0 Util/Wix35/doc/netfx.xsd
  110. +208 −0 Util/Wix35/doc/ps.xsd
  111. +349 −0 Util/Wix35/doc/sql.xsd
  112. +1,441 −0 Util/Wix35/doc/util.xsd
  113. +209 −0 Util/Wix35/doc/vs.xsd
  114. BIN Util/Wix35/doc/wix.chm
  115. +10,793 −0 Util/Wix35/doc/wix.xsd
  116. +82 −0 Util/Wix35/doc/wixloc.xsd
  117. BIN Util/Wix35/heat.exe
  118. +13 −0 Util/Wix35/heat.exe.config
  119. BIN Util/Wix35/insignia.exe
  120. +10 −0 Util/Wix35/insignia.exe.config
  121. BIN Util/Wix35/light.exe
  122. +10 −0 Util/Wix35/light.exe.config
  123. BIN Util/Wix35/lit.exe
  124. +10 −0 Util/Wix35/lit.exe.config
  125. BIN Util/Wix35/lux.exe
  126. +12 −0 Util/Wix35/lux.exe.config
  127. +115 −0 Util/Wix35/lux.targets
  128. BIN Util/Wix35/melt.exe
  129. +12 −0 Util/Wix35/melt.exe.config
  130. BIN Util/Wix35/mergemod.cub
  131. BIN Util/Wix35/mergemod.dll
  132. BIN Util/Wix35/mspatchc.dll
  133. BIN Util/Wix35/nit.exe
  134. +9 −0 Util/Wix35/nit.exe.config
  135. BIN Util/Wix35/pyro.exe
  136. +10 −0 Util/Wix35/pyro.exe.config
  137. BIN Util/Wix35/sconce2005.dll
  138. BIN Util/Wix35/sconce2008.dll
  139. BIN Util/Wix35/sconce2010.dll
  140. BIN Util/Wix35/sdk/DocCompiler.exe
  141. BIN Util/Wix35/sdk/MakeSfxCA.exe
  142. BIN Util/Wix35/sdk/Microsoft.Deployment.Compression.Cab.dll
  143. +465 −0 Util/Wix35/sdk/Microsoft.Deployment.Compression.Cab.xml
  144. BIN Util/Wix35/sdk/Microsoft.Deployment.Compression.Zip.dll
  145. +514 −0 Util/Wix35/sdk/Microsoft.Deployment.Compression.Zip.xml
  146. BIN Util/Wix35/sdk/Microsoft.Deployment.Compression.dll
  147. +1,936 −0 Util/Wix35/sdk/Microsoft.Deployment.Compression.xml
  148. BIN Util/Wix35/sdk/Microsoft.Deployment.Resources.dll
  149. +443 −0 Util/Wix35/sdk/Microsoft.Deployment.Resources.xml
  150. BIN Util/Wix35/sdk/Microsoft.Deployment.WindowsInstaller.Linq.dll
  151. +434 −0 Util/Wix35/sdk/Microsoft.Deployment.WindowsInstaller.Linq.xml
  152. BIN Util/Wix35/sdk/Microsoft.Deployment.WindowsInstaller.Package.dll
  153. +679 −0 Util/Wix35/sdk/Microsoft.Deployment.WindowsInstaller.Package.xml
  154. BIN Util/Wix35/sdk/Microsoft.Deployment.WindowsInstaller.dll
  155. +7,226 −0 Util/Wix35/sdk/Microsoft.Deployment.WindowsInstaller.xml
  156. BIN Util/Wix35/sdk/MsgGen.exe
  157. BIN Util/Wix35/sdk/XsdGen.exe
  158. BIN Util/Wix35/sdk/XsdStitch.exe
  159. +186 −0 Util/Wix35/sdk/inc/IBurnCore.h
  160. +236 −0 Util/Wix35/sdk/inc/IBurnUserExperience.h
  161. +144 −0 Util/Wix35/sdk/inc/aclutil.h
  162. +97 −0 Util/Wix35/sdk/inc/apuputil.h
  163. +163 −0 Util/Wix35/sdk/inc/atomutil.h
  164. +86 −0 Util/Wix35/sdk/inc/buffutil.h
  165. +68 −0 Util/Wix35/sdk/inc/cabcutil.h
  166. +71 −0 Util/Wix35/sdk/inc/cabutil.h
  167. +71 −0 Util/Wix35/sdk/inc/certutil.h
  168. +115 −0 Util/Wix35/sdk/inc/conutil.h
  169. +47 −0 Util/Wix35/sdk/inc/dictutil.h
  170. +58 −0 Util/Wix35/sdk/inc/dirutil.h
  171. +213 −0 Util/Wix35/sdk/inc/dutil.h
  172. +176 −0 Util/Wix35/sdk/inc/fileutil.h
  173. +46 −0 Util/Wix35/sdk/inc/gdiputil.h
  174. +54 −0 Util/Wix35/sdk/inc/inetutil.h
  175. +94 −0 Util/Wix35/sdk/inc/jsonutil.h
  176. +53 −0 Util/Wix35/sdk/inc/locutil.h
  177. +182 −0 Util/Wix35/sdk/inc/logutil.h
  178. +58 −0 Util/Wix35/sdk/inc/memutil.h
  179. +67 −0 Util/Wix35/sdk/inc/metautil.h
  180. +48 −0 Util/Wix35/sdk/inc/osutil.h
  181. +90 −0 Util/Wix35/sdk/inc/pathutil.h
  182. +39 −0 Util/Wix35/sdk/inc/perfutil.h
  183. +54 −0 Util/Wix35/sdk/inc/procutil.h
  184. +60 −0 Util/Wix35/sdk/inc/resrutil.h
  185. +48 −0 Util/Wix35/sdk/inc/reswutil.h
  186. +69 −0 Util/Wix35/sdk/inc/rexutil.h
  187. +106 −0 Util/Wix35/sdk/inc/rssutil.h
  188. +58 −0 Util/Wix35/sdk/inc/shelutil.h
  189. +151 −0 Util/Wix35/sdk/inc/sqlutil.h
  190. +243 −0 Util/Wix35/sdk/inc/strutil.h
  191. +191 −0 Util/Wix35/sdk/inc/thmutil.h
  192. +33 −0 Util/Wix35/sdk/inc/timeutil.h
  193. +93 −0 Util/Wix35/sdk/inc/uriutil.h
  194. +47 −0 Util/Wix35/sdk/inc/userutil.h
  195. +373 −0 Util/Wix35/sdk/inc/wcautil.h
  196. +35 −0 Util/Wix35/sdk/inc/wcawow64.h
  197. +146 −0 Util/Wix35/sdk/inc/wcawrapquery.h
  198. +50 −0 Util/Wix35/sdk/inc/wiutil.h
  199. +183 −0 Util/Wix35/sdk/inc/xmlutil.h
  200. BIN Util/Wix35/sdk/lib/dutil.lib
  201. BIN Util/Wix35/sdk/lib/dutil_2005.lib
  202. BIN Util/Wix35/sdk/lib/dutil_2005_ia64.lib
  203. BIN Util/Wix35/sdk/lib/dutil_2005_x64.lib
  204. BIN Util/Wix35/sdk/lib/dutil_ia64.lib
  205. BIN Util/Wix35/sdk/lib/dutil_x64.lib
  206. BIN Util/Wix35/sdk/lib/wcautil.lib
  207. BIN Util/Wix35/sdk/lib/wcautil_2005.lib
  208. BIN Util/Wix35/sdk/lib/wcautil_2005_ia64.lib
  209. BIN Util/Wix35/sdk/lib/wcautil_2005_x64.lib
  210. BIN Util/Wix35/sdk/lib/wcautil_ia64.lib
  211. BIN Util/Wix35/sdk/lib/wcautil_x64.lib
  212. +188 −0 Util/Wix35/sdk/wix.ca.targets
  213. BIN Util/Wix35/sdk/x64/sfxca.dll
  214. BIN Util/Wix35/sdk/x86/sfxca.dll
  215. BIN Util/Wix35/setup.exe
  216. BIN Util/Wix35/setupbld.exe
  217. BIN Util/Wix35/smoke.exe
  218. +10 −0 Util/Wix35/smoke.exe.config
  219. BIN Util/Wix35/torch.exe
  220. +10 −0 Util/Wix35/torch.exe.config
  221. BIN Util/Wix35/votive2005.dll
  222. BIN Util/Wix35/votive2008.dll
  223. BIN Util/Wix35/votive2010.dll
  224. BIN Util/Wix35/wconsole.dll
  225. BIN Util/Wix35/winterop.dll
  226. BIN Util/Wix35/wix.dll
  227. +2,642 −0 Util/Wix35/wix.targets
  228. +2,686 −0 Util/Wix35/wix2010.targets
  229. BIN Util/Wix35/wui.dll
@@ -1,13 +1,13 @@

-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GPPG", "ParserGenerator\GPPG.csproj", "{827282D8-3E75-4545-A5E4-2406F0D3E184}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
- SccTeamFoundationServer = http://tkbgitvstfat01:8080/
+ SccTeamFoundationServer = http://vstfdevdiv:8080/devdiv
SccLocalPath0 = .
SccProjectUniqueName1 = ParserGenerator\\GPPG.csproj
SccProjectName1 = ParserGenerator
@@ -1,110 +1,57 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
- <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{827282D8-3E75-4545-A5E4-2406F0D3E184}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ApplicationIcon>
- </ApplicationIcon>
- <AssemblyKeyContainerName>
- </AssemblyKeyContainerName>
<AssemblyName>gppg</AssemblyName>
- <DefaultClientScript>JScript</DefaultClientScript>
- <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
- <DefaultTargetSchema>IE50</DefaultTargetSchema>
- <DelaySign>false</DelaySign>
<OutputType>Exe</OutputType>
<RootNamespace>gppg</RootNamespace>
- <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
- <StartupObject>
- </StartupObject>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
- <OldToolsVersion>3.5</OldToolsVersion>
+ <BaseAddress>285212672</BaseAddress>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
<Optimize>false</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>..\..\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
<DebugSymbols>false</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
<Optimize>true</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ </ItemGroup>
<ItemGroup>
<Compile Include="SemanticAction.cs" />
<Compile Include="CodeGenerator.cs" />
<Compile Include="Grammar.cs" />
<Compile Include="LALRGenerator.cs" />
<Compile Include="LR0Generator.cs" />
- <Compile Include="Parser.cs">
- <SubType>Code</SubType>
- </Compile>
+ <Compile Include="Parser.cs" />
<Compile Include="Precedence.cs" />
<Compile Include="Scanner.cs" />
<Compile Include="Main.cs" />
<Compile Include="ParserAction.cs" />
- <Compile Include="Production.cs">
- <SubType>Code</SubType>
- </Compile>
+ <Compile Include="Production.cs" />
<Compile Include="ProductionItem.cs" />
<Compile Include="Set.cs" />
<Compile Include="State.cs" />
- <Compile Include="Symbol.cs">
- <SubType>Code</SubType>
- </Compile>
+ <Compile Include="Symbol.cs" />
<Compile Include="Transition.cs" />
</ItemGroup>
- <ItemGroup>
- <Reference Include="System" />
- </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- <PostBuildEvent>
- </PostBuildEvent>
- </PropertyGroup>
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,25 @@
+#####################################################################################
+#
+# Copyright (c) Microsoft Corporation. All rights reserved.
+#
+# This source code is subject to terms and conditions of the Microsoft Public License. A
+# copy of the license can be found in the License.html file at the root of this distribution. If
+# you cannot locate the Microsoft Public License, please send an email to
+# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+# by the terms of the Microsoft Public License.
+#
+# You must not remove this notice, or any other, from this software.
+#
+#
+#####################################################################################
+
+all_feature_names = ['nested_scopes', 'generators', 'division',
+ 'absolute_import', 'with_statement', 'print_function',
+ 'unicode_literals']
+
+division=1
+with_statement=1
+generators=1
+absolute_import=1
+print_function=1
+unicode_literals=1
@@ -0,0 +1,91 @@
+#####################################################################################
+#
+# Copyright (c) Microsoft Corporation. All rights reserved.
+#
+# This source code is subject to terms and conditions of the Microsoft Public License. A
+# copy of the license can be found in the License.html file at the root of this distribution. If
+# you cannot locate the Microsoft Public License, please send an email to
+# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+# by the terms of the Microsoft Public License.
+#
+# You must not remove this notice, or any other, from this software.
+#
+#
+#####################################################################################
+
+##IMPORTS######################################################################
+import nt
+import sys
+
+##LOGGING######################################################################
+from iptest.util import get_env_var
+
+try:
+ import logging as l
+
+ __log_file = get_env_var("TMP") + "\\iptest.log"
+ l.basicConfig(level=l.DEBUG,
+ format="%(asctime)s %(levelname)-8s %(message)s",
+ filename=__log_file,
+ filemode="w+")
+ __temp_handler = l.StreamHandler(sys.stdout)
+ __temp_formatter = l.Formatter("%(asctime)s %(levelname)-8s %(message)s")
+ __temp_handler.setFormatter(__temp_formatter)
+ __temp_handler.setLevel(l.INFO)
+ l.getLogger().addHandler(__temp_handler)
+
+ #Hack needed because IP doesn't implement sys._getframe by default
+ if sys.platform!="win32":
+ l.getLogger().findCaller = lambda: ("Unknown", 0, "Unknown")
+except:
+ #Fake the implementation of logging module under Silverlight
+ class __L(object):
+ def debug(self, stuff):
+ pass
+ def info(self, stuff):
+ print "INFO -", stuff
+ l = __L()
+
+
+##COMMAND-LINE OPTIONS#########################################################
+class options:
+ #Run test cases.
+ RUN_TESTS=True
+
+ #Indicates whether we should generate a test plan for IronPython from pydoc
+ #comments.
+ GEN_TEST_PLAN=False
+
+#--help
+if "--help" in sys.argv:
+ print """iptest is used to run IronPython tests.
+
+Notes:
+- ???
+
+Typical usage would be:
+ ipy harness.py interop.net --plan
+"""
+ sys.exit(0)
+
+#--no_testing
+if "--no_testing" in sys.argv:
+ options.RUN_TESTS = False
+ sys.argv.remove("--no_testing")
+
+#--plan
+if "--plan" in sys.argv:
+ options.GEN_TEST_PLAN = True
+ sys.argv.remove("--plan")
+
+#Do a little post processing
+if options.GEN_TEST_PLAN:
+ import pydoc
+
+#Dump the flags
+l.debug("sys.argv after processing: %s" % str(sys.argv))
+l.debug("Command-line options:")
+for x in [temp for temp in dir(options) if not temp.startswith("__")]:
+ y = eval("options." + x)
+ l.debug("\t%s = %s" % (x, y))
+l.debug("")
Oops, something went wrong.

0 comments on commit 732d56a

Please sign in to comment.