summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonghoon Shin <dhs.shine@gmail.com>2016-10-21 13:55:46 +0000
committerDonghoon Shin <dhs.shine@gmail.com>2016-10-21 13:58:14 +0000
commit14f58acd79177f41f3f7d6c0980bf2746530ccc1 (patch)
tree9a7704e48541aa8cb45965d6e89d7b295cafd653
parente1be88acca74dd01c8c2aea5d9781eaa8b25afdc (diff)
downloadlitmus-14f58acd79177f41f3f7d6c0980bf2746530ccc1.tar.gz
litmus-14f58acd79177f41f3f7d6c0980bf2746530ccc1.tar.bz2
litmus-14f58acd79177f41f3f7d6c0980bf2746530ccc1.zip
Update flash method for tw1 to skip passing parameter "flasher"
Change-Id: I0f6497f82a92e0ae436d35355f208773ced614e5
-rw-r--r--CHANGES.txt4
-rw-r--r--README.md2
-rw-r--r--debian/changelog6
-rw-r--r--litmus/__init__.py6
-rw-r--r--litmus/device/devicestandalone_m0.py22
-rw-r--r--litmus/device/devicestandalone_tw1.py9
-rw-r--r--litmus/device/devicestandalone_z1.py22
-rw-r--r--litmus/templates/standalone_tm1/__init__.py (renamed from litmus/templates/standalone/__init__.py)0
-rw-r--r--litmus/templates/standalone_tm1/conf_mobile.yaml (renamed from litmus/templates/standalone/conf_mobile.yaml)0
-rw-r--r--litmus/templates/standalone_tm1/conf_tv.yaml (renamed from litmus/templates/standalone/conf_tv.yaml)0
-rw-r--r--litmus/templates/standalone_tm1/conf_wearable.yaml (renamed from litmus/templates/standalone/conf_wearable.yaml)0
-rw-r--r--litmus/templates/standalone_tm1/tc_mobile.yaml (renamed from litmus/templates/standalone/tc_mobile.yaml)0
-rw-r--r--litmus/templates/standalone_tm1/tc_tv.yaml (renamed from litmus/templates/standalone/tc_tv.yaml)0
-rw-r--r--litmus/templates/standalone_tm1/tc_wearable.yaml (renamed from litmus/templates/standalone/tc_wearable.yaml)0
-rwxr-xr-xlitmus/templates/standalone_tm1/userscript.py (renamed from litmus/templates/standalone/userscript.py)7
-rw-r--r--litmus/templates/standalone_tm2/__init__.py0
-rw-r--r--litmus/templates/standalone_tm2/conf_mobile.yaml4
-rw-r--r--litmus/templates/standalone_tm2/conf_tv.yaml5
-rw-r--r--litmus/templates/standalone_tm2/conf_wearable.yaml4
-rw-r--r--litmus/templates/standalone_tm2/tc_mobile.yaml50
-rw-r--r--litmus/templates/standalone_tm2/tc_tv.yaml23
-rw-r--r--litmus/templates/standalone_tm2/tc_wearable.yaml50
-rwxr-xr-xlitmus/templates/standalone_tm2/userscript.py60
-rw-r--r--litmus/templates/standalone_tw1/__init__.py0
-rw-r--r--litmus/templates/standalone_tw1/conf_mobile.yaml4
-rw-r--r--litmus/templates/standalone_tw1/conf_tv.yaml5
-rw-r--r--litmus/templates/standalone_tw1/conf_wearable.yaml4
-rw-r--r--litmus/templates/standalone_tw1/tc_mobile.yaml50
-rw-r--r--litmus/templates/standalone_tw1/tc_tv.yaml23
-rw-r--r--litmus/templates/standalone_tw1/tc_wearable.yaml50
-rwxr-xr-xlitmus/templates/standalone_tw1/userscript.py60
-rw-r--r--litmus/templates/standalone_u3/__init__.py0
-rw-r--r--litmus/templates/standalone_u3/conf_mobile.yaml4
-rw-r--r--litmus/templates/standalone_u3/conf_tv.yaml5
-rw-r--r--litmus/templates/standalone_u3/conf_wearable.yaml4
-rw-r--r--litmus/templates/standalone_u3/tc_mobile.yaml50
-rw-r--r--litmus/templates/standalone_u3/tc_tv.yaml23
-rw-r--r--litmus/templates/standalone_u3/tc_wearable.yaml50
-rwxr-xr-xlitmus/templates/standalone_u3/userscript.py60
-rw-r--r--litmus/templates/standalone_xu3/__init__.py0
-rw-r--r--litmus/templates/standalone_xu3/conf_mobile.yaml4
-rw-r--r--litmus/templates/standalone_xu3/conf_tv.yaml5
-rw-r--r--litmus/templates/standalone_xu3/conf_wearable.yaml4
-rw-r--r--litmus/templates/standalone_xu3/tc_mobile.yaml50
-rw-r--r--litmus/templates/standalone_xu3/tc_tv.yaml23
-rw-r--r--litmus/templates/standalone_xu3/tc_wearable.yaml50
-rwxr-xr-xlitmus/templates/standalone_xu3/userscript.py60
47 files changed, 809 insertions, 53 deletions
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 <dhs.shin@samsung.com> 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_tm1/__init__.py
index e69de29..e69de29 100644
--- a/litmus/templates/standalone/__init__.py
+++ b/litmus/templates/standalone_tm1/__init__.py
diff --git a/litmus/templates/standalone/conf_mobile.yaml b/litmus/templates/standalone_tm1/conf_mobile.yaml
index 072e0d7..072e0d7 100644
--- a/litmus/templates/standalone/conf_mobile.yaml
+++ b/litmus/templates/standalone_tm1/conf_mobile.yaml
diff --git a/litmus/templates/standalone/conf_tv.yaml b/litmus/templates/standalone_tm1/conf_tv.yaml
index 43a1164..43a1164 100644
--- a/litmus/templates/standalone/conf_tv.yaml
+++ b/litmus/templates/standalone_tm1/conf_tv.yaml
diff --git a/litmus/templates/standalone/conf_wearable.yaml b/litmus/templates/standalone_tm1/conf_wearable.yaml
index eb9cbca..eb9cbca 100644
--- a/litmus/templates/standalone/conf_wearable.yaml
+++ b/litmus/templates/standalone_tm1/conf_wearable.yaml
diff --git a/litmus/templates/standalone/tc_mobile.yaml b/litmus/templates/standalone_tm1/tc_mobile.yaml
index 7932170..7932170 100644
--- a/litmus/templates/standalone/tc_mobile.yaml
+++ b/litmus/templates/standalone_tm1/tc_mobile.yaml
diff --git a/litmus/templates/standalone/tc_tv.yaml b/litmus/templates/standalone_tm1/tc_tv.yaml
index 44ed8a2..44ed8a2 100644
--- a/litmus/templates/standalone/tc_tv.yaml
+++ b/litmus/templates/standalone_tm1/tc_tv.yaml
diff --git a/litmus/templates/standalone/tc_wearable.yaml b/litmus/templates/standalone_tm1/tc_wearable.yaml
index f1c099f..f1c099f 100644
--- a/litmus/templates/standalone/tc_wearable.yaml
+++ b/litmus/templates/standalone_tm1/tc_wearable.yaml
diff --git a/litmus/templates/standalone/userscript.py b/litmus/templates/standalone_tm1/userscript.py
index b799b63..0ef6126 100755
--- a/litmus/templates/standalone/userscript.py
+++ b/litmus/templates/standalone_tm1/userscript.py
@@ -16,8 +16,6 @@ def main(*args, **kwargs):
# 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']
@@ -39,8 +37,7 @@ def main(*args, **kwargs):
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)
+ dut = mgr.acquire_dut('standalone_tm1', max_retry_times=180)
# flashing binaries to device.
dut.flash(filenames)
@@ -53,8 +50,6 @@ def main(*args, **kwargs):
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()
diff --git a/litmus/templates/standalone_tm2/__init__.py b/litmus/templates/standalone_tm2/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/litmus/templates/standalone_tm2/__init__.py
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: <username>
+password: <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: <username>
+password: <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: <username>
+password: <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
--- /dev/null
+++ b/litmus/templates/standalone_tw1/__init__.py
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: <username>
+password: <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: <username>
+password: <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: <username>
+password: <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
--- /dev/null
+++ b/litmus/templates/standalone_u3/__init__.py
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: <username>
+password: <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: <username>
+password: <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: <username>
+password: <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
--- /dev/null
+++ b/litmus/templates/standalone_xu3/__init__.py
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: <username>
+password: <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: <username>
+password: <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: <username>
+password: <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)