Skip to content
Snippets Groups Projects

Adding Wi-Fi AP testcases to Apertis

Merged Benani Sagar Kishore requested to merge wip/Wi-Fi_AP into apertis/v2023dev1

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Benani Sagar Kishore resolved all threads

    resolved all threads

  • added 1 commit

    • aec23562 - Incorporated Tino's comments and feedback for the Wi-Fi AP testcases

    Compare with previous version

  • @sagar I don't have much context, so I'll be doing (perhaps) silly questions:

    • Targets are limited to [ armhf, amd64 ], why arm64 is not included?
  • In the tests, there're two devices running Apertis:

    • access point running SDK image
    • station (called target) running HMI image

    I believe it'd be more clear to name station instead of target.

  • added 2 commits

    • aeb48481 - 1 commit from branch apertis/v2022pre
    • 463bf307 - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • added 1 commit

    • 758a1fdd - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • added 1 commit

    • 85f61ea8 - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • added 1 commit

    • 36c63881 - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • Ariel D'Alessandro marked this merge request as draft from 217a461b

    marked this merge request as draft from 217a461b

  • added 1 commit

    • eb66cfc7 - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • Ariel D'Alessandro marked this merge request as ready

    marked this merge request as ready

  • Benani Sagar Kishore resolved all threads

    resolved all threads

  • Ariel D'Alessandro marked this merge request as draft

    marked this merge request as draft

  • added 1 commit

    • 0f282bf9 - wip: Improve *setup.yaml files

    Compare with previous version

    • Resolved by Benani Sagar Kishore

      @sagar please check commit !343 (0f282bf9) , we can squash it if you think it's fine.

      • Instead of relying on connman to enable the interface, I'm just disabling it and then using rfkill.
      • Fixed ocurrences of wlan0 by wifi_interface_name.
      • Removed unneeded network names and just kept the created one.
      • Some other style changes.

      Let me know what you think and let's squash it if it LGTYou.

  • @sagar One question:

    AFAIU, we have two sets of tests. The following test the different security protocols:

    test-cases/wifi-wpa2-psk-accesspoint-setup.yaml
    test-cases/wifi-wpa3-sae-accesspoint-setup.yaml
    test-cases/wifi-wpa3-transition-mode-accesspoint-setup.yaml

    The following rely on running one of the previous tests and then testing different situations (e.g. reboot):

    test-cases/wifi-accesspoint-deactivation.yaml
    test-cases/wifi-accesspoint-reboot.yaml
    test-cases/wifi-accesspoint-uncontrolled-shutdown-reboot.yaml

    On every test, SDK is always the station and the target device is always the AP, except for test-cases/wifi-accesspoint-uncontrolled-shutdown-reboot.yaml.

    • Can use the same setup (SDK as station and target as AP)?

    I think these tests are repeating the same content, so it might be worth just letting the second set to say: "run wifi wpa2 test and then run these steps to reboot/shutdown/disable".

    Let me know what you think, I can push the changes if you want :-)

  • @adalessandro the below testcases are based on the suggestion by @Tino.Lippold-ext

    - test-cases/wifi-accesspoint-reboot.yaml
    - test-cases/wifi-accesspoint-uncontrolled-shutdown-reboot.yaml

    please see his comments too

    ` test-cases/wifi-accesspoint-deactivation.yaml

    please retain the above testcases

    With regard to your comment Can use the same setup (SDK as station and target as AP)?

    I added 2 tests to show that both the SDK and Target can be used in either AP or Station mode. The user will be clear that either can be used to set up an AP/Station.

    wifi-accesspoint-reboot here the wi-fi access point is created on the SDK wifi-accesspoint-uncontrolled-shutdown-reboot here the access point is created on the target

  • Benani Sagar Kishore resolved all threads

    resolved all threads

  • added 1 commit

    • 9c35ca5e - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • @sagar , I just pushed the modifications as we talked. Could you check if this final version addresses the desired setup for these tests?

  • Ariel D'Alessandro marked this merge request as ready

    marked this merge request as ready

  • added 1 commit

    • d9fdfc49 - Incorporated suggestions by Emanuele to run the tests only on OSTree ARMHF images

    Compare with previous version

  • Ariel D'Alessandro marked this merge request as draft

    marked this merge request as draft

  • added 2 commits

    • fd9cb639 - Incorporated suggestions by Emanuele to run the tests only on OSTree ARMHF images
    • 932e05a1 - test-cases: wifi: Replace dnsmasq by systemd-networkd

    Compare with previous version

  • added 1 commit

    • 771b9065 - test-cases: wifi: Remove packaage apt installtion

    Compare with previous version

  • Ariel D'Alessandro resolved all threads

    resolved all threads

  • added 1 commit

    • 4490f157 - Adding Wi-Fi AP testcases to Apertis

    Compare with previous version

  • Ariel D'Alessandro marked this merge request as ready

    marked this merge request as ready

  • I have removed apt packages preconditions as we're now using ostree only, which will have hostapd and rfkill pkgs installed. See commit !343 (771b9065)

  • Ariel D'Alessandro approved this merge request

    approved this merge request

  • @em @fdanis could you double check and merge this? I'm not really aware if ostree test cases need anything else to be configured.

  • Emanuele Aina
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading