summaryrefslogtreecommitdiff
path: root/tests/src/CLRTest.Execute.Batch.targets
diff options
context:
space:
mode:
authorSwaroop Sridhar <swaroops@microsoft.com>2017-03-22 18:09:05 -0700
committerSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>2017-03-28 11:31:25 -0700
commit5f05a462321923ee6d9975cc3f88a233b3143332 (patch)
tree7a5d5fac3e1aa0166bc0702be2cdc075f3f335a6 /tests/src/CLRTest.Execute.Batch.targets
parentc9a0d6d510e92dc4ebd4b78f766c706abce0a9af (diff)
downloadcoreclr-5f05a462321923ee6d9975cc3f88a233b3143332.tar.gz
coreclr-5f05a462321923ee6d9975cc3f88a233b3143332.tar.bz2
coreclr-5f05a462321923ee6d9975cc3f88a233b3143332.zip
Add support for CoreCLR testing via ILLINK on Linux
Made changes to the test infrastructure to 1) Generate <test>.sh with commands to invoke ILLINK and run the output 2) Add runtest.sh --link=<path-to-illink> to invoke the ILLINK testing
Diffstat (limited to 'tests/src/CLRTest.Execute.Batch.targets')
-rw-r--r--tests/src/CLRTest.Execute.Batch.targets8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/CLRTest.Execute.Batch.targets b/tests/src/CLRTest.Execute.Batch.targets
index b16e648908..db2a17425d 100644
--- a/tests/src/CLRTest.Execute.Batch.targets
+++ b/tests/src/CLRTest.Execute.Batch.targets
@@ -214,7 +214,7 @@ set Assemblies=-a System.Private.CoreLib
IF defined DoLink (
IF NOT EXIST !ILLINK! (
- ECHO ILLink [%ILLINK%] Not Found
+ ECHO ILLink executable [%ILLINK%] Invalid
Exit /b 1
)
@@ -237,8 +237,10 @@ IF defined DoLink (
ECHO %ILLINK% -out %LinkBin% -d %CORE_ROOT% -c link -l none -t !Assemblies! !ReflectionRoots!
%ILLINK% -out %LinkBin% -d %CORE_ROOT% -c link -l none -t !Assemblies! !ReflectionRoots!
IF NOT "!ERRORLEVEL!"=="0" (
- ECHO EXECUTION OF %DOTNETLINK% - FAILED !ERRORLEVEL!
- IF EXIST %LinkBin% rmdir /s /q %LinkBin%
+ ECHO ILLINK FAILED !ERRORLEVEL!
+ IF NOT defined KeepLinkedBinaries (
+ IF EXIST %LinkBin% rmdir /s /q %LinkBin%
+ )
Exit /b 1
)