summaryrefslogtreecommitdiff
path: root/tests/buildtest.cmd
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@microsoft.com>2015-12-29 21:31:47 -0800
committerKyungwoo Lee <kyulee@microsoft.com>2015-12-31 10:16:02 -0800
commite7a7d25ee7606aef57579b19f1fc4727e6443f49 (patch)
treec8eb47a10eab715d51c43eeed393d3957c1e283b /tests/buildtest.cmd
parent662851d8c174a5aed05fb71dce633cf21f953a9d (diff)
downloadcoreclr-e7a7d25ee7606aef57579b19f1fc4727e6443f49.tar.gz
coreclr-e7a7d25ee7606aef57579b19f1fc4727e6443f49.tar.bz2
coreclr-e7a7d25ee7606aef57579b19f1fc4727e6443f49.zip
Enable ilasm round trip testing
This enables ilasm round-trip testing for Windows. In order to test il{d}asm on xPlatforms, I injected ilasm round trip before executing the test. This means this step is a part of the runtest not the buildtest -- unlike runtest, currently buildtest is only on Windows. 1. Test batch file is extended to run ildasm followed by ilasm. 2. BuildTest has now an optional flag "ilasmroundtrip" to enable the round-trip tests. Note under this flag, we run both the original binary and the round-trip binary respectively. 3. Test timeout is increased since the round-trip is part of runtime. 4. Did some clean-up on CLRTest.Execute.Batch.targets 5. Bail out the round-trip tests that are built against mscorlib instead of .Net Core. 6. Added /raweh to ildasm due to https://github.com/dotnet/coreclr/issues/2481 7. ilasmroundtrip.targets (~10 tests) are added to enable them by default in a regular test run. Tested with enabling the entire tests (>5K tests) with 'ilasmroundtrip' on, which should be on in a daily or weekly stress mode.
Diffstat (limited to 'tests/buildtest.cmd')
-rw-r--r--tests/buildtest.cmd3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/buildtest.cmd b/tests/buildtest.cmd
index 0ce20a778b..5e434a81a4 100644
--- a/tests/buildtest.cmd
+++ b/tests/buildtest.cmd
@@ -33,6 +33,7 @@ if /i "%1" == "vs2013" (set __VSVersion=%1&shift&goto Arg_Loop)
if /i "%1" == "vs2015" (set __VSVersion=%1&shift&goto Arg_Loop)
if /i "%1" == "crossgen" (set _crossgen=true&shift&goto Arg_Loop)
+if /i "%1" == "ilasmroundtrip" (set _ilasmroundtrip=true&shift&goto Arg_Loop)
if /i "%1" == "priority" (set _priorityvalue=%2&shift&shift&goto Arg_Loop)
if /i "%1" == "verbose" (set _verbosity=detailed&shift&goto Arg_Loop)
@@ -43,6 +44,7 @@ goto Usage
:ArgsDone
if defined _crossgen echo Building tests with CrossGen enabled.&set _buildParameters=%_buildParameters% /p:CrossGen=true
+if defined _ilasmroundtrip echo Building tests with IlasmRoundTrip enabled.&set _buildParameters=%_buildParameters% /p:IlasmRoundTrip=true
if defined _priorityvalue echo Building Test Priority %_priorityvalue%&set _buildParameters=%_buildParameters% /p:CLRTestPriorityToBuild=%_priorityvalue%
if defined _verbosity echo Enabling verbose file logging
if not defined _verbosity set _verbosity=normal
@@ -221,5 +223,6 @@ echo Clean - optional argument to force a clean build.
echo VSVersion - optional argument to use VS2013 or VS2015 (default VS2015)
echo CrossGen - Enables the tests to run crossgen on the test executables before executing them.
echo Priority (N) where N is a number greater than zero that signifies the set of tests that will be built and consequently run.
+echo IlasmRoundTrip - Enables ilasm round trip build and run of the tests before executing them.
echo Verbose - Enables detailed file logging for the msbuild tasks.
exit /b 1