From: Donghoon Shin Date: Thu, 2 Feb 2017 02:13:11 +0000 (+0900) Subject: Update templates X-Git-Tag: 0.3.5~8^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00735e48430268c18d6a5339e0f58d4dd375d3dd;p=tools%2Flitmus.git Update templates --- diff --git a/litmus/templates/artik10/conf.yaml b/litmus/templates/artik10/conf.yaml deleted file mode 100644 index 5b81875..0000000 --- a/litmus/templates/artik10/conf.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-wayland-3parts-armv7l-artik/ - - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-boot-armv7l-artik10/ -username: -password: diff --git a/litmus/templates/artik10/conf_iot.yaml b/litmus/templates/artik10/conf_iot.yaml new file mode 100644 index 0000000..5b81875 --- /dev/null +++ b/litmus/templates/artik10/conf_iot.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-wayland-3parts-armv7l-artik/ + - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-boot-armv7l-artik10/ +username: +password: diff --git a/litmus/templates/artik10/misc/autoinput b/litmus/templates/artik10/misc/autoinput deleted file mode 100755 index 88d78e3..0000000 Binary files a/litmus/templates/artik10/misc/autoinput and /dev/null differ diff --git a/litmus/templates/artik10/misc/getevent b/litmus/templates/artik10/misc/getevent deleted file mode 100755 index 66e2c2a..0000000 Binary files a/litmus/templates/artik10/misc/getevent and /dev/null differ diff --git a/litmus/templates/artik10/tc.yaml b/litmus/templates/artik10/tc.yaml deleted file mode 100644 index abaa181..0000000 --- a/litmus/templates/artik10/tc.yaml +++ /dev/null @@ -1,32 +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: 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.* diff --git a/litmus/templates/artik10/tc_iot.yaml b/litmus/templates/artik10/tc_iot.yaml new file mode 100644 index 0000000..abaa181 --- /dev/null +++ b/litmus/templates/artik10/tc_iot.yaml @@ -0,0 +1,32 @@ +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: 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.* diff --git a/litmus/templates/artik10/userscript.py b/litmus/templates/artik10/userscript.py index be6c41a..a4636fb 100755 --- a/litmus/templates/artik10/userscript.py +++ b/litmus/templates/artik10/userscript.py @@ -16,7 +16,7 @@ def main(*args, **kwargs): mgr.init_workingdir() # get projectinfo - project_info = load_yaml('conf.yaml') + project_info = load_yaml('conf_iot.yaml') username = project_info['username'] password = project_info['password'] @@ -24,6 +24,9 @@ def main(*args, **kwargs): plugin_info = project_info['plugin_info'] # get version from parameter + # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -38,6 +41,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [ARTIK10_001] + # dev_type = artik10 + # uart_port = /dev/ttyUSB0 + dut = mgr.acquire_dut('artik10', max_retry_times=180) # flashing binaries to device. @@ -56,7 +66,7 @@ def main(*args, **kwargs): if not os.path.exists('result'): os.mkdir('result') - testcases = load_yaml('tc.yaml') + testcases = load_yaml('tc_iot.yaml') add_test_helper(dut, testcases) dut.run_tests() diff --git a/litmus/templates/artik5/conf.yaml b/litmus/templates/artik5/conf.yaml deleted file mode 100644 index 7e90ffe..0000000 --- a/litmus/templates/artik5/conf.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-wayland-3parts-armv7l-artik/ - - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-boot-armv7l-artik5/ -username: -password: diff --git a/litmus/templates/artik5/conf_iot.yaml b/litmus/templates/artik5/conf_iot.yaml new file mode 100644 index 0000000..7e90ffe --- /dev/null +++ b/litmus/templates/artik5/conf_iot.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-wayland-3parts-armv7l-artik/ + - http://download.tizen.org/snapshots/tizen/common/latest/images/arm-wayland/common-boot-armv7l-artik5/ +username: +password: diff --git a/litmus/templates/artik5/misc/autoinput b/litmus/templates/artik5/misc/autoinput deleted file mode 100755 index 88d78e3..0000000 Binary files a/litmus/templates/artik5/misc/autoinput and /dev/null differ diff --git a/litmus/templates/artik5/misc/getevent b/litmus/templates/artik5/misc/getevent deleted file mode 100755 index 66e2c2a..0000000 Binary files a/litmus/templates/artik5/misc/getevent and /dev/null differ diff --git a/litmus/templates/artik5/tc.yaml b/litmus/templates/artik5/tc.yaml deleted file mode 100644 index abaa181..0000000 --- a/litmus/templates/artik5/tc.yaml +++ /dev/null @@ -1,32 +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: 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.* diff --git a/litmus/templates/artik5/tc_iot.yaml b/litmus/templates/artik5/tc_iot.yaml new file mode 100644 index 0000000..abaa181 --- /dev/null +++ b/litmus/templates/artik5/tc_iot.yaml @@ -0,0 +1,32 @@ +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: 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.* diff --git a/litmus/templates/artik5/userscript.py b/litmus/templates/artik5/userscript.py index ccfb88e..fb7f9c1 100755 --- a/litmus/templates/artik5/userscript.py +++ b/litmus/templates/artik5/userscript.py @@ -16,7 +16,7 @@ def main(*args, **kwargs): mgr.init_workingdir() # get projectinfo - project_info = load_yaml('conf.yaml') + project_info = load_yaml('conf_iot.yaml') username = project_info['username'] password = project_info['password'] @@ -24,6 +24,9 @@ def main(*args, **kwargs): plugin_info = project_info['plugin_info'] # get version from parameter + # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -38,6 +41,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [ARTIK5_001] + # dev_type = artik5 + # uart_port = /dev/ttyUSB0 + dut = mgr.acquire_dut('artik5', max_retry_times=180) # flashing binaries to device. @@ -56,7 +66,7 @@ def main(*args, **kwargs): if not os.path.exists('result'): os.mkdir('result') - testcases = load_yaml('tc.yaml') + testcases = load_yaml('tc_iot.yaml') add_test_helper(dut, testcases) dut.run_tests() diff --git a/litmus/templates/standalone_tm1/conf_mobile.yaml b/litmus/templates/standalone_tm1/conf_mobile.yaml index 072e0d7..2530c5c 100644 --- a/litmus/templates/standalone_tm1/conf_mobile.yaml +++ b/litmus/templates/standalone_tm1/conf_mobile.yaml @@ -1,4 +1,4 @@ binary_urls: - - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ username: password: diff --git a/litmus/templates/standalone_tm1/conf_tv.yaml b/litmus/templates/standalone_tm1/conf_tv.yaml deleted file mode 100644 index 43a1164..0000000 --- a/litmus/templates/standalone_tm1/conf_tv.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ -username: -password: diff --git a/litmus/templates/standalone_tm1/conf_wearable.yaml b/litmus/templates/standalone_tm1/conf_wearable.yaml deleted file mode 100644 index eb9cbca..0000000 --- a/litmus/templates/standalone_tm1/conf_wearable.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ -username: -password: diff --git a/litmus/templates/standalone_tm1/tc_tv.yaml b/litmus/templates/standalone_tm1/tc_tv.yaml deleted file mode 100644 index 44ed8a2..0000000 --- a/litmus/templates/standalone_tm1/tc_tv.yaml +++ /dev/null @@ -1,23 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_tm1/tc_wearable.yaml b/litmus/templates/standalone_tm1/tc_wearable.yaml deleted file mode 100644 index f1c099f..0000000 --- a/litmus/templates/standalone_tm1/tc_wearable.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: sound_server_is_running - param: sound_server - pattern: .*/usr/bin/sound_server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_tm1/userscript.py b/litmus/templates/standalone_tm1/userscript.py index 0ef6126..267e5dd 100755 --- a/litmus/templates/standalone_tm1/userscript.py +++ b/litmus/templates/standalone_tm1/userscript.py @@ -23,6 +23,8 @@ def main(*args, **kwargs): # get version from parameter # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -37,6 +39,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [TM1_001] + # dev_type = standalone_tm1 + # serialno = 01234TEST + dut = mgr.acquire_dut('standalone_tm1', max_retry_times=180) # flashing binaries to device. diff --git a/litmus/templates/standalone_tm2/conf_mobile.yaml b/litmus/templates/standalone_tm2/conf_mobile.yaml index 1a6b53d..62b7a52 100644 --- a/litmus/templates/standalone_tm2/conf_mobile.yaml +++ b/litmus/templates/standalone_tm2/conf_mobile.yaml @@ -1,4 +1,4 @@ binary_urls: - - http://download.tizen.org/snapshots/tizen/mobile/latest/images/arm64-wayland/mobile-wayland-arm64-tm2/ + - http://download.tizen.org/snapshots/tizen/mobile/latest/images/arm64-wayland/mobile-wayland-arm64-tm2/ username: password: diff --git a/litmus/templates/standalone_tm2/conf_tv.yaml b/litmus/templates/standalone_tm2/conf_tv.yaml deleted file mode 100644 index 43a1164..0000000 --- a/litmus/templates/standalone_tm2/conf_tv.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ -username: -password: diff --git a/litmus/templates/standalone_tm2/conf_wearable.yaml b/litmus/templates/standalone_tm2/conf_wearable.yaml deleted file mode 100644 index eb9cbca..0000000 --- a/litmus/templates/standalone_tm2/conf_wearable.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ -username: -password: diff --git a/litmus/templates/standalone_tm2/tc_tv.yaml b/litmus/templates/standalone_tm2/tc_tv.yaml deleted file mode 100644 index 44ed8a2..0000000 --- a/litmus/templates/standalone_tm2/tc_tv.yaml +++ /dev/null @@ -1,23 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_tm2/tc_wearable.yaml b/litmus/templates/standalone_tm2/tc_wearable.yaml deleted file mode 100644 index f1c099f..0000000 --- a/litmus/templates/standalone_tm2/tc_wearable.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: sound_server_is_running - param: sound_server - pattern: .*/usr/bin/sound_server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_tm2/userscript.py b/litmus/templates/standalone_tm2/userscript.py index 77a09c1..58b4bbb 100755 --- a/litmus/templates/standalone_tm2/userscript.py +++ b/litmus/templates/standalone_tm2/userscript.py @@ -23,6 +23,8 @@ def main(*args, **kwargs): # get version from parameter # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -37,6 +39,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [TM2_001] + # dev_type = standalone_tm2 + # serialno = 01234TEST + dut = mgr.acquire_dut('standalone_tm2', max_retry_times=180) # flashing binaries to device. diff --git a/litmus/templates/standalone_tw1/conf_mobile.yaml b/litmus/templates/standalone_tw1/conf_mobile.yaml deleted file mode 100644 index 072e0d7..0000000 --- a/litmus/templates/standalone_tw1/conf_mobile.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ -username: -password: diff --git a/litmus/templates/standalone_tw1/conf_tv.yaml b/litmus/templates/standalone_tw1/conf_tv.yaml deleted file mode 100644 index 43a1164..0000000 --- a/litmus/templates/standalone_tw1/conf_tv.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ -username: -password: diff --git a/litmus/templates/standalone_tw1/conf_wearable.yaml b/litmus/templates/standalone_tw1/conf_wearable.yaml index eb9cbca..4bc27e3 100644 --- a/litmus/templates/standalone_tw1/conf_wearable.yaml +++ b/litmus/templates/standalone_tw1/conf_wearable.yaml @@ -1,4 +1,4 @@ binary_urls: - - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ + - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ username: password: diff --git a/litmus/templates/standalone_tw1/tc_mobile.yaml b/litmus/templates/standalone_tw1/tc_mobile.yaml deleted file mode 100644 index 7932170..0000000 --- a/litmus/templates/standalone_tw1/tc_mobile.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: callmgrd_is_running - param: callmgrd - pattern: .*/usr/bin/callmgrd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_tw1/tc_tv.yaml b/litmus/templates/standalone_tw1/tc_tv.yaml deleted file mode 100644 index 44ed8a2..0000000 --- a/litmus/templates/standalone_tw1/tc_tv.yaml +++ /dev/null @@ -1,23 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/standalone_tw1/userscript.py b/litmus/templates/standalone_tw1/userscript.py index e20d6dc..203720c 100755 --- a/litmus/templates/standalone_tw1/userscript.py +++ b/litmus/templates/standalone_tw1/userscript.py @@ -23,6 +23,8 @@ def main(*args, **kwargs): # get version from parameter # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -37,6 +39,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [TW1_001] + # dev_type = standalone_tw1 + # serialno = 01234TEST + dut = mgr.acquire_dut('standalone_tw1', max_retry_times=180) # flashing binaries to device. diff --git a/litmus/templates/standalone_u3/conf_mobile.yaml b/litmus/templates/standalone_u3/conf_mobile.yaml deleted file mode 100644 index 072e0d7..0000000 --- a/litmus/templates/standalone_u3/conf_mobile.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ -username: -password: diff --git a/litmus/templates/standalone_u3/conf_tv.yaml b/litmus/templates/standalone_u3/conf_tv.yaml index 43a1164..ef4322c 100644 --- a/litmus/templates/standalone_u3/conf_tv.yaml +++ b/litmus/templates/standalone_u3/conf_tv.yaml @@ -1,5 +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/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ username: password: diff --git a/litmus/templates/standalone_u3/conf_wearable.yaml b/litmus/templates/standalone_u3/conf_wearable.yaml deleted file mode 100644 index eb9cbca..0000000 --- a/litmus/templates/standalone_u3/conf_wearable.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ -username: -password: diff --git a/litmus/templates/standalone_u3/tc_mobile.yaml b/litmus/templates/standalone_u3/tc_mobile.yaml deleted file mode 100644 index 7932170..0000000 --- a/litmus/templates/standalone_u3/tc_mobile.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: callmgrd_is_running - param: callmgrd - pattern: .*/usr/bin/callmgrd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_u3/tc_wearable.yaml b/litmus/templates/standalone_u3/tc_wearable.yaml deleted file mode 100644 index f1c099f..0000000 --- a/litmus/templates/standalone_u3/tc_wearable.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: sound_server_is_running - param: sound_server - pattern: .*/usr/bin/sound_server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_u3/userscript.py b/litmus/templates/standalone_u3/userscript.py index f577e40..7d2e798 100755 --- a/litmus/templates/standalone_u3/userscript.py +++ b/litmus/templates/standalone_u3/userscript.py @@ -23,6 +23,8 @@ def main(*args, **kwargs): # get version from parameter # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -37,6 +39,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [U3_001] + # dev_type = standalone_u3 + # serialno = 01234TEST + dut = mgr.acquire_dut('standalone_u3', max_retry_times=180) # flashing binaries to device. diff --git a/litmus/templates/standalone_xu3/conf_mobile.yaml b/litmus/templates/standalone_xu3/conf_mobile.yaml deleted file mode 100644 index 072e0d7..0000000 --- a/litmus/templates/standalone_xu3/conf_mobile.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/mobile/latest/images/target-TM1/mobile-wayland-armv7l-tm1/ -username: -password: diff --git a/litmus/templates/standalone_xu3/conf_tv.yaml b/litmus/templates/standalone_xu3/conf_tv.yaml index 43a1164..ef4322c 100644 --- a/litmus/templates/standalone_xu3/conf_tv.yaml +++ b/litmus/templates/standalone_xu3/conf_tv.yaml @@ -1,5 +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/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ username: password: diff --git a/litmus/templates/standalone_xu3/conf_wearable.yaml b/litmus/templates/standalone_xu3/conf_wearable.yaml deleted file mode 100644 index eb9cbca..0000000 --- a/litmus/templates/standalone_xu3/conf_wearable.yaml +++ /dev/null @@ -1,4 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/wearable/latest/images/target-circle/wearable-wayland-armv7l-circle/ -username: -password: diff --git a/litmus/templates/standalone_xu3/tc_mobile.yaml b/litmus/templates/standalone_xu3/tc_mobile.yaml deleted file mode 100644 index 7932170..0000000 --- a/litmus/templates/standalone_xu3/tc_mobile.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: callmgrd_is_running - param: callmgrd - pattern: .*/usr/bin/callmgrd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_xu3/tc_wearable.yaml b/litmus/templates/standalone_xu3/tc_wearable.yaml deleted file mode 100644 index f1c099f..0000000 --- a/litmus/templates/standalone_xu3/tc_wearable.yaml +++ /dev/null @@ -1,50 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: dbus_is_running - param: dbus - pattern: .*/usr/bin/dbus-daemon.* - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: sensord_is_running - param: sensord - pattern: .*/usr/bin/sensord.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: msg-server_is_running - param: msg-server - pattern: .*/usr/bin/msg-server.* - - name: connmand_is_running - param: connmand - pattern: .*/usr/sbin/connmand.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: sound_server_is_running - param: sound_server - pattern: .*/usr/bin/sound_server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* - - name: verify_dmesg - from: litmus.helper.tests - result_dir: result - plan: - - name: panel_is_alive - param: panel - pattern: .*panel is dead.* - - name: verify_wifi_is_working - from: litmus.helper.tests - wifi_apname: setup - wifi_password: - result_dir: result diff --git a/litmus/templates/standalone_xu3/userscript.py b/litmus/templates/standalone_xu3/userscript.py index d19dc35..3fa8568 100755 --- a/litmus/templates/standalone_xu3/userscript.py +++ b/litmus/templates/standalone_xu3/userscript.py @@ -23,6 +23,8 @@ def main(*args, **kwargs): # get version from parameter # ex) 20160923.3 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -37,6 +39,13 @@ def main(*args, **kwargs): version=version)) # get an available device for testing. + # Please set up topology before acquiring device. + # Example) + # ~/.litmus/topology + # [XU3_001] + # dev_type = standalone_xu3 + # serialno = 01234TEST + dut = mgr.acquire_dut('standalone_xu3', max_retry_times=180) # flashing binaries to device. diff --git a/litmus/templates/u3/conf.yaml b/litmus/templates/u3/conf.yaml deleted file mode 100644 index 9a76742..0000000 --- a/litmus/templates/u3/conf.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidu3/ -username: -password: diff --git a/litmus/templates/u3/conf_tv.yaml b/litmus/templates/u3/conf_tv.yaml new file mode 100644 index 0000000..284b50f --- /dev/null +++ b/litmus/templates/u3/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidu3/ +username: +password: diff --git a/litmus/templates/u3/tc.yaml b/litmus/templates/u3/tc.yaml deleted file mode 100644 index 44ed8a2..0000000 --- a/litmus/templates/u3/tc.yaml +++ /dev/null @@ -1,23 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/u3/tc_tv.yaml b/litmus/templates/u3/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/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/u3/userscript.py b/litmus/templates/u3/userscript.py index a965801..f14f3e6 100755 --- a/litmus/templates/u3/userscript.py +++ b/litmus/templates/u3/userscript.py @@ -15,13 +15,16 @@ def main(*args, **kwargs): mgr.init_workingdir() # get projectinfo - project_info = load_yaml('conf.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 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -48,7 +51,7 @@ def main(*args, **kwargs): if not os.path.exists('result'): os.mkdir('result') - testcases = load_yaml('tc.yaml') + testcases = load_yaml('tc_tv.yaml') add_test_helper(dut, testcases) dut.run_tests() diff --git a/litmus/templates/xu3/conf.yaml b/litmus/templates/xu3/conf.yaml deleted file mode 100644 index b218ccd..0000000 --- a/litmus/templates/xu3/conf.yaml +++ /dev/null @@ -1,5 +0,0 @@ -binary_urls: - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ - - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ -username: -password: diff --git a/litmus/templates/xu3/conf_tv.yaml b/litmus/templates/xu3/conf_tv.yaml new file mode 100644 index 0000000..b218ccd --- /dev/null +++ b/litmus/templates/xu3/conf_tv.yaml @@ -0,0 +1,5 @@ +binary_urls: + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-wayland-armv7l-odroidu3/ + - http://download.tizen.org/snapshots/tizen/tv/latest/images/arm-wayland/tv-boot-armv7l-odroidxu3/ +username: +password: diff --git a/litmus/templates/xu3/tc.yaml b/litmus/templates/xu3/tc.yaml deleted file mode 100644 index 44ed8a2..0000000 --- a/litmus/templates/xu3/tc.yaml +++ /dev/null @@ -1,23 +0,0 @@ -testcases: - - name: verify_process_is_running - from: litmus.helper.tests - result_dir: result - plan: - - name: enlightenment_is_running - param: enlightenment - pattern: .*/usr/bin/enlightenment.* - - name: deviced_is_running - param: deviced - pattern: .*/usr/bin/deviced.* - - name: pulseaudio_is_running - param: pulseaudio - pattern: .*/usr/bin/pulseaudio.* - - name: sdbd_is_running - param: sdbd - pattern: .*/usr/sbin/sdbd.* - - name: alarm-server_is_running - param: alarm-server - pattern: .*/usr/bin/alarm-server.* - - name: media-server_is_running - param: media-server - pattern: .*/usr/bin/media-server.* diff --git a/litmus/templates/xu3/tc_tv.yaml b/litmus/templates/xu3/tc_tv.yaml new file mode 100644 index 0000000..44ed8a2 --- /dev/null +++ b/litmus/templates/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/xu3/userscript.py b/litmus/templates/xu3/userscript.py index 3723505..cd06c9d 100755 --- a/litmus/templates/xu3/userscript.py +++ b/litmus/templates/xu3/userscript.py @@ -15,13 +15,16 @@ def main(*args, **kwargs): mgr.init_workingdir() # get projectinfo - project_info = load_yaml('conf.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 + # you can customize params from litmus (adhoc|run) -p option + # Nth arg : kwargs['param'][N] try: version = kwargs['param'][0] except (IndexError, TypeError): @@ -48,7 +51,7 @@ def main(*args, **kwargs): if not os.path.exists('result'): os.mkdir('result') - testcases = load_yaml('tc.yaml') + testcases = load_yaml('tc_tv.yaml') add_test_helper(dut, testcases) dut.run_tests()