Update flash method for tw1 to skip passing parameter "flasher" 08/93308/2
authorDonghoon Shin <dhs.shine@gmail.com>
Fri, 21 Oct 2016 13:55:46 +0000 (13:55 +0000)
committerDonghoon Shin <dhs.shine@gmail.com>
Fri, 21 Oct 2016 13:58:14 +0000 (13:58 +0000)
Change-Id: I0f6497f82a92e0ae436d35355f208773ced614e5

55 files changed:
CHANGES.txt
README.md
debian/changelog
litmus/__init__.py
litmus/device/devicestandalone_m0.py [deleted file]
litmus/device/devicestandalone_tw1.py
litmus/device/devicestandalone_z1.py [deleted file]
litmus/templates/standalone/__init__.py [deleted file]
litmus/templates/standalone/conf_mobile.yaml [deleted file]
litmus/templates/standalone/conf_tv.yaml [deleted file]
litmus/templates/standalone/conf_wearable.yaml [deleted file]
litmus/templates/standalone/tc_mobile.yaml [deleted file]
litmus/templates/standalone/tc_tv.yaml [deleted file]
litmus/templates/standalone/tc_wearable.yaml [deleted file]
litmus/templates/standalone/userscript.py [deleted file]
litmus/templates/standalone_tm1/__init__.py [new file with mode: 0644]
litmus/templates/standalone_tm1/conf_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_tm1/conf_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_tm1/conf_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_tm1/tc_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_tm1/tc_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_tm1/tc_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_tm1/userscript.py [new file with mode: 0755]
litmus/templates/standalone_tm2/__init__.py [new file with mode: 0644]
litmus/templates/standalone_tm2/conf_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_tm2/conf_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_tm2/conf_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_tm2/tc_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_tm2/tc_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_tm2/tc_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_tm2/userscript.py [new file with mode: 0755]
litmus/templates/standalone_tw1/__init__.py [new file with mode: 0644]
litmus/templates/standalone_tw1/conf_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_tw1/conf_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_tw1/conf_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_tw1/tc_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_tw1/tc_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_tw1/tc_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_tw1/userscript.py [new file with mode: 0755]
litmus/templates/standalone_u3/__init__.py [new file with mode: 0644]
litmus/templates/standalone_u3/conf_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_u3/conf_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_u3/conf_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_u3/tc_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_u3/tc_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_u3/tc_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_u3/userscript.py [new file with mode: 0755]
litmus/templates/standalone_xu3/__init__.py [new file with mode: 0644]
litmus/templates/standalone_xu3/conf_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_xu3/conf_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_xu3/conf_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_xu3/tc_mobile.yaml [new file with mode: 0644]
litmus/templates/standalone_xu3/tc_tv.yaml [new file with mode: 0644]
litmus/templates/standalone_xu3/tc_wearable.yaml [new file with mode: 0644]
litmus/templates/standalone_xu3/userscript.py [new file with mode: 0755]

index 9da8bc42451a93901118a8c986483e221be0dc9c..27808bbffdb5b64dff8c8975ea006ed06da61ed0 100644 (file)
@@ -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'
index a5124e44838bbbeb5f3efd8c993f7b58f7f0ba38..9c7bd31e0b40267e32059e3896e821b92bb8dcd6 100644 (file)
--- 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
index 63cb7d0e57e1864217e1af02df418e9e0e9d7388..6563309c490cdc205384f32c9ea68ec723589bfb 100644 (file)
@@ -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
index 9a396a841091cc006bcb18b88eeec38533b612ba..9f1fca657aea6a23f1aee7ded16c8e568a252d5b 100644 (file)
 # 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 (file)
index 6306d89..0000000
+++ /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
index 774a250472a84291415f7bf7dcb2fb9a7af5cc12..35c182d5a7ab4918dc110b50f516f6fe996d89b7 100644 (file)
@@ -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 (file)
index a4e61f5..0000000
+++ /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 (file)
index e69de29..0000000
diff --git a/litmus/templates/standalone/conf_mobile.yaml b/litmus/templates/standalone/conf_mobile.yaml
deleted file mode 100644 (file)
index 072e0d7..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-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/conf_tv.yaml b/litmus/templates/standalone/conf_tv.yaml
deleted file mode 100644 (file)
index 43a1164..0000000
+++ /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: <username>
-password: <password>
diff --git a/litmus/templates/standalone/conf_wearable.yaml b/litmus/templates/standalone/conf_wearable.yaml
deleted file mode 100644 (file)
index eb9cbca..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-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/tc_mobile.yaml b/litmus/templates/standalone/tc_mobile.yaml
deleted file mode 100644 (file)
index 7932170..0000000
+++ /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 (file)
index 44ed8a2..0000000
+++ /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 (file)
index f1c099f..0000000
+++ /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 (executable)
index b799b63..0000000
+++ /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 (file)
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 (file)
index 0000000..072e0d7
--- /dev/null
@@ -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_tm1/conf_tv.yaml b/litmus/templates/standalone_tm1/conf_tv.yaml
new file mode 100644 (file)
index 0000000..43a1164
--- /dev/null
@@ -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_tm1/conf_wearable.yaml b/litmus/templates/standalone_tm1/conf_wearable.yaml
new file mode 100644 (file)
index 0000000..eb9cbca
--- /dev/null
@@ -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_tm1/tc_mobile.yaml b/litmus/templates/standalone_tm1/tc_mobile.yaml
new file mode 100644 (file)
index 0000000..7932170
--- /dev/null
@@ -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 (file)
index 0000000..44ed8a2
--- /dev/null
@@ -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 (file)
index 0000000..f1c099f
--- /dev/null
@@ -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 (executable)
index 0000000..0ef6126
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..1a6b53d
--- /dev/null
@@ -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 (file)
index 0000000..43a1164
--- /dev/null
@@ -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 (file)
index 0000000..eb9cbca
--- /dev/null
@@ -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 (file)
index 0000000..7932170
--- /dev/null
@@ -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 (file)
index 0000000..44ed8a2
--- /dev/null
@@ -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 (file)
index 0000000..f1c099f
--- /dev/null
@@ -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 (executable)
index 0000000..77a09c1
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..072e0d7
--- /dev/null
@@ -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 (file)
index 0000000..43a1164
--- /dev/null
@@ -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 (file)
index 0000000..eb9cbca
--- /dev/null
@@ -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 (file)
index 0000000..7932170
--- /dev/null
@@ -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 (file)
index 0000000..44ed8a2
--- /dev/null
@@ -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 (file)
index 0000000..f1c099f
--- /dev/null
@@ -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 (executable)
index 0000000..e20d6dc
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..072e0d7
--- /dev/null
@@ -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 (file)
index 0000000..43a1164
--- /dev/null
@@ -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 (file)
index 0000000..eb9cbca
--- /dev/null
@@ -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 (file)
index 0000000..7932170
--- /dev/null
@@ -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 (file)
index 0000000..44ed8a2
--- /dev/null
@@ -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 (file)
index 0000000..f1c099f
--- /dev/null
@@ -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 (executable)
index 0000000..f577e40
--- /dev/null
@@ -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 (file)
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 (file)
index 0000000..072e0d7
--- /dev/null
@@ -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 (file)
index 0000000..43a1164
--- /dev/null
@@ -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 (file)
index 0000000..eb9cbca
--- /dev/null
@@ -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 (file)
index 0000000..7932170
--- /dev/null
@@ -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 (file)
index 0000000..44ed8a2
--- /dev/null
@@ -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 (file)
index 0000000..f1c099f
--- /dev/null
@@ -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 (executable)
index 0000000..d19dc35
--- /dev/null
@@ -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)