@@ -2067,25 +2067,27 @@ combinedScenarios.each { scenario ->
2067
2067
}
2068
2068
2069
2069
if (scenario == ' coverage' ) {
2070
- shell(" ./build.sh coverage verbose ${ lowerConfiguration} ${ architecture} " )
2070
+
2071
+ // Move coreclr to clr directory
2072
+ shell(" rm -rf .clr; mkdir .clr; mv * .clr; mv .git .clr; mv .clr clr" )
2073
+
2074
+ // Build coreclr
2075
+ shell(" ./clr/build.sh coverage verbose ${ lowerConfiguration} ${ architecture} " )
2071
2076
2072
2077
// Remove folders from obj that we don't expect to be covered. May update this later.
2073
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/ToolBox" )
2074
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/debug" )
2075
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/ilasm" )
2076
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/ildasm" )
2077
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/dlls/dbgshim" )
2078
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/dlls/mscordac" )
2079
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/dlls/mscordbi" )
2078
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/ToolBox" )
2079
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/debug" )
2080
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/ilasm" )
2081
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/ildasm" )
2082
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/dlls/dbgshim" )
2083
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/dlls/mscordac" )
2084
+ shell(" rm -rf ./clr/ bin/obj/Linux.x64.Release/src/dlls/mscordbi" )
2080
2085
2081
2086
// Run PAL tests
2082
- shell(" src/pal/tests/palsuite/runpaltests.sh \$ {WORKSPACE}/ bin/obj/${ osGroup} .${ architecture} .${ configuration} \$ {WORKSPACE} /bin/paltestout" )
2087
+ shell(" ./clr/ src/pal/tests/palsuite/runpaltests.sh \$ (pwd)/clr/ bin/obj/${ osGroup} .${ architecture} .${ configuration} \$ (pwd)/clr /bin/paltestout" )
2083
2088
2084
2089
// Remove obj files for PAL tests so they're not included in coverage results
2085
- shell(" rm -rf ./bin/obj/Linux.x64.Release/src/pal/tests" )
2086
-
2087
- // Move coreclr to clr directory
2088
- shell(" rm -rf .clr; mkdir .clr; mv * .clr; mv .git .clr; mv .clr clr" )
2090
+ shell(" rm -rf ./clr/bin/obj/Linux.x64.Release/src/pal/tests" )
2089
2091
2090
2092
// Unzip the tests first. Exit with 0
2091
2093
shell(" unzip -q -o ./clr/bin/tests/tests.zip -d ./clr/bin/tests/Windows_NT.${ architecture} .${ configuration} || exit 0" )
0 commit comments