From 14f58acd79177f41f3f7d6c0980bf2746530ccc1 Mon Sep 17 00:00:00 2001 From: Donghoon Shin Date: Fri, 21 Oct 2016 13:55:46 +0000 Subject: Update flash method for tw1 to skip passing parameter "flasher" Change-Id: I0f6497f82a92e0ae436d35355f208773ced614e5 --- CHANGES.txt | 4 ++ README.md | 2 +- debian/changelog | 6 ++ litmus/__init__.py | 6 +- litmus/device/devicestandalone_m0.py | 22 -------- litmus/device/devicestandalone_tw1.py | 9 +++ litmus/device/devicestandalone_z1.py | 22 -------- litmus/templates/standalone/__init__.py | 0 litmus/templates/standalone/conf_mobile.yaml | 4 -- litmus/templates/standalone/conf_tv.yaml | 5 -- litmus/templates/standalone/conf_wearable.yaml | 4 -- litmus/templates/standalone/tc_mobile.yaml | 50 ----------------- litmus/templates/standalone/tc_tv.yaml | 23 -------- litmus/templates/standalone/tc_wearable.yaml | 50 ----------------- litmus/templates/standalone/userscript.py | 65 ---------------------- litmus/templates/standalone_tm1/__init__.py | 0 litmus/templates/standalone_tm1/conf_mobile.yaml | 4 ++ litmus/templates/standalone_tm1/conf_tv.yaml | 5 ++ litmus/templates/standalone_tm1/conf_wearable.yaml | 4 ++ litmus/templates/standalone_tm1/tc_mobile.yaml | 50 +++++++++++++++++ litmus/templates/standalone_tm1/tc_tv.yaml | 23 ++++++++ litmus/templates/standalone_tm1/tc_wearable.yaml | 50 +++++++++++++++++ litmus/templates/standalone_tm1/userscript.py | 60 ++++++++++++++++++++ litmus/templates/standalone_tm2/__init__.py | 0 litmus/templates/standalone_tm2/conf_mobile.yaml | 4 ++ litmus/templates/standalone_tm2/conf_tv.yaml | 5 ++ litmus/templates/standalone_tm2/conf_wearable.yaml | 4 ++ litmus/templates/standalone_tm2/tc_mobile.yaml | 50 +++++++++++++++++ litmus/templates/standalone_tm2/tc_tv.yaml | 23 ++++++++ litmus/templates/standalone_tm2/tc_wearable.yaml | 50 +++++++++++++++++ litmus/templates/standalone_tm2/userscript.py | 60 ++++++++++++++++++++ litmus/templates/standalone_tw1/__init__.py | 0 litmus/templates/standalone_tw1/conf_mobile.yaml | 4 ++ litmus/templates/standalone_tw1/conf_tv.yaml | 5 ++ litmus/templates/standalone_tw1/conf_wearable.yaml | 4 ++ litmus/templates/standalone_tw1/tc_mobile.yaml | 50 +++++++++++++++++ litmus/templates/standalone_tw1/tc_tv.yaml | 23 ++++++++ litmus/templates/standalone_tw1/tc_wearable.yaml | 50 +++++++++++++++++ litmus/templates/standalone_tw1/userscript.py | 60 ++++++++++++++++++++ litmus/templates/standalone_u3/__init__.py | 0 litmus/templates/standalone_u3/conf_mobile.yaml | 4 ++ litmus/templates/standalone_u3/conf_tv.yaml | 5 ++ litmus/templates/standalone_u3/conf_wearable.yaml | 4 ++ litmus/templates/standalone_u3/tc_mobile.yaml | 50 +++++++++++++++++ litmus/templates/standalone_u3/tc_tv.yaml | 23 ++++++++ litmus/templates/standalone_u3/tc_wearable.yaml | 50 +++++++++++++++++ litmus/templates/standalone_u3/userscript.py | 60 ++++++++++++++++++++ litmus/templates/standalone_xu3/__init__.py | 0 litmus/templates/standalone_xu3/conf_mobile.yaml | 4 ++ litmus/templates/standalone_xu3/conf_tv.yaml | 5 ++ litmus/templates/standalone_xu3/conf_wearable.yaml | 4 ++ litmus/templates/standalone_xu3/tc_mobile.yaml | 50 +++++++++++++++++ litmus/templates/standalone_xu3/tc_tv.yaml | 23 ++++++++ litmus/templates/standalone_xu3/tc_wearable.yaml | 50 +++++++++++++++++ litmus/templates/standalone_xu3/userscript.py | 60 ++++++++++++++++++++ 55 files changed, 1004 insertions(+), 248 deletions(-) delete mode 100644 litmus/device/devicestandalone_m0.py delete mode 100644 litmus/device/devicestandalone_z1.py delete mode 100644 litmus/templates/standalone/__init__.py delete mode 100644 litmus/templates/standalone/conf_mobile.yaml delete mode 100644 litmus/templates/standalone/conf_tv.yaml delete mode 100644 litmus/templates/standalone/conf_wearable.yaml delete mode 100644 litmus/templates/standalone/tc_mobile.yaml delete mode 100644 litmus/templates/standalone/tc_tv.yaml delete mode 100644 litmus/templates/standalone/tc_wearable.yaml delete mode 100755 litmus/templates/standalone/userscript.py create mode 100644 litmus/templates/standalone_tm1/__init__.py create mode 100644 litmus/templates/standalone_tm1/conf_mobile.yaml create mode 100644 litmus/templates/standalone_tm1/conf_tv.yaml create mode 100644 litmus/templates/standalone_tm1/conf_wearable.yaml create mode 100644 litmus/templates/standalone_tm1/tc_mobile.yaml create mode 100644 litmus/templates/standalone_tm1/tc_tv.yaml create mode 100644 litmus/templates/standalone_tm1/tc_wearable.yaml create mode 100755 litmus/templates/standalone_tm1/userscript.py create mode 100644 litmus/templates/standalone_tm2/__init__.py create mode 100644 litmus/templates/standalone_tm2/conf_mobile.yaml create mode 100644 litmus/templates/standalone_tm2/conf_tv.yaml create mode 100644 litmus/templates/standalone_tm2/conf_wearable.yaml create mode 100644 litmus/templates/standalone_tm2/tc_mobile.yaml create mode 100644 litmus/templates/standalone_tm2/tc_tv.yaml create mode 100644 litmus/templates/standalone_tm2/tc_wearable.yaml create mode 100755 litmus/templates/standalone_tm2/userscript.py create mode 100644 litmus/templates/standalone_tw1/__init__.py create mode 100644 litmus/templates/standalone_tw1/conf_mobile.yaml create mode 100644 litmus/templates/standalone_tw1/conf_tv.yaml create mode 100644 litmus/templates/standalone_tw1/conf_wearable.yaml create mode 100644 litmus/templates/standalone_tw1/tc_mobile.yaml create mode 100644 litmus/templates/standalone_tw1/tc_tv.yaml create mode 100644 litmus/templates/standalone_tw1/tc_wearable.yaml create mode 100755 litmus/templates/standalone_tw1/userscript.py create mode 100644 litmus/templates/standalone_u3/__init__.py create mode 100644 litmus/templates/standalone_u3/conf_mobile.yaml create mode 100644 litmus/templates/standalone_u3/conf_tv.yaml create mode 100644 litmus/templates/standalone_u3/conf_wearable.yaml create mode 100644 litmus/templates/standalone_u3/tc_mobile.yaml create mode 100644 litmus/templates/standalone_u3/tc_tv.yaml create mode 100644 litmus/templates/standalone_u3/tc_wearable.yaml create mode 100755 litmus/templates/standalone_u3/userscript.py create mode 100644 litmus/templates/standalone_xu3/__init__.py create mode 100644 litmus/templates/standalone_xu3/conf_mobile.yaml create mode 100644 litmus/templates/standalone_xu3/conf_tv.yaml create mode 100644 litmus/templates/standalone_xu3/conf_wearable.yaml create mode 100644 litmus/templates/standalone_xu3/tc_mobile.yaml create mode 100644 litmus/templates/standalone_xu3/tc_tv.yaml create mode 100644 litmus/templates/standalone_xu3/tc_wearable.yaml create mode 100755 litmus/templates/standalone_xu3/userscript.py diff --git a/CHANGES.txt b/CHANGES.txt index 9da8bc4..27808bb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -43,3 +43,7 @@ Version 0.3.2 07 Oct 2016 Version 0.3.3 11 Oct 2016 --------------------------- - Support device.screenshot() API + +Version 0.3.4 21 Oct 2016 +--------------------------- +- Update flash method for tw1 to skip passing parameter 'flasher' diff --git a/README.md b/README.md index a5124e4..9c7bd31 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Buliding & installing $ cd .. - $ sudo dpkg -i litmus_0.3.3-1_amd64.deb + $ sudo dpkg -i litmus_0.3.4-1_amd64.deb Getting started diff --git a/debian/changelog b/debian/changelog index 63cb7d0..6563309 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +litmus (0.3.4-1) unstable; urgency=low + + * Update flash method for tw1 to skip passing parameter 'flasher' + + -- Donghoon Shin Fri, 21 Oct 2016 11:36:00 +0900 + litmus (0.3.3-1) unstable; urgency=low * Support device.screenshot API diff --git a/litmus/__init__.py b/litmus/__init__.py index 9a396a8..9f1fca6 100644 --- a/litmus/__init__.py +++ b/litmus/__init__.py @@ -14,11 +14,13 @@ # limitations under the License. import os -__version__ = '0.3.3' +__version__ = '0.3.4' _homedir_ = os.path.expanduser('~') _confdir_ = os.path.join(_homedir_, '.litmus') _duts_ = os.path.join(_confdir_, 'topology') _projects_ = os.path.join(_confdir_, 'projects') _tmpdir_ = '/tmp' _path_for_locks_ = '/var/lock/litmus/' -_dev_types_ = ('u3', 'xu3', 'artik5', 'artik10', 'standalone', 'empty') +_dev_types_ = ('u3', 'xu3', 'artik5', 'artik10', + 'standalone_tm1', 'standalone_tm2', 'standalone_tw1', + 'standalone_u3', 'standalone_xu3', 'empty') diff --git a/litmus/device/devicestandalone_m0.py b/litmus/device/devicestandalone_m0.py deleted file mode 100644 index 6306d89..0000000 --- a/litmus/device/devicestandalone_m0.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -# Copyright 2015-2016 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from litmus.device.devicestandalone import devicestandalone - - -class devicestandalone_m0(devicestandalone): - """docstring for device""" - _screen_width = 720 - _screen_height = 1280 diff --git a/litmus/device/devicestandalone_tw1.py b/litmus/device/devicestandalone_tw1.py index 774a250..35c182d 100644 --- a/litmus/device/devicestandalone_tw1.py +++ b/litmus/device/devicestandalone_tw1.py @@ -20,3 +20,12 @@ class devicestandalone_tw1(devicestandalone): """docstring for device""" _screen_width = 360 _screen_height = 360 + + def flash(self, filenames, flasher='heimdall', waiting=5, + partition_bin_mappings={'BOOT': 'zImage', + 'ROOTFS': 'rootfs.img', + 'USER': 'user.img', + 'SYSTEM-DATA': 'system-data.img'}): + """docstring for flash""" + super(devicestandalone_tw1, self).flash(filenames, flasher, waiting, + partition_bin_mappings) diff --git a/litmus/device/devicestandalone_z1.py b/litmus/device/devicestandalone_z1.py deleted file mode 100644 index a4e61f5..0000000 --- a/litmus/device/devicestandalone_z1.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python3 -# Copyright 2015-2016 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from litmus.device.devicestandalone import devicestandalone - - -class devicestandalone_z1(devicestandalone): - """docstring for device""" - _screen_width = 480 - _screen_height = 800 diff --git a/litmus/templates/standalone/__init__.py b/litmus/templates/standalone/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/litmus/templates/standalone/conf_mobile.yaml b/litmus/templates/standalone/conf_mobile.yaml deleted file mode 100644 index 072e0d7..0000000 --- a/litmus/templates/standalone/conf_mobile.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ -username: -password: diff --git a/litmus/templates/standalone/conf_tv.yaml b/litmus/templates/standalone/conf_tv.yaml deleted file mode 100644 index 43a1164..0000000 --- a/litmus/templates/standalone/conf_tv.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ -username: -password: diff --git a/litmus/templates/standalone/conf_wearable.yaml b/litmus/templates/standalone/conf_wearable.yaml deleted file mode 100644 index eb9cbca..0000000 --- a/litmus/templates/standalone/conf_wearable.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ -username: -password: diff --git a/litmus/templates/standalone/tc_mobile.yaml b/litmus/templates/standalone/tc_mobile.yaml deleted file mode 100644 index 7932170..0000000 --- a/litmus/templates/standalone/tc_mobile.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: callmgrd_is_running - param: callmgrd - pattern: .*/usr/bin/callmgrd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone/tc_tv.yaml b/litmus/templates/standalone/tc_tv.yaml deleted file mode 100644 index 44ed8a2..0000000 --- a/litmus/templates/standalone/tc_tv.yaml +++ /dev/null @@ -1,23 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone/tc_wearable.yaml b/litmus/templates/standalone/tc_wearable.yaml deleted file mode 100644 index f1c099f..0000000 --- a/litmus/templates/standalone/tc_wearable.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: sound_server_is_running - param: sound_server - pattern: .*/usr/bin/sound_server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone/userscript.py b/litmus/templates/standalone/userscript.py deleted file mode 100755 index b799b63..0000000 --- a/litmus/templates/standalone/userscript.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env python3 -import os -from litmus.core.util import load_yaml -from litmus.core.manager import manager -from litmus.helper.helper import tizen_snapshot_downloader as downloader -from litmus.helper.tests import add_test_helper - - -def main(*args, **kwargs): - - # init manager instance - mgr = manager(*args, **kwargs) - - # init working directory - mgr.init_workingdir() - - # get projectinfo - project_info = load_yaml('conf_mobile.yaml') - #project_info = load_yaml('conf_wearable.yaml') - #project_info = load_yaml('conf_tv.yaml') - - username = project_info['username'] - password = project_info['password'] - binary_urls = project_info['binary_urls'] - - # get version from parameter - # ex) 20160923.3 - try: - version = kwargs['param'][0] - except (IndexError, TypeError): - version = None - - # download binaries from snapshot download server - filenames = [] - for url in binary_urls: - filenames.extend(downloader(url=url, - username=username, - password=password, - version=version)) - - # get an available device for testing. - dut = mgr.acquire_dut('standalone', max_retry_times=180) - #dut = mgr.acquire_dut_by_name('MyTM1', max_retry_times=180) - - # flashing binaries to device. - dut.flash(filenames) - - # turn on dut. - dut.on() - - # run helper functions for testing. - if not os.path.exists('result'): - os.mkdir('result') - - testcases = load_yaml('tc_mobile.yaml') - #testcases = load_yaml('tc_wearable.yaml') - #testcases = load_yaml('tc_tv.yaml') - add_test_helper(dut, testcases) - dut.run_tests() - - # turn off dut. - dut.off() - - # release a device - mgr.release_dut(dut) diff --git a/litmus/templates/standalone_tm1/__init__.py b/litmus/templates/standalone_tm1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/litmus/templates/standalone_tm1/conf_mobile.yaml b/litmus/templates/standalone_tm1/conf_mobile.yaml new file mode 100644 index 0000000..072e0d7 --- /dev/null +++ b/litmus/templates/standalone_tm1/conf_mobile.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ +username: +password: diff --git a/litmus/templates/standalone_tm1/conf_tv.yaml b/litmus/templates/standalone_tm1/conf_tv.yaml new file mode 100644 index 0000000..43a1164 --- /dev/null +++ b/litmus/templates/standalone_tm1/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ +username: +password: diff --git a/litmus/templates/standalone_tm1/conf_wearable.yaml b/litmus/templates/standalone_tm1/conf_wearable.yaml new file mode 100644 index 0000000..eb9cbca --- /dev/null +++ b/litmus/templates/standalone_tm1/conf_wearable.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ +username: +password: diff --git a/litmus/templates/standalone_tm1/tc_mobile.yaml b/litmus/templates/standalone_tm1/tc_mobile.yaml new file mode 100644 index 0000000..7932170 --- /dev/null +++ b/litmus/templates/standalone_tm1/tc_mobile.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: callmgrd_is_running + param: callmgrd + pattern: .*/usr/bin/callmgrd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_tm1/tc_tv.yaml b/litmus/templates/standalone_tm1/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/standalone_tm1/tc_tv.yaml @@ -0,0 +1,23 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_tm1/tc_wearable.yaml b/litmus/templates/standalone_tm1/tc_wearable.yaml new file mode 100644 index 0000000..f1c099f --- /dev/null +++ b/litmus/templates/standalone_tm1/tc_wearable.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: sound_server_is_running + param: sound_server + pattern: .*/usr/bin/sound_server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_tm1/userscript.py b/litmus/templates/standalone_tm1/userscript.py new file mode 100755 index 0000000..0ef6126 --- /dev/null +++ b/litmus/templates/standalone_tm1/userscript.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +import os +from litmus.core.util import load_yaml +from litmus.core.manager import manager +from litmus.helper.helper import tizen_snapshot_downloader as downloader +from litmus.helper.tests import add_test_helper + + +def main(*args, **kwargs): + + # init manager instance + mgr = manager(*args, **kwargs) + + # init working directory + mgr.init_workingdir() + + # get projectinfo + project_info = load_yaml('conf_mobile.yaml') + + username = project_info['username'] + password = project_info['password'] + binary_urls = project_info['binary_urls'] + + # get version from parameter + # ex) 20160923.3 + try: + version = kwargs['param'][0] + except (IndexError, TypeError): + version = None + + # download binaries from snapshot download server + filenames = [] + for url in binary_urls: + filenames.extend(downloader(url=url, + username=username, + password=password, + version=version)) + + # get an available device for testing. + dut = mgr.acquire_dut('standalone_tm1', max_retry_times=180) + + # flashing binaries to device. + dut.flash(filenames) + + # turn on dut. + dut.on() + + # run helper functions for testing. + if not os.path.exists('result'): + os.mkdir('result') + + testcases = load_yaml('tc_mobile.yaml') + add_test_helper(dut, testcases) + dut.run_tests() + + # turn off dut. + dut.off() + + # release a device + mgr.release_dut(dut) diff --git a/litmus/templates/standalone_tm2/__init__.py b/litmus/templates/standalone_tm2/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/litmus/templates/standalone_tm2/conf_mobile.yaml b/litmus/templates/standalone_tm2/conf_mobile.yaml new file mode 100644 index 0000000..1a6b53d --- /dev/null +++ b/litmus/templates/standalone_tm2/conf_mobile.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/arm64-wayland/mobile-wayland-arm64-tm2/ +username: +password: diff --git a/litmus/templates/standalone_tm2/conf_tv.yaml b/litmus/templates/standalone_tm2/conf_tv.yaml new file mode 100644 index 0000000..43a1164 --- /dev/null +++ b/litmus/templates/standalone_tm2/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ +username: +password: diff --git a/litmus/templates/standalone_tm2/conf_wearable.yaml b/litmus/templates/standalone_tm2/conf_wearable.yaml new file mode 100644 index 0000000..eb9cbca --- /dev/null +++ b/litmus/templates/standalone_tm2/conf_wearable.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ +username: +password: diff --git a/litmus/templates/standalone_tm2/tc_mobile.yaml b/litmus/templates/standalone_tm2/tc_mobile.yaml new file mode 100644 index 0000000..7932170 --- /dev/null +++ b/litmus/templates/standalone_tm2/tc_mobile.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: callmgrd_is_running + param: callmgrd + pattern: .*/usr/bin/callmgrd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_tm2/tc_tv.yaml b/litmus/templates/standalone_tm2/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/standalone_tm2/tc_tv.yaml @@ -0,0 +1,23 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_tm2/tc_wearable.yaml b/litmus/templates/standalone_tm2/tc_wearable.yaml new file mode 100644 index 0000000..f1c099f --- /dev/null +++ b/litmus/templates/standalone_tm2/tc_wearable.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: sound_server_is_running + param: sound_server + pattern: .*/usr/bin/sound_server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_tm2/userscript.py b/litmus/templates/standalone_tm2/userscript.py new file mode 100755 index 0000000..77a09c1 --- /dev/null +++ b/litmus/templates/standalone_tm2/userscript.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +import os +from litmus.core.util import load_yaml +from litmus.core.manager import manager +from litmus.helper.helper import tizen_snapshot_downloader as downloader +from litmus.helper.tests import add_test_helper + + +def main(*args, **kwargs): + + # init manager instance + mgr = manager(*args, **kwargs) + + # init working directory + mgr.init_workingdir() + + # get projectinfo + project_info = load_yaml('conf_mobile.yaml') + + username = project_info['username'] + password = project_info['password'] + binary_urls = project_info['binary_urls'] + + # get version from parameter + # ex) 20160923.3 + try: + version = kwargs['param'][0] + except (IndexError, TypeError): + version = None + + # download binaries from snapshot download server + filenames = [] + for url in binary_urls: + filenames.extend(downloader(url=url, + username=username, + password=password, + version=version)) + + # get an available device for testing. + dut = mgr.acquire_dut('standalone_tm2', max_retry_times=180) + + # flashing binaries to device. + dut.flash(filenames) + + # turn on dut. + dut.on() + + # run helper functions for testing. + if not os.path.exists('result'): + os.mkdir('result') + + testcases = load_yaml('tc_mobile.yaml') + add_test_helper(dut, testcases) + dut.run_tests() + + # turn off dut. + dut.off() + + # release a device + mgr.release_dut(dut) diff --git a/litmus/templates/standalone_tw1/__init__.py b/litmus/templates/standalone_tw1/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/litmus/templates/standalone_tw1/conf_mobile.yaml b/litmus/templates/standalone_tw1/conf_mobile.yaml new file mode 100644 index 0000000..072e0d7 --- /dev/null +++ b/litmus/templates/standalone_tw1/conf_mobile.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ +username: +password: diff --git a/litmus/templates/standalone_tw1/conf_tv.yaml b/litmus/templates/standalone_tw1/conf_tv.yaml new file mode 100644 index 0000000..43a1164 --- /dev/null +++ b/litmus/templates/standalone_tw1/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ +username: +password: diff --git a/litmus/templates/standalone_tw1/conf_wearable.yaml b/litmus/templates/standalone_tw1/conf_wearable.yaml new file mode 100644 index 0000000..eb9cbca --- /dev/null +++ b/litmus/templates/standalone_tw1/conf_wearable.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ +username: +password: diff --git a/litmus/templates/standalone_tw1/tc_mobile.yaml b/litmus/templates/standalone_tw1/tc_mobile.yaml new file mode 100644 index 0000000..7932170 --- /dev/null +++ b/litmus/templates/standalone_tw1/tc_mobile.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: callmgrd_is_running + param: callmgrd + pattern: .*/usr/bin/callmgrd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_tw1/tc_tv.yaml b/litmus/templates/standalone_tw1/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/standalone_tw1/tc_tv.yaml @@ -0,0 +1,23 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_tw1/tc_wearable.yaml b/litmus/templates/standalone_tw1/tc_wearable.yaml new file mode 100644 index 0000000..f1c099f --- /dev/null +++ b/litmus/templates/standalone_tw1/tc_wearable.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: sound_server_is_running + param: sound_server + pattern: .*/usr/bin/sound_server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_tw1/userscript.py b/litmus/templates/standalone_tw1/userscript.py new file mode 100755 index 0000000..e20d6dc --- /dev/null +++ b/litmus/templates/standalone_tw1/userscript.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +import os +from litmus.core.util import load_yaml +from litmus.core.manager import manager +from litmus.helper.helper import tizen_snapshot_downloader as downloader +from litmus.helper.tests import add_test_helper + + +def main(*args, **kwargs): + + # init manager instance + mgr = manager(*args, **kwargs) + + # init working directory + mgr.init_workingdir() + + # get projectinfo + project_info = load_yaml('conf_wearable.yaml') + + username = project_info['username'] + password = project_info['password'] + binary_urls = project_info['binary_urls'] + + # get version from parameter + # ex) 20160923.3 + try: + version = kwargs['param'][0] + except (IndexError, TypeError): + version = None + + # download binaries from snapshot download server + filenames = [] + for url in binary_urls: + filenames.extend(downloader(url=url, + username=username, + password=password, + version=version)) + + # get an available device for testing. + dut = mgr.acquire_dut('standalone_tw1', max_retry_times=180) + + # flashing binaries to device. + dut.flash(filenames) + + # turn on dut. + dut.on() + + # run helper functions for testing. + if not os.path.exists('result'): + os.mkdir('result') + + testcases = load_yaml('tc_wearable.yaml') + add_test_helper(dut, testcases) + dut.run_tests() + + # turn off dut. + dut.off() + + # release a device + mgr.release_dut(dut) diff --git a/litmus/templates/standalone_u3/__init__.py b/litmus/templates/standalone_u3/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/litmus/templates/standalone_u3/conf_mobile.yaml b/litmus/templates/standalone_u3/conf_mobile.yaml new file mode 100644 index 0000000..072e0d7 --- /dev/null +++ b/litmus/templates/standalone_u3/conf_mobile.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ +username: +password: diff --git a/litmus/templates/standalone_u3/conf_tv.yaml b/litmus/templates/standalone_u3/conf_tv.yaml new file mode 100644 index 0000000..43a1164 --- /dev/null +++ b/litmus/templates/standalone_u3/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ +username: +password: diff --git a/litmus/templates/standalone_u3/conf_wearable.yaml b/litmus/templates/standalone_u3/conf_wearable.yaml new file mode 100644 index 0000000..eb9cbca --- /dev/null +++ b/litmus/templates/standalone_u3/conf_wearable.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ +username: +password: diff --git a/litmus/templates/standalone_u3/tc_mobile.yaml b/litmus/templates/standalone_u3/tc_mobile.yaml new file mode 100644 index 0000000..7932170 --- /dev/null +++ b/litmus/templates/standalone_u3/tc_mobile.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: callmgrd_is_running + param: callmgrd + pattern: .*/usr/bin/callmgrd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_u3/tc_tv.yaml b/litmus/templates/standalone_u3/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/standalone_u3/tc_tv.yaml @@ -0,0 +1,23 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_u3/tc_wearable.yaml b/litmus/templates/standalone_u3/tc_wearable.yaml new file mode 100644 index 0000000..f1c099f --- /dev/null +++ b/litmus/templates/standalone_u3/tc_wearable.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: sound_server_is_running + param: sound_server + pattern: .*/usr/bin/sound_server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_u3/userscript.py b/litmus/templates/standalone_u3/userscript.py new file mode 100755 index 0000000..f577e40 --- /dev/null +++ b/litmus/templates/standalone_u3/userscript.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +import os +from litmus.core.util import load_yaml +from litmus.core.manager import manager +from litmus.helper.helper import tizen_snapshot_downloader as downloader +from litmus.helper.tests import add_test_helper + + +def main(*args, **kwargs): + + # init manager instance + mgr = manager(*args, **kwargs) + + # init working directory + mgr.init_workingdir() + + # get projectinfo + project_info = load_yaml('conf_tv.yaml') + + username = project_info['username'] + password = project_info['password'] + binary_urls = project_info['binary_urls'] + + # get version from parameter + # ex) 20160923.3 + try: + version = kwargs['param'][0] + except (IndexError, TypeError): + version = None + + # download binaries from snapshot download server + filenames = [] + for url in binary_urls: + filenames.extend(downloader(url=url, + username=username, + password=password, + version=version)) + + # get an available device for testing. + dut = mgr.acquire_dut('standalone_u3', max_retry_times=180) + + # flashing binaries to device. + dut.flash(filenames) + + # turn on dut. + dut.on() + + # run helper functions for testing. + if not os.path.exists('result'): + os.mkdir('result') + + testcases = load_yaml('tc_tv.yaml') + add_test_helper(dut, testcases) + dut.run_tests() + + # turn off dut. + dut.off() + + # release a device + mgr.release_dut(dut) diff --git a/litmus/templates/standalone_xu3/__init__.py b/litmus/templates/standalone_xu3/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/litmus/templates/standalone_xu3/conf_mobile.yaml b/litmus/templates/standalone_xu3/conf_mobile.yaml new file mode 100644 index 0000000..072e0d7 --- /dev/null +++ b/litmus/templates/standalone_xu3/conf_mobile.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ +username: +password: diff --git a/litmus/templates/standalone_xu3/conf_tv.yaml b/litmus/templates/standalone_xu3/conf_tv.yaml new file mode 100644 index 0000000..43a1164 --- /dev/null +++ b/litmus/templates/standalone_xu3/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ +username: +password: diff --git a/litmus/templates/standalone_xu3/conf_wearable.yaml b/litmus/templates/standalone_xu3/conf_wearable.yaml new file mode 100644 index 0000000..eb9cbca --- /dev/null +++ b/litmus/templates/standalone_xu3/conf_wearable.yaml @@ -0,0 +1,4 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ +username: +password: diff --git a/litmus/templates/standalone_xu3/tc_mobile.yaml b/litmus/templates/standalone_xu3/tc_mobile.yaml new file mode 100644 index 0000000..7932170 --- /dev/null +++ b/litmus/templates/standalone_xu3/tc_mobile.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: callmgrd_is_running + param: callmgrd + pattern: .*/usr/bin/callmgrd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_xu3/tc_tv.yaml b/litmus/templates/standalone_xu3/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/standalone_xu3/tc_tv.yaml @@ -0,0 +1,23 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_xu3/tc_wearable.yaml b/litmus/templates/standalone_xu3/tc_wearable.yaml new file mode 100644 index 0000000..f1c099f --- /dev/null +++ b/litmus/templates/standalone_xu3/tc_wearable.yaml @@ -0,0 +1,50 @@ +testcases: + - name: verify_process_is_running + from: litmus.helper.tests + result_dir: result + plan: + - name: dbus_is_running + param: dbus + pattern: .*/usr/bin/dbus-daemon.* + - name: enlightenment_is_running + param: enlightenment + pattern: .*/usr/bin/enlightenment.* + - name: sensord_is_running + param: sensord + pattern: .*/usr/bin/sensord.* + - name: deviced_is_running + param: deviced + pattern: .*/usr/bin/deviced.* + - name: pulseaudio_is_running + param: pulseaudio + pattern: .*/usr/bin/pulseaudio.* + - name: sdbd_is_running + param: sdbd + pattern: .*/usr/sbin/sdbd.* + - name: msg-server_is_running + param: msg-server + pattern: .*/usr/bin/msg-server.* + - name: connmand_is_running + param: connmand + pattern: .*/usr/sbin/connmand.* + - name: alarm-server_is_running + param: alarm-server + pattern: .*/usr/bin/alarm-server.* + - name: sound_server_is_running + param: sound_server + pattern: .*/usr/bin/sound_server.* + - name: media-server_is_running + param: media-server + pattern: .*/usr/bin/media-server.* + - name: verify_dmesg + from: litmus.helper.tests + result_dir: result + plan: + - name: panel_is_alive + param: panel + pattern: .*panel is dead.* + - name: verify_wifi_is_working + from: litmus.helper.tests + wifi_apname: setup + wifi_password: + result_dir: result diff --git a/litmus/templates/standalone_xu3/userscript.py b/litmus/templates/standalone_xu3/userscript.py new file mode 100755 index 0000000..d19dc35 --- /dev/null +++ b/litmus/templates/standalone_xu3/userscript.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 +import os +from litmus.core.util import load_yaml +from litmus.core.manager import manager +from litmus.helper.helper import tizen_snapshot_downloader as downloader +from litmus.helper.tests import add_test_helper + + +def main(*args, **kwargs): + + # init manager instance + mgr = manager(*args, **kwargs) + + # init working directory + mgr.init_workingdir() + + # get projectinfo + project_info = load_yaml('conf_tv.yaml') + + username = project_info['username'] + password = project_info['password'] + binary_urls = project_info['binary_urls'] + + # get version from parameter + # ex) 20160923.3 + try: + version = kwargs['param'][0] + except (IndexError, TypeError): + version = None + + # download binaries from snapshot download server + filenames = [] + for url in binary_urls: + filenames.extend(downloader(url=url, + username=username, + password=password, + version=version)) + + # get an available device for testing. + dut = mgr.acquire_dut('standalone_xu3', max_retry_times=180) + + # flashing binaries to device. + dut.flash(filenames) + + # turn on dut. + dut.on() + + # run helper functions for testing. + if not os.path.exists('result'): + os.mkdir('result') + + testcases = load_yaml('tc_tv.yaml') + add_test_helper(dut, testcases) + dut.run_tests() + + # turn off dut. + dut.off() + + # release a device + mgr.release_dut(dut) -- cgit v1.2.3