Merge ~alexghiti/ubuntu-manual-tests:int/alex/riscv_22.04.1 into ubuntu-manual-tests:main

Proposed by Alexandre Ghiti
Status: Merged
Merged at revision: 563a8f2a31b360090468fa58cc42d8493e6368aa
Proposed branch: ~alexghiti/ubuntu-manual-tests:int/alex/riscv_22.04.1
Merge into: ubuntu-manual-tests:main
Diff against target: 122 lines (+110/-0)
2 files modified
testcases/image/1754_Install VisionFive (+67/-0)
testcases/image/1755_Install Nezha (+43/-0)
Reviewer Review Type Date Requested Status
Brian Murray Needs Fixing
Review via email: mp+427190@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

I've a couple of in-line comments but nothing serious. You might want to get with Dave Jones as it looks like there is some overlap between test cases here and Dave added some code to create test cases from templates for the Raspberry Pi images.

review: Needs Fixing
Revision history for this message
Brian Murray (brian-murray) wrote :

Trying my in-line comments again.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/testcases/image/1754_Install VisionFive b/testcases/image/1754_Install VisionFive
2new file mode 100755
3index 0000000..3294484
4--- /dev/null
5+++ b/testcases/image/1754_Install VisionFive
6@@ -0,0 +1,67 @@
7+The scope of this test is to ensure that riscv64+visionfive image boots from SD card on StarFive VisionFive board
8+
9+<dl>
10+ <dt>Flash downloaded image onto SD card</dt>
11+ <dd>You can use Gnome Disks app to restore img.xz onto the SD card</dd>
12+ <dd>Alternatively you can use xz -d to decompress, and then dd to copy the image to the SD card</dd>
13+ <dt>Connect networking, serial console to the board</dt>
14+ <dd>Ethernet cable for networking</dd>
15+ <dd>FTDI adapter for serial console (pinout available here: https://rvspace.org/en/Product/VisionFive/Technical_Documents/VisionFive_Single_Board_Computer_Quick_Start_Guide)</dd>
16+ <dt>Connect to the serial console</dt>
17+ <dd>sudo screen /dev/ttyUSB1 115200</dd>
18+ <dt>Power on the board</dt>
19+ <dd>You should see U-BOOT menu</dd>
20+ <dd>It should then boot GRUB after a delay</dd>
21+ <dd>You should see GRUB menu</dd>
22+ <dd>It should then boot the default kernel after a delay</dd>
23+ <dd>After a while cloud-init will run</dd>
24+ <dd>Then one will be able to login</dd>
25+ <dt>Login and change password</dt>
26+ <dd>Login using ubuntu for both username and password</dd>
27+ <dd>Reenter ubuntu password again</dd>
28+ <dd>Set new password</dd>
29+ <dd>Confirm the new password</dd>
30+ <dt>Perform WiFi testing</dt>
31+ <dd>Make sure the WiFi device is enabled:</dd>
32+ <dd>$ sudo apt install network-manager</dd>
33+ <dd>$ nmcli radio wifi</dd>
34+ <dd>enabled</dd>
35+ <dd>List AP:</dd>
36+ <dd>$ nmcli dev wifi list</dd>
37+ <dt>Perform generic testing</dt>
38+ <dd>Check that apt update works</dd>
39+ <dd>Run any command that is not installed, check that command-not-found recommends things to install</dd>
40+ <dd>e.g. hello</dd>
41+ <dd>Install a package and check that it works, e.g. hello</dd>
42+ <dt>Perform snap testing</dt>
43+ <dd>Install a snap and check that it works, e.g. hello</dd>
44+ <dt>Perform HDMI testing</dt>
45+ <dd>Plug an HDMI cable and make sure a prompt asking for login appears on the screen</dd>
46+ <dt>Perform USB test</dt>
47+ <dd>Plug a keyboard in and enter the login/password</dd>
48+ <dt>Perform Bluetooth testing</dt>
49+ <dd>Add the RISC-V PPA:</dd>
50+ <dd>$ sudo add-apt-repository ppa:ubuntu-risc-v-team/release</dd>
51+ <dd>$ sudo apt update </dd>
52+ <dd>Install the required packages:</dd>
53+ <dd>$ sudo apt install linux-firmware-starfive brcm-patchram-plus-starfive</dd>
54+ <dd>The installation may fail because the Bluetooth is flaky but the service installed by the brcm-patchram-plus-starfive package takes care of retrying</dd>
55+ <dd>Check the brcm-patchram-plus-starfive.service status:</dd>
56+ <dd>$ sudo systemctl status brcm-patchram-plus-starfive.service </dd>
57+ <dd> Loaded: loaded (/lib/systemd/system/brcm-patchram-plus-starfive.service; enabled; vendor preset: enabled)
58+ Active: active (running) since Wed 2022-06-22 13:42:33 UTC; 32min ago </dd>
59+ <dd> ... </dd>
60+ <dd>Additionally, you can check that the Bluetooth controller appears:</dd>
61+ <dd>$ bluetoothctl </dd>
62+ <dd> Agent registered </dd>
63+ <dd> [CHG] Controller 70:4A:0E:95:C7:1B Pairable: yes </dd>
64+ <dd>Note that the bluetooth requires GPIO toggling so if that works, we consider GPIO to work too.</dd>
65+ <dt>Reboot</dt>
66+ <dd>The board should reboot normally</dt>
67+ <dt>Poweroff</dt>
68+ <dd>Console messages should reach poweroff target</dd>
69+ <dd>There should be final kernel dmsg powering off</dd>
70+ <dd>Manually turn power-off from the board</dd>
71+</dl>
72+<strong>If all actions produce the expected results listed, please <a href="results#add_result">submit</a> a 'passed' result.
73+ If an action fails, or produces an unexpected result, please <a href="results#add_result">submit</a> a 'failed' result and <a href="../../buginstructions">file a bug</a>. Please be sure to include the bug number when you <a href="results#add_result">submit</a> your result.</strong>
74diff --git a/testcases/image/1755_Install Nezha b/testcases/image/1755_Install Nezha
75new file mode 100755
76index 0000000..9d1d5be
77--- /dev/null
78+++ b/testcases/image/1755_Install Nezha
79@@ -0,0 +1,43 @@
80+The scope of this test is to ensure that riscv64+nezha image boots from SD card on Nezha board
81+
82+<dl>
83+ <dt>Flash downloaded image onto SD card</dt>
84+ <dd>You can use Gnome Disks app to restore img.xz onto the SD card</dd>
85+ <dd> Alternatively you can use xz -d to decompress, and then dd to copy the image to the SD card</dd>
86+ <dt>Connect networking, serial console to the board</dt>
87+ <dd>Ethernet cable for networking</dd>
88+ <dd>FTDI adapter for serial console (pinout available here: https://linuxgizmos.com/files/rvboards_nezha_detail.jpg)</dd>
89+ <dt>Connect to the serial console</dt>
90+ <dd>sudo screen /dev/ttyUSB1 115200</dd>
91+ <dt>Power on the board</dt>
92+ <dd>You should see U-BOOT menu</dd>
93+ <dd>It should then boot GRUB after a delay</dd>
94+ <dd>You should see GRUB menu</dd>
95+ <dd>It should then boot the default kernel after a delay</dd>
96+ <dd>After a while cloud-init will run</dd>
97+ <dd>Then one will be able to login</dd>
98+ <dt>Login and change password</dt>
99+ <dd>Login using ubuntu for both username and password</dd>
100+ <dd>Reenter ubuntu password again</dd>
101+ <dd>Set new password</dd>
102+ <dd>Confirm the new password</dd>
103+ <dt>Perform generic testing</dt>
104+ <dd>Check that apt update works</dd>
105+ <dd>Run any command that is not installed, check that command-not-found recommends things to install</dd>
106+ <dd>e.g. hello</dd>
107+ <dd>Install a package and check that it works, e.g. hello</dd>
108+ <dt>Perform snap testing</dt>
109+ <dd>Install a snap and check that it works, e.g. hello</dd>
110+ <dt>Perform HDMI testing</dt>
111+ <dd>Plug an HDMI cable and make sure a prompt asking for login appears on the screen</dd>
112+ <dt>Perform USB test</dt>
113+ <dd>Plug a keyboard in and enter the login/password</dd>
114+ <dt>Reboot</dt>
115+ <dd>The board should reboot normally</dt>
116+ <dt>Poweroff</dt>
117+ <dd>Console messages should reach poweroff target</dd>
118+ <dd>There should be final kernel dmsg powering off</dd>
119+ <dd>Manually turn power-off from the board</dd>
120+</dl>
121+<strong>If all actions produce the expected results listed, please <a href="results#add_result">submit</a> a 'passed' result.
122+ If an action fails, or produces an unexpected result, please <a href="results#add_result">submit</a> a 'failed' result and <a href="../../buginstructions">file a bug</a>. Please be sure to include the bug number when you <a href="results#add_result">submit</a> your result.</strong>

Subscribers

People subscribed via source and target branches