summaryrefslogtreecommitdiff
path: root/tests/runtest.sh
diff options
context:
space:
mode:
authorjashook <jashoo@microsoft.com>2017-12-14 09:17:25 -0800
committerjashook <jashoo@microsoft.com>2017-12-14 12:51:18 -0800
commit94baff373526ca3ab46d8650206096669f45a76e (patch)
tree5a76731a1aa4873a0b41e48929888288133745de /tests/runtest.sh
parent6cc8720c08883ed39baaed966ecceb84d0703725 (diff)
downloadcoreclr-94baff373526ca3ab46d8650206096669f45a76e.tar.gz
coreclr-94baff373526ca3ab46d8650206096669f45a76e.tar.bz2
coreclr-94baff373526ca3ab46d8650206096669f45a76e.zip
Remove CoreFX runtest dependency
This change will start using build-test.sh generatelayoutonly to build the coreoverlay directory for use with runtest.sh.
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-xtests/runtest.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 12b0e6d749..7e3fd986db 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -9,9 +9,8 @@ function print_usage {
echo 'coreclr/tests/runtest.sh'
echo ' --testRootDir="temp/Windows_NT.x64.Debug"'
echo ' --testNativeBinDir="coreclr/bin/obj/Linux.x64.Debug/tests"'
- echo ' --coreClrBinDir="coreclr/bin/Product/Linux.x64.Debug"'
- echo ' --mscorlibDir="windows/coreclr/bin/Product/Linux.x64.Debug"'
- echo ' --coreFxBinDir="corefx/bin/runtime/netcoreapp-Linux-Debug-x64'
+ echo ' --coreOverlayDir="coreclr/bin/tests/Linux.x64.Debug/Tests/Core_Root"'
+ echo ' --copyNativeTestBin'
echo ''
echo 'Required arguments:'
echo ' --testRootDir=<path> : Root directory of the test build (e.g. coreclr/bin/tests/Windows_NT.x64.Debug).'
@@ -44,6 +43,7 @@ function print_usage {
echo ' -h|--help : Show usage information.'
echo ' --useServerGC : Enable server GC for this test run'
echo ' --test-env : Script to set environment variables for tests'
+ echo ' --copyNativeTestBin : Explicitly copy native test components into the test dir'
echo ' --crossgen : Precompiles the framework managed assemblies'
echo ' --runcrossgentests : Runs the ready to run tests'
echo ' --jitstress=<n> : Runs the tests with COMPlus_JitStress=n'
@@ -338,6 +338,11 @@ function create_core_overlay {
if [ -n "$coreOverlayDir" ]; then
export CORE_ROOT="$coreOverlayDir"
+
+ if [ -n "$copyNativeTestBin" ]; then
+ copy_test_native_bin_to_test_root $coreOverlayDir
+ fi
+
return
fi
@@ -380,7 +385,7 @@ function create_core_overlay {
# Test dependencies come from a Windows build, and System.Private.CoreLib.ni.dll would be the one from Windows
rm -f "$coreOverlayDir/System.Private.CoreLib.ni.dll"
fi
- copy_test_native_bin_to_test_root
+ copy_test_native_bin_to_test_root $coreOverlayDir
}
declare -a skipCrossGenFiles
@@ -438,6 +443,7 @@ function precompile_overlay_assemblies {
function copy_test_native_bin_to_test_root {
local errorSource='copy_test_native_bin_to_test_root'
+ local coreRootDir=$1
if [ -z "$testNativeBinDir" ]; then
exit_with_error "$errorSource" "--testNativeBinDir is required."
@@ -448,14 +454,10 @@ function copy_test_native_bin_to_test_root {
fi
# Copy native test components from the native test build into the respective test directory in the test root directory
- find "$testNativeBinDir" -type f -iname '*.$libExtension' |
+ find "$testNativeBinDir" -type f -iname "*.$libExtension" |
while IFS='' read -r filePath || [ -n "$filePath" ]; do
local dirPath=$(dirname "$filePath")
- local destinationDirPath=${testRootDir}${dirPath:${#testNativeBinDir}}
- if [ ! -d "$destinationDirPath" ]; then
- exit_with_error "$errorSource" "Cannot copy native test bin '$filePath' to '$destinationDirPath/', as the destination directory does not exist."
- fi
- cp -f "$filePath" "$destinationDirPath/"
+ cp -f "$filePath" "$coreRootDir"
done
}
@@ -1062,6 +1064,9 @@ do
--jitminopts)
export COMPlus_JITMinOpts=1
;;
+ --copyNativeTestBin)
+ export copyNativeTestBin=1
+ ;;
--jitforcerelocs)
export COMPlus_ForceRelocs=1
;;