From: Sergey Andreenko Date: Wed, 27 Mar 2019 07:25:06 +0000 (-0700) Subject: Add call to setup-stress-dependencies.sh to build-test.sh. (#23435) X-Git-Tag: accepted/tizen/unified/20190813.215958~54^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=808e048c8535f9fd704acb75f1fa4aecdf36b72e;p=platform%2Fupstream%2Fcoreclr.git Add call to setup-stress-dependencies.sh to build-test.sh. (#23435) --- diff --git a/build-test.sh b/build-test.sh index d845185..2785ecb 100755 --- a/build-test.sh +++ b/build-test.sh @@ -154,6 +154,12 @@ generate_layout() # Make sure to copy over the pulled down packages cp -r $__BinDir/* $CORE_ROOT/ > /dev/null + + if [ "$__BuildOS" != "OSX" ]; then + nextCommand="\"$__TestDir/setup-stress-dependencies.sh\" --outputDir=$CORE_ROOT" + echo "Resolve runtime dependences via $nextCommand" + eval $nextCommand + fi } generate_testhost() diff --git a/init-distro-rid.sh b/init-distro-rid.sh old mode 100644 new mode 100755 diff --git a/tests/setup-stress-dependencies.sh b/tests/setup-stress-dependencies.sh index 8c695b3..56c37b2 100755 --- a/tests/setup-stress-dependencies.sh +++ b/tests/setup-stress-dependencies.sh @@ -147,7 +147,7 @@ initDistroRidGlobal ${__BuildOS} x64 ${isPortable} # The CoreDisTools package is currently manually packaged and we only have # 14.04 and 16.04 packages. Use the oldest package which will work on newer # platforms. -if [[ ${__DistroRid} == "ubuntu"* ]]; then +if [[ ${__BuildOS} == "Linux" ]]; then __DistroRid=ubuntu.14.04 fi @@ -170,6 +170,8 @@ fi # Get library path libPath=`find $packageDir | grep $rid | grep -m 1 libcoredistools` +echo "libPath to be used: ${libPath}" + if [ ! -e $libPath ] || [ -z "$libPath" ]; then exit_with_error 1 'Failed to locate the downloaded library' fi