diff options
author | Jarret Shook <jashoo@microsoft.com> | 2018-08-31 11:25:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-31 11:25:20 -0700 |
commit | 6de8d61ab595b2975a01ba4068a3840a6f7aaacd (patch) | |
tree | 40d88dd8d9be5e0e3a233e50240e80e0994c6209 /tests/runtest.sh | |
parent | 3b807944d8822b44eb5085d6b95b130b4a91808f (diff) | |
download | coreclr-6de8d61ab595b2975a01ba4068a3840a6f7aaacd.tar.gz coreclr-6de8d61ab595b2975a01ba4068a3840a6f7aaacd.tar.bz2 coreclr-6de8d61ab595b2975a01ba4068a3840a6f7aaacd.zip |
Fix build-test.sh wrapper build (#19779)
* Fix build-test.sh wrapper build
In addition this change creates a json file with the build info so that the wrapper build
may be skipped if it was built on the same os/arch/buildtype.
* Address pr feedback
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-x | tests/runtest.sh | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh index 614692e4f8..0917094710 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -40,7 +40,7 @@ function print_usage { echo ' --tieredcompilation : Runs the tests with COMPlus_TieredCompilation=1' echo ' --link <ILlink> : Runs the tests after linking via ILlink' echo ' --xunitOutputPath=<path> : Create xUnit XML report at the specifed path (default: <test root>/coreclrtests.xml)' - echo ' --skipXunitWrapperBuild : Skip creating the xunit wrapper' + echo ' --buildXUnitWrappers : Force creating the xunit wrappers, this is useful if there have been changes to issues.targets' echo ' --printLastResultsOnly : Print the results of the last run' echo '' echo 'CoreFX Test Options ' @@ -219,7 +219,7 @@ verbose=0 doCrossgen=0 jitdisasm=0 ilasmroundtrip= -skipXunitWrapperBuild= +buildXUnitWrappers= printLastResultsOnly= generateLayoutOnly= generateLayout= @@ -255,8 +255,8 @@ do release|Release) buildConfiguration="Release" ;; - --skipXunitWrapperBuild) - skipXunitWrapperBuild=1 + --buildXUnitWrappers) + buildXUnitWrappers=1 ;; --printLastResultsOnly) printLastResultsOnly=1 @@ -515,20 +515,11 @@ if [ ! -z "$ilasmroundtrip" ]; then runtestPyArguments+=("--ilasmroundtrip") fi -if [ ! -z "$skipXunitWrapperBuild" ]; then +if [ ! -z "$buildXUnitWrappers" ]; then + runtestPyArguments+=("--build_xunit_test_wrappers") +else echo "Skipping xunit wrapper build. If build-test was called on a different" echo "host_os or arch the test run will most likely have failures." -else - # By default rebuild the test wrappers, as we cannot gaurentee the following - # is true: - # 1) There are no added or removed excludes since the tests were built - # 2) That the wrapper generation happened on the same host_os and arch - # as where we are running now - # - # Note that the wrapper generation is slow. To skip this pass --skipXunitWrapperBuild - # if the above requirements are met. - - runtestPyArguments+=("--build_xunit_test_wrappers") fi if (($verbose!=0)); then |