summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2015-07-07Improve the build throughputMatt Mitchell2-4/+4
Especially with the builds of the tests, the diag logging significantly reduces TP in the build and seems to reduce parallelism a bit too. Change this to normal.
2015-07-05Document Visual Studio 2015 supportDick van den Brink2-3/+3
2015-06-30Speed up package resotre of JIT Test buildMatt Ellis2743-10526/+8169
We spend a fair amount of time (six wall clock minutes on my machine) doing package restore for the JIT tests. This is because each project has its own packages.config file, so during the build we call nuget restore for each project. There are only four unique packages.config files for all these tests, so this change moves them to tests/src/JIT/config and updates the project files to consume them from there. This means during the build the `EnsureDependencies` target does not need to invoke nuget restore as often and the build is much faster as a result.
2015-06-24Refactor JIT test projects.Pat Gavlin4423-64220/+130719
This change replaces the template projects used for the ported JIT tests with a single project file per test. This refactoring is intended to clarify exactly which tests from the legacy testbed have been ported and what their dependencies are; this should make later reasoning about these tests more straightforward. This change also disables a number of innocuous warnings in the ported tests for hygenic purposes.
2015-06-17Merge pull request #1107 from krk/masterAndy Ayers1-2/+17
ObjectDisposedException handled in test wrapper.
2015-06-10Import the first batch of IL tests.Pat Gavlin3819-7/+796909
This set of tests is comprised of IL tests that: - only reference APIs in .Net Core's System.Runtime, System.Runtime.Extensions, and System.Threading contracts - compile to a single executable, - and expect no command line arguments at runtime.
2015-06-10Merge pull request #1120 from libengu/RestOfRegressionBengu Li1257-0/+88239
Add all remaining JIT/Regression test cases for JIT
2015-06-09Add support for IL tests.Pat Gavlin2-1/+38
This change is comprised of two parts: - A new property in dir.targets, ProjectLanguage, that allows test projects to specify the language in which they are written. If unset, this property is inferred from the extension, defaulting to C# if all else fails. The only lanugages currently supported are C# and IL, but it should be easy to support others (e.g. Visual Basic) if necessary. - A copy of IL.targets from Microsoft.DotNet.BuildTools. This should be removed once CoreCLR has been moved to a version of the build tools package that contains IL.targets; this work is tracked by https://github.com/dotnet/coreclr/issues/1122. This work is necessary to support a large number of JIT tests that are written in IL and have yet to be ported.
2015-06-09Add all remaining JIT/Regression test cases for JITBengu Li1257-0/+88239
Add all remaining JIT/Regression test cases for JIT. All under CLR-x86-JIT. Related proj, config files added. AllTestProjects.sln update delayed for a batch adding. Passed build, buildtest, runtest.
2015-06-08Add JIT/Regression/CLR-x86-JIT/V1-M09 test cases for JITBengu Li120-0/+3381
Add JIT/Regression/CLR-x86-JIT/V1-M09 test cases for JIT. Related proj, config files added. AllTestProjects.sln update delayed for a batch adding. Passed build, buildtest, runtest.
2015-06-06ObjectDisposedException handled in test wrapper.krk1-2/+17
Process output and error event handlers are being called after a timeout has expired but the process has not exited. * ObjectDisposedException is handled around AutoResetEvent.Set() method calls in CoreclrTestWrapperLib class. Fix #1039
2015-06-03Merge pull request #1088 from libengu/AddDev11TestBengu Li101-0/+3105
Add multiple smaller test directories under JIT/Regression
2015-06-03Add multiple smaller test directories under JIT/RegressionBengu Li101-0/+3105
Add all other test directories under JIT/Regression except for CLR-x86-JIT which is a big one. Related proj, config files added. AllTestProjects.sln is updated. Passed build, buildtest, runtest.
2015-06-01Re-work wiki as Repo docsRichard Lander2-4/+4
2015-05-30Fix a bug in implementation of ICastable when CoreCLR throws exception on IL ↵Eugene Zemtsov1-0/+5
isinst if IsInstanceOfInterface() sets the exception out param. Correct behavior: If false is returned when IsInstanceOfInterface() called as part of a castclass then the usual InvalidCastException will be thrown unless an alternate exception is assigned to the castError output parameter. This parameter is ignored on successful casts or during the evaluation of an isinst (which returns null rather than throwing on error).
2015-05-28Update AllTestProjects.sln for Regression testsBengu Li1-122/+722
Add all Regression\VS-ia64-JIT projects to AllTestProjects.sln.
2015-05-28Add new JIT tests to the test solution file.Pat Gavlin1-36/+1530
2015-05-27Merge pull request #1064 from pgavlin/JITjit64Pat Gavlin151-0/+63444
Import JIT tests.
2015-05-26Import JIT tests.Pat Gavlin151-0/+63444
This imports the remainder of the tests under JIT/jit64 that are able to target CoreCLR.
2015-05-26Add Regression/VS-ia64-JIT test cases for JIT.Bengu Li182-0/+39191
Add Regression/VS-ia64-JIT test cases for JIT. Related proj, config files added. AllTestProjects.sln update delayed for a batch adding. Passed build, buildtest, runtest.
2015-05-22Add all JIT/Generics test casesBengu Li143-3/+21832
Add all remaining JIT/Generics test cases for JIT. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest.
2015-05-21Import more JIT tests.Pat Gavlin397-8/+41313
This imports the remainder of the tests under JIT\Methodical that are able to target CoreCLR. This also contains build fixes for tests under JIT\Directed\coverage\oldtests that were mangled during a previous import.
2015-05-21Merge pull request #1028 from mmitche/fix-cmd-exit-codesPat Gavlin8-2830/+35
Fix cmd exit codes
2015-05-21Disable tests failing at runtime and remove tests failing to compile.Matt Mitchell7-2796/+15
See #1036, #1037 and #1038
2015-05-20Fix exit codes in build/test scriptsMatt Mitchell2-34/+20
The use of goto :eof in numerous places in the build and test scripts is problematic. If preceded by an echo or other command, it will overwrite the exit code and the script may return incorrectly. This was happening for buildtest, masking a recent ycompilation error in one of the tests. Change all of the goto :eof's to exit /b.
2015-05-20Add simple JIT test for typed references.Andy Ayers5-0/+95
This compiles directly against mscorlib since TypedReference is not part of any contract assembly.
2015-05-19Import JIT tests.Pat Gavlin79-0/+8937
This brings over most of the tests from `JIT/Directed` that can target CoreCLR.
2015-05-08Add Methodical/NaN test cases for JIT.Bengu Li17-0/+11419
Add Methodical/NaN test cases for JIT. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest. Also added Generic/Exceptions, Methodical/MDArray/DataTypes, Directed/StructPromote tests to AllTestProject.sln.
2015-05-01Only clean previous output for the selected configuration.Tanner Gooding2-4/+5
This modifies the `build.cmd`, `build.sh`, and `buildtest.cmd` to only remove previous output (binaries, intermediates, and logs) for the selected configuration when the `clean` argument is specified. This also modifies `runtest.cmd` to output log files in the same format as `build.cmd`, `build.sh`, and `buildtest.cmd` do currently.
2015-04-30Add a test that triggers stack probing.Andy Ayers2-0/+74
This test exercises the JIT's ability to probe the stack on windows for dynamic allocation. It uses multiple threads and a two-stage allocation pattern to try and hit various boundary cases.
2015-04-29Merge pull request #831 from stephentoub/build_mscorlib_2015Stephen Toub1-1/+5
Enable building linuxmscorlib / osxmscorlib with VS2015
2015-04-27Merge pull request #839 from libengu/TestGenericExceptionsBengu Li16-0/+2110
Add Generic/Exceptions test cases for JIT
2015-04-27Merge pull request #837 from libengu/TestMDArrayBengu Li17-0/+14197
Add MultiDimensional Array test cases for JIT
2015-04-27Add Generic/Exceptions test cases for JITBengu Li16-0/+2110
Add Generic/Exceptions test cases for JIT. Related proj, config files added. Solution file update is delayed to later PRs for parallel working. Passed build, buildtest, runtest.
2015-04-27Add MultiDimensional Array test cases for JITBengu Li17-0/+14197
Add MultiDimensional Array test cases for JIT. Related proj, config files added. Solution file update is delayed to later PRs for parallel working. Passed build, buildtest, runtest.
2015-04-27Test case for store (no-GC) value type to static fieldKyungwoo Lee1-0/+40
2015-04-27Enable building linuxmscorlib / osxmscorlib with VS2015Stephen Toub1-1/+5
Trying to do "build linuxmscorlib vs2015" was resulting in an error due to the script trying to read %_msbuildexe% when _msbuildexe hadn't been defined. When that was addressed, mscorlib was then also failing to compile due to the csc compiler not understanding a flag that was being set in the response file based on UseRoslynCompiler not being set. This commit addresses both issues.
2015-04-26Allow building with VS2015 installedDick van den Brink2-13/+33
Previous it was required to have VS2013 but now VS2015 can also be used. The default is still 2013 though. On a machine with both version installed it is possible to force VS2013/VS2015 with a parameter. Note: Still some work has to be done to make compilation successfull on VS2015.
2015-04-24Implement a runtest exclusion mechanism for individual testsBengu Li2-7/+15
Existing runtest.cmd and runtest.proj does not support excluding individual tests from running thus a JIT testing that wants to do so has to hard delete the built tests which caused a bunch of potential issue and developer inconvinience. This change implements a solution that developer can specify excluded tests through a msbuild .targets file with ItemGroup ExcludeList. Existing runtest builds XunitWrapper.dll for each top level test directory and run the tests at the granularity of XunitWrapper.dll level. The implmentaiton controls how many test cases are included when XunitWrapper.dll is built. No more hard deletion. Passed tests with and without exclusion.
2015-04-23Merge pull request #786 from libengu/TestStructPromoteBengu Li16-0/+627
Add Directed/StructPromote test cases for JIT
2015-04-22Add Directed/StructPromote test cases for JITBengu Li16-0/+627
Add Directed/StructPromote test cases for JIT. Related proj, config files added. Solution file update is delayed to later PRs for parallel working. Passed build, buildtest, runtest.
2015-04-22Add Generics/Fields test cases for JITBengu Li17-0/+1214
Add Generics/Fields test cases for JIT. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest.
2015-04-22Add Inline test cases for JITBengu Li44-0/+5707
Add inlining optimizaiton test cases for JIT. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest.
2015-04-21Add Generics/Arrays test cases for JITBengu Li46-0/+3956
Add test cases in directory JIT/Generics/Arrays. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest.
2015-04-21Add test cases in directory Directed/cmovBengu Li21-0/+268602
Add test cases in directory Directed/cmov. Logical operator tests where many of the operations emit cmov instruciton on x86\x64. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest.
2015-04-20Add CSharp Base/Peer Constructor test casesBengu Li23-0/+875
Add CSharp Base/Peer Constructor test cases. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest.
2015-04-17Add JIT CSE testsBengu Li30-0/+227182
Add JIT CSE (common sub-expression elimination) optimization tests. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest. Code went through Microsoft internal process to meet open-source requirements.
2015-04-10Add JIT GC testsBengu Li92-12/+7907
Selected working JIT GC test cases from old test bed before ToF for porting into CoreCLR. Related proj, config, and sln files added and updated. Passed build, buildtest, runtest. Cleaned up the source code. Updated comments to remove internal information such as reference to internal bug numbers etc, removed some not useful comment. Code is re-formatted for consistent style. Copyright added. Scrub tool SSS ran. Pragma warning about parenthesis ignored.
2015-04-01Merge branch 'master' into usage-exit-codeMatt Mitchell4-13/+13
Conflicts: build.cmd
2015-04-01Displaying usage message should cause build/test scripts to exit with ↵Matt Mitchell2-2/+2
non-zero code