summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-09-27 16:03:23 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-09 18:53:09 (GMT)
commitc824c6c4e595195706d7a4aaf8bbee545ebc13ce (patch)
tree8f79b9c0bd046a3a72ce53175018a3344cf7c8ba /tsp/scripts
parentb490422c79420c376ab01a41d4a19fc04c0f9a5b (diff)
downloadmajor-c824c6c4e595195706d7a4aaf8bbee545ebc13ce.zip
major-c824c6c4e595195706d7a4aaf8bbee545ebc13ce.tar.gz
major-c824c6c4e595195706d7a4aaf8bbee545ebc13ce.tar.bz2
Add artik target supportrefs/changes/89/95289/5
Database update is required. Delete it or run: . tsp/common.sh sqlite3 "${DBPATH}" -batch < tsp/results-values-device.sql Change-Id: I687cd0435ff0a9f5470a0cc5b9178e9b615ef44c Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/common_prep_flash_conf.sh17
-rwxr-xr-xtsp/scripts/crawler.py5
2 files changed, 17 insertions, 5 deletions
diff --git a/tsp/scripts/common_prep_flash_conf.sh b/tsp/scripts/common_prep_flash_conf.sh
index ef9a4fc..48ddbed 100755
--- a/tsp/scripts/common_prep_flash_conf.sh
+++ b/tsp/scripts/common_prep_flash_conf.sh
@@ -23,10 +23,15 @@
TESTLAB_MAJOR="/opt/testlab-major"
cd "${WORKDIR_REMOTE}" || exit
+ACTUAL_TARGET="${TARGET#headless-}"
case "$TARGET" in
*odroid*)
- BOOT_IMG="$(pwd)/$(ls tizen-common_*-boot-*.tar.gz)"
- USR_IMG="$(pwd)/$(ls tizen-common_*-wayland-*.tar.gz)"
+ BOOT_IMG="$(pwd)/$(ls tizen-common_*-boot-*odroid*.tar.gz)"
+ USR_IMG="$(pwd)/$(ls tizen-common_*-wayland-*odroid*.tar.gz)"
+ ;;
+ *artik*)
+ BOOT_IMG="$(pwd)/$(ls tizen-common_*-boot-*artik*.tar.gz)"
+ USR_IMG="$(pwd)/$(ls tizen-common_*-3parts-*artik*.tar.gz)"
;;
*minnow*)
USR_IMG="$(pwd)/$(ls tizen-common_*_common-*-sda.raw.bz2)"
@@ -48,7 +53,7 @@ else
fi
# Lock resource
-SDMUX="$(python "${TESTLAB_MAJOR}/tct/resource_locking.py" --retrylock "${TARGET}")"
+SDMUX="$(python "${TESTLAB_MAJOR}/tct/resource_locking.py" --retrylock "${ACTUAL_TARGET}")"
if [ -z "${SDMUX}" ]; then
echo "Failed to allocate SD MUX device." >> sysctl.result
echo "FAILED 1" >> sysctl.result
@@ -60,6 +65,10 @@ case "$TARGET" in
"${TESTLAB_MAJOR}/tct/odroid_prepare_flash_conf.sh" "$SDMUX" "$USR_IMG" "$BOOT_IMG"
"${TESTLAB_MAJOR}/tct/odroid_run.sh" "$SDMUX"
;;
+ *artik*)
+ "${TESTLAB_MAJOR}/tct/artik_prepare_flash_conf.sh" "$SDMUX" "$USR_IMG" "$BOOT_IMG"
+ "${TESTLAB_MAJOR}/tct/odroid_run.sh" "$SDMUX"
+ ;;
*minnow*)
"${TESTLAB_MAJOR}/tct/minnow_prepare_flash_conf.sh" "$SDMUX" "$USR_IMG"
"${TESTLAB_MAJOR}/tct/minnow_run.sh" "$SDMUX"
@@ -91,7 +100,7 @@ fi
echo "sdmux used: ${SDMUX}" >> sysctl.result
case "$TARGET" in
- *odroid*)
+ *odroid*|*artik*)
rm -v "$USR_IMG" "$BOOT_IMG"
;;
*minnow*)
diff --git a/tsp/scripts/crawler.py b/tsp/scripts/crawler.py
index 7f73075..59436c8 100755
--- a/tsp/scripts/crawler.py
+++ b/tsp/scripts/crawler.py
@@ -72,7 +72,10 @@ def get_modified_paths(discovered, timestamp):
logging.debug("Check for MD5SUMS change: %s", url)
md5sums_urls = [url + 'images/arm-wayland/common-wayland-3parts-armv7l-odroidu3/MD5SUMS',\
url + 'images/x86_64-wayland/common-wayland-efi-x86_64/MD5SUMS',\
- url + 'images/ia32-wayland/common-wayland-efi-i586/MD5SUMS']
+ url + 'images/ia32-wayland/common-wayland-efi-i586/MD5SUMS',\
+ url + 'images/x86_64-wayland/common-minimal-mbr-x86_64/MD5SUMS',\
+ url + 'images/arm-wayland/common-wayland-3parts-armv7l-artik/MD5SUMS',\
+ url + 'images/arm-wayland/common-headless-3parts-armv7l-artik/MD5SUMS']
change = False
for md5sums_url in md5sums_urls:
try: