diff options
author | PMR <pmr@pmr-lander> | 2020-09-22 15:53:46 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2020-09-22 15:53:46 +0000 |
commit | ffcf90bdfe2077bc9466905a7d3ff65318b068e5 (patch) | |
tree | 2d2ce783190d9fe1325d646b95df9dc4162d425a | |
parent | effbba1e1a6c69121cd49c547459b911f9b9abe1 (diff) | |
parent | df0cc00f690b0170567675a89734e1aaec98ed5b (diff) |
record new upstream branch created by importing plainbox-provider-checkbox_0.55.0~rc2.orig.tar.gz and merge it
-rw-r--r-- | debian/.git-dpm | 14 | ||||
-rwxr-xr-x | manage.py | 2 | ||||
-rw-r--r-- | units/suspend/suspend-graphics.pxu | 10 | ||||
-rw-r--r-- | units/suspend/suspend.pxu | 34 | ||||
-rw-r--r-- | units/suspend/test-plan.pxu | 28 |
5 files changed, 61 insertions, 27 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm index b3f4116..306e6bf 100644 --- a/debian/.git-dpm +++ b/debian/.git-dpm @@ -1,8 +1,8 @@ # see git-dpm(1) from git-dpm package -d9cc683b1b64559a9c0b838b1cfebb40cccfe3a7 -d9cc683b1b64559a9c0b838b1cfebb40cccfe3a7 -d9cc683b1b64559a9c0b838b1cfebb40cccfe3a7 -d9cc683b1b64559a9c0b838b1cfebb40cccfe3a7 -plainbox-provider-checkbox_0.55.0~rc1.orig.tar.gz -2e339a334734819ae1f3574eaaa517b910329cf0 -1732606 +df0cc00f690b0170567675a89734e1aaec98ed5b +df0cc00f690b0170567675a89734e1aaec98ed5b +df0cc00f690b0170567675a89734e1aaec98ed5b +df0cc00f690b0170567675a89734e1aaec98ed5b +plainbox-provider-checkbox_0.55.0~rc2.orig.tar.gz +3dc337819207297e5c81666d011f3fb32568e67d +1730297 @@ -5,7 +5,7 @@ from plainbox.provider_manager import N_ setup( name='plainbox-provider-checkbox', namespace='com.canonical.certification', - version="0.55.0rc1", + version="0.55.0rc2", description=N_("Checkbox provider"), gettext_domain='plainbox-provider-checkbox', strict=False, deprecated=False, diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu index 0b0611d..84bfab8 100644 --- a/units/suspend/suspend-graphics.pxu +++ b/units/suspend/suspend-graphics.pxu @@ -45,7 +45,7 @@ depends: {%- if gpu_count > "1" %} suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} - suspend/suspend_advanced + suspend/suspend_advanced_auto {%- endif %} _description: Test to see that we have the same resolution after resuming as before. command: @@ -123,7 +123,7 @@ depends: {%- if gpu_count > "1" %} suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} - suspend/suspend_advanced + suspend/suspend_advanced_auto {%- endif %} requires: package.name == 'nux-tools' command: @@ -202,7 +202,7 @@ depends: {%- if gpu_count > "1" %} suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} - suspend/suspend_advanced + suspend/suspend_advanced_auto {%- endif %} command: # shellcheck disable=SC1091 @@ -223,7 +223,7 @@ depends: {%- if gpu_count > "1" %} suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} - suspend/suspend_advanced + suspend/suspend_advanced_auto {%- endif %} command: [ -e "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single.log ] && cat "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single.log _description: @@ -240,7 +240,7 @@ depends: {%- if gpu_count > "1" %} suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} - suspend/suspend_advanced + suspend/suspend_advanced_auto {%- endif %} estimated_duration: 1.2 command: [ -e "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single_times.log ] && sleep_time_check.py "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single_times.log diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu index 9a9ced6..034f97b 100644 --- a/units/suspend/suspend.pxu +++ b/units/suspend/suspend.pxu @@ -411,6 +411,14 @@ command: network_wait.sh; gateway_ping_test.py | diff "$PLAINBOX_SESSION_SHARE"/ plugin: shell category_id: com.canonical.plainbox::suspend +id: suspend/network_after_suspend_auto +estimated_duration: 20.0 +depends: suspend/suspend_advanced_auto suspend/network_before_suspend +_description: Test the network after resuming. +command: network_wait.sh; gateway_ping_test.py | diff "$PLAINBOX_SESSION_SHARE"/network_before_suspend.txt - + +plugin: shell +category_id: com.canonical.plainbox::suspend id: suspend/resolution_after_suspend depends: suspend/suspend_advanced suspend/resolution_before_suspend estimated_duration: 1.2 @@ -949,6 +957,32 @@ _description: plugin: shell category_id: com.canonical.plainbox::suspend +id: suspend/bluetooth_detect_after_suspend_auto +depends: suspend/suspend_advanced_auto bluetooth/detect-output +estimated_duration: 1.2 +requires: + package.name == 'bluez' + device.category == 'BLUETOOTH' +command: + if rfkill list bluetooth | grep -q 'Hard blocked: yes'; then + echo "rfkill shows BT is hard blocked" + fi + if rfkill list bluetooth | grep -q 'Soft blocked: yes'; then + echo "rfkill shows BT is soft blocked, removing before testing" + rfkill unblock bluetooth + sleep 3 + fi + output=$(hcitool dev | tail -n+2 | awk '{print $2}') + echo "$output" | diff "$PLAINBOX_SESSION_SHARE"/bluetooth_address - + if [ -z "$output" ]; then + echo "BT hardware not available" + exit 1 + fi +_description: + This test grabs the hardware address of the bluetooth adapter after suspend and compares it to the address grabbed before suspend. + +plugin: shell +category_id: com.canonical.plainbox::suspend id: suspend/bluetooth_obex_send_after_suspend depends: suspend/suspend_advanced estimated_duration: 10.0 diff --git a/units/suspend/test-plan.pxu b/units/suspend/test-plan.pxu index 4bc26bf..66b38a2 100644 --- a/units/suspend/test-plan.pxu +++ b/units/suspend/test-plan.pxu @@ -44,13 +44,13 @@ unit: test plan _name: After suspend reference tests (automated) _description: After suspend reference tests (automated) include: - suspend/network_after_suspend certification-status=blocker - suspend/audio_after_suspend certification-status=blocker - suspend/cpu_after_suspend certification-status=blocker - suspend/memory_after_suspend certification-status=blocker - suspend/bluetooth_detect_after_suspend certification-status=blocker - suspend/bluetooth_obex_send_after_suspend certification-status=blocker - after-suspend-manual-bluetooth4/beacon_eddystone_url_.* certification-status=blocker + suspend/network_after_suspend_auto certification-status=blocker + suspend/audio_after_suspend_auto certification-status=blocker + suspend/cpu_after_suspend_auto certification-status=blocker + suspend/memory_after_suspend_auto certification-status=blocker + suspend/bluetooth_detect_after_suspend_auto certification-status=blocker + suspend/bluetooth_obex_send_after_suspend_auto certification-status=blocker + after-suspend-bluetooth4/beacon_eddystone_url_.* certification-status=blocker bootstrap_include: device @@ -73,13 +73,13 @@ unit: test plan _name: After suspend reference tests (certification blockers only) _description: After suspend reference tests (certification blockers only) include: - suspend/network_after_suspend certification-status=blocker - suspend/audio_after_suspend certification-status=blocker - suspend/cpu_after_suspend certification-status=blocker - suspend/memory_after_suspend certification-status=blocker - suspend/bluetooth_detect_after_suspend certification-status=blocker - suspend/bluetooth_obex_send_after_suspend certification-status=blocker - after-suspend-manual-bluetooth4/beacon_eddystone_url_.* certification-status=blocker + suspend/network_after_suspend_auto certification-status=blocker + suspend/audio_after_suspend_auto certification-status=blocker + suspend/cpu_after_suspend_auto certification-status=blocker + suspend/memory_after_suspend_auto certification-status=blocker + suspend/bluetooth_detect_after_suspend_auto certification-status=blocker + suspend/bluetooth_obex_send_after_suspend_auto certification-status=blocker + after-suspend-bluetooth4/beacon_eddystone_url_.* certification-status=blocker bootstrap_include: device |