diff options
author | Koundinya Veluri <kouvel@microsoft.com> | 2015-09-18 11:08:28 -0700 |
---|---|---|
committer | Koundinya Veluri <kouvel@microsoft.com> | 2015-09-29 14:18:53 -0700 |
commit | f7f1b9ab91bb183dd180115ee287af74faa7acf9 (patch) | |
tree | e35114f4548fc90c8c9c61bc6f48fa19b700c4a4 /tests/src/managed | |
parent | 795786f0ac0e5ea82f288dfeb5b673845e1ef075 (diff) | |
download | coreclr-f7f1b9ab91bb183dd180115ee287af74faa7acf9.tar.gz coreclr-f7f1b9ab91bb183dd180115ee287af74faa7acf9.tar.bz2 coreclr-f7f1b9ab91bb183dd180115ee287af74faa7acf9.zip |
Improve CoreCLR test runner outside Windows
CoreCLR tests will need to be built on Windows and copied over to a non-Windows machine. Then, coreclr/tests/runtest.sh along
with some switches can be used to run the tests.
Changes:
- Run tests in parallel by default (use --sequential to force sequential mode)
- Update Windows test build to produce the Windows core overlay that includes test dependencies that are not built
- Add a number of switches (see coreclr/tests/runtest.sh for details) to provide locations of:
- The Windows test build
- The CoreCLR native test build
- Either:
- This:
- The core layout (including all of the below)
- Or:
- The CoreCLR build
- mscorlib.dll
- The CoreFX build
- The CoreFX native build
- Using information from above, build or use the core layout, and copy native test binaries to the respective test directories
- Add --testDir to specify an inclusive list of test directories to run
- Add text files to exclude tests:
- coreclr/tests/testsUnsupportedOutsideWindows.txt - Tests that are not supported outside Windows
- coreclr/tests/testsFailingOutsideWindows.txt - Tests that are known to fail outside Windows and are temporarily disabled while they are investigated
- Add --runFailingTestsOnly to run only the tests listed in coreclr/tests/testsFailingOutsideWindows.txt to verify known failures
- Produce xUnit-style output for the CI, output goes into <Windows test build folder>/coreclrtests.xml
Diffstat (limited to 'tests/src/managed')
-rw-r--r-- | tests/src/managed/Compilation/Compilation.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/managed/Compilation/Compilation.cs b/tests/src/managed/Compilation/Compilation.cs index 0a0037af29..9b3ebcdd90 100644 --- a/tests/src/managed/Compilation/Compilation.cs +++ b/tests/src/managed/Compilation/Compilation.cs @@ -14,11 +14,11 @@ class Program static int Main(string[] args) { Console.WriteLine("Starting the test"); - string codeFile = @"helloWorld.cs"; + string codeFile = @"HelloWorld.cs"; var sourceTree = new List<SyntaxTree>(){SyntaxFactory.ParseSyntaxTree(File.ReadAllText(codeFile))}; - string mscorlibFile = Path.Combine(Environment.GetEnvironmentVariable("Core_root"), "mscorlib.dll"); + string mscorlibFile = Path.Combine(Environment.GetEnvironmentVariable("CORE_ROOT"), "mscorlib.dll"); Console.WriteLine("Using reference to: {0}", mscorlibFile); var reference = new List<MetadataReference>(){ MetadataReference.CreateFromFile(mscorlibFile)}; |