aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2015-08-12 16:16:25 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2015-08-12 16:21:27 +0530
commit0336dd1dd64dec99c71c6f787ad0b7cceaeae529 (patch)
treeb269541c367e3b99839035eb04ccfe76a393428b
parent2e66676bfa26b6e846b8a0dbc12053999d142cee (diff)
WA: get build-tools and wa-home url from json
Due to license issues we are maintaining SDK build-tools and workload_automation_home in internal only site. URL has been parameterized to provide it from LAVA test JSON file. Change-Id: I0baf56ff2b491bfb24e17e1099394af6c4fcbb41 Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xinstall-wa2.sh7
-rw-r--r--wa2host.yaml8
2 files changed, 12 insertions, 3 deletions
diff --git a/install-wa2.sh b/install-wa2.sh
index 52fd7f5..b7fa1b3 100755
--- a/install-wa2.sh
+++ b/install-wa2.sh
@@ -1,9 +1,12 @@
+BUILD_TOOLS_URL=$1
+WA_HOME_URL=$2
+
# install SDK build-tools
echo "install SDK build-tools"
cd /usr/
pwd
# TODO: build-tools.tar.gz only accessible from Linaro LAVA lab
-wget http://testdata.validation.linaro.org/apks/workload-automation/build-tools.tar.gz
+wget $BUILD_TOOLS_URL
tar -xvf build-tools.tar.gz
cd -
@@ -22,7 +25,7 @@ cd /root
id
cd; pwd
# TODO: workload_automation_home.tar.gz only accessible from Linaro LAVA lab
-wget http://testdata.validation.linaro.org/apks/workload-automation/workload_automation_home.tar.gz
+wget $WA_HOME_URL
tar -xvf workload_automation_home.tar.gz
# create folder for database results
diff --git a/wa2host.yaml b/wa2host.yaml
index b474e40..ed739cd 100644
--- a/wa2host.yaml
+++ b/wa2host.yaml
@@ -17,10 +17,16 @@ params:
MODE: "hmp"
DEVICE: ""
SIGNAL_PREFIX: "workload"
+ # TODO: build-tools.tar.gz only accessible from Linaro LAVA lab
+ # TODO: Provide a valid build-tools URL from Json
+ BUILD_TOOLS_URL: "http://testdata.validation.linaro.org/apks/workload-automation/build-tools.tar.gz"
+ # TODO: workload_automation_home.tar.gz only accessible from Linaro LAVA lab
+ # TODO: Provide a valid workload_automation_home URL from Json
+ WA_HOME_URL: "http://testdata.validation.linaro.org/apks/workload-automation/workload_automation_home.tar.gz"
install:
steps:
- - './install-wa2.sh'
+ - './install-wa2.sh $BUILD_TOOLS_URL $WA_HOME_URL'
deps:
- git
- wget