diff --git a/build-test.sh b/build-test.sh index b77cacb9bb02..65703d57bf3a 100755 --- a/build-test.sh +++ b/build-test.sh @@ -156,7 +156,7 @@ generate_layout() cp -r $__BinDir/* $CORE_ROOT/ > /dev/null if [ "$__BuildOS" != "OSX" ]; then - nextCommand="\"$__TestDir/setup-stress-dependencies.sh\" --outputDir=$CORE_ROOT" + nextCommand="\"$__TestDir/setup-stress-dependencies.sh\" --arch=$__BuildArch --outputDir=$CORE_ROOT" echo "Resolve runtime dependences via $nextCommand" eval $nextCommand if [ $? != 0 ]; then diff --git a/tests/bringup_runtest.sh b/tests/bringup_runtest.sh index cbaa4850e168..23b457624f0c 100755 --- a/tests/bringup_runtest.sh +++ b/tests/bringup_runtest.sh @@ -1451,14 +1451,8 @@ else load_failing_tests fi -# Other architectures are not supported yet. -if [ "$ARCH" == "x64" ] -then - scriptPath=$(dirname $0) - ${scriptPath}/setup-stress-dependencies.sh --outputDir=$coreOverlayDir -elif [ "$ARCH" != "arm64" ] && [ "$ARCH" != "arm" ]; then - echo "Skip preparing for GC stress test. Dependent package is not supported on this architecture." -fi +scriptPath=$(dirname $0) +${scriptPath}/setup-stress-dependencies.sh --arch=$ARCH --outputDir=$coreOverlayDir export __TestEnv=$testEnv diff --git a/tests/setup-stress-dependencies.sh b/tests/setup-stress-dependencies.sh index 65fb5637b3f4..f11c76c9bbeb 100755 --- a/tests/setup-stress-dependencies.sh +++ b/tests/setup-stress-dependencies.sh @@ -16,9 +16,10 @@ function print_usage { echo '' echo 'Command line:' echo '' - echo './setup-gcstress.sh --outputDir=' + echo './setup-gcstress.sh --arch= --outputDir=' echo '' echo 'Required arguments:' + echo ' --arch= : Target arch for the build' echo ' --outputDir= : Directory to install libcoredistools.so' echo '' } @@ -55,6 +56,9 @@ do -v|--verbose) verbose=1 ;; + --arch=*) + __BuildArch=${i#*=} + ;; --outputDir=*) libInstallDir=${i#*=} ;; @@ -66,12 +70,23 @@ do esac done +if [ -z "$__BuildArch" ]; then + echo "--arch is required." + print_usage + exit_with_error 1 +fi + if [ -z "$libInstallDir" ]; then - echo "--libInstallDir is required." + echo "--outputDir is required." print_usage exit_with_error 1 fi +if [ "$__BuildArch" == "arm64" ] || [ "$__BuildArch" == "arm" ] + echo "No runtime dependencies for arm32/arm64" + exit $EXIT_CODE_SUCCESS +fi + # This script must be located in coreclr/tests. scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"