This repository has been archived by the owner on Sep 14, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
229 changed files
with
41,154 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.