Add call to setup-stress-dependencies.sh to build-test.sh. (#23354)
authorSergey Andreenko <seandree@microsoft.com>
Sat, 23 Mar 2019 05:13:12 +0000 (22:13 -0700)
committerGitHub <noreply@github.com>
Sat, 23 Mar 2019 05:13:12 +0000 (22:13 -0700)
* Add call to setup-stress-dependencies.sh to build-test.sh.

* Fix args.

* hack __DistroRid

* Do not use bash source.

* Do not use bash source 2.

* Fix init-distro-rid permissions.

* Fix tabs.

* return deleted source where it was needed

build-test.sh
init-distro-rid.sh [changed mode: 0644->0755]
tests/setup-stress-dependencies.sh

index d845185..81b59eb 100755 (executable)
@@ -154,6 +154,10 @@ generate_layout()
 
     # Make sure to copy over the pulled down packages
     cp -r $__BinDir/* $CORE_ROOT/ > /dev/null
+    
+    nextCommand="\"$__TestDir/setup-stress-dependencies.sh\" --outputDir=$CORE_ROOT"
+    echo "Resolve runtime dependences via $nextCommand"
+    eval $nextCommand
 }
 
 generate_testhost()
old mode 100644 (file)
new mode 100755 (executable)
index 8c695b3..56c37b2 100755 (executable)
@@ -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