Merge ~alexghiti/ubuntu-manual-tests:int/alex/riscv_licheerv_mpfs into ubuntu-manual-tests:main

Proposed by Alexandre Ghiti
Status: Merged
Approved by: Łukasz Zemczak
Approved revision: 38114148b2a8b973b56ee5946d2c3edd537d9850
Merged at revision: c87815f2b16b512a54b0f7c145bc50da9724ea2b
Proposed branch: ~alexghiti/ubuntu-manual-tests:int/alex/riscv_licheerv_mpfs
Merge into: ubuntu-manual-tests:main
Diff against target: 112 lines (+100/-0)
2 files modified
testcases/image/1756_Install LicheeRV (+59/-0)
testcases/image/1757_Install MPFS (+41/-0)
Reviewer Review Type Date Requested Status
Łukasz Zemczak Approve
Paride Legovini Needs Fixing
Review via email: mp+429875@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) wrote :

Looks like something is wrong with this MP (empty diff).

review: Needs Fixing
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Looks good, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/testcases/image/1756_Install LicheeRV b/testcases/image/1756_Install LicheeRV
2new file mode 100755
3index 0000000..69b71cb
4--- /dev/null
5+++ b/testcases/image/1756_Install LicheeRV
6@@ -0,0 +1,59 @@
7+The scope of this test is to ensure that riscv64+licheerv image boots from SD card on LicheeRV 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 serial console to the board</dt>
14+ <dd>FTDI adapter for serial console (pinout available here: https://popolon.org/depots/RISC-V/D1/LicheeRV/dl.sipeed.com/Lichee_RV_Dock/1_Datasheet/Sipeed%20Lichee%20RV%20DOCK%20Datasheet%20V1.0.pdf)</dd>
15+ <dt>Connect to the serial console</dt>
16+ <dd>sudo screen /dev/ttyUSB1 115200</dd>
17+ <dt>Power on the board</dt>
18+ <dd>You should see U-BOOT menu</dd>
19+ <dd>It should then boot GRUB after a delay</dd>
20+ <dd>You should see GRUB menu</dd>
21+ <dd>It should then boot the default kernel after a delay</dd>
22+ <dd>After a while cloud-init will run</dd>
23+ <dd>Then one will be able to login</dd>
24+ <dt>Login and change password</dt>
25+ <dd>Login using ubuntu for both username and password</dd>
26+ <dd>Reenter ubuntu password again</dd>
27+ <dd>Set new password</dd>
28+ <dd>Confirm the new password</dd>
29+ <dt>Perform Wifi testing</dt>
30+ <dd>You should see a wlan0 interface by typing:</dd>
31+ <dd>$ ip a </dd>
32+ <dd>Try to connect to local network by using the following netplan configuration file</dd>
33+ <dd> network:</dd>
34+ <dd> version: 2</dd>
35+ <dd> renderer: networkd</dd>
36+ <dd> wifis:</dd>
37+ <dd> wlan0:</dd>
38+ <dd> dhcp4: yes</dd>
39+ <dd> dhcp6: yes</dd>
40+ <dd> access-points:</dd>
41+ <dd> "YOUR_SSID":</dd>
42+ <dd> password: "YOUR_PASSWORD"</dd>
43+ <dd>And then type:</dd>
44+ <dd>$ sudo netplan apply </dd>
45+ <dd>You should connect successfully to your local network in a few seconds</dd>
46+ <dt>Perform generic testing</dt>
47+ <dd>Check that apt update works</dd>
48+ <dd>Run any command that is not installed, check that command-not-found recommends things to install</dd>
49+ <dd>e.g. hello</dd>
50+ <dd>Install a package and check that it works, e.g. hello</dd>
51+ <dt>Perform snap testing</dt>
52+ <dd>Install a snap and check that it works, e.g. hello</dd>
53+ <dt>Perform HDMI testing</dt>
54+ <dd>Plug an HDMI cable and make sure a prompt asking for login appears on the screen</dd>
55+ <dt>Perform USB test</dt>
56+ <dd>Plug a keyboard in and enter the login/password</dd>
57+ <dt>Reboot</dt>
58+ <dd>The board should reboot normally</dt>
59+ <dt>Poweroff</dt>
60+ <dd>Console messages should reach poweroff target</dd>
61+ <dd>There should be final kernel dmsg powering off</dd>
62+ <dd>Manually turn power-off from the board</dd>
63+</dl>
64+<strong>If all actions produce the expected results listed, please <a href="results#add_result">submit</a> a 'passed' result.
65+ 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>
66diff --git a/testcases/image/1757_Install MPFS b/testcases/image/1757_Install MPFS
67new file mode 100755
68index 0000000..8069c8c
69--- /dev/null
70+++ b/testcases/image/1757_Install MPFS
71@@ -0,0 +1,41 @@
72+The scope of this test is to ensure that riscv64+icicle image boots from SD card on Microchip Polarfire Icicle board
73+
74+<dl>
75+ <dt>Flash downloaded image onto SD card</dt>
76+ <dd>You can use Gnome Disks app to restore img.xz onto the SD card</dd>
77+ <dd> Alternatively you can use xz -d to decompress, and then dd to copy the image to the SD card</dd>
78+ <dt>Connect networking, serial console to the board</dt>
79+ <dd>Ethernet cable for networking (both Ethernet connectors work)</dd>
80+ <dd>USB cable for serial console (board layout here: https://www.microchip.com/content/dam/mchp/documents/FPGA/ProductDocuments/UserGuides/microchip_polarfire_soc_fpga_icicle_kit_user_guide_vb.pdf page 6)</dd>
81+ <dt>Connect to the 'firmware' serial console</dt>
82+ <dd>sudo screen /dev/ttyUSB0 115200</dd>
83+ <dt>Connect to the 'kernel' serial console</dt>
84+ <dd>sudo screen /dev/ttyUSB1 115200</dd>
85+ <dt>Power on the board</dt>
86+ <dd>You should see U-BOOT menu on the firmware console</dd>
87+ <dd>It should then boot GRUB after a delay</dd>
88+ <dd>You should see GRUB menu</dd>
89+ <dd>It should then boot the default kernel after a delay on the kernel serial console</dd>
90+ <dd>After a while cloud-init will run</dd>
91+ <dd>Then one will be able to login</dd>
92+ <dt>Login and change password</dt>
93+ <dd>Login using ubuntu for both username and password</dd>
94+ <dd>Reenter ubuntu password again</dd>
95+ <dd>Set new password</dd>
96+ <dd>Confirm the new password</dd>
97+ <dt>Perform generic testing</dt>
98+ <dd>Check that apt update works</dd>
99+ <dd>Run any command that is not installed, check that command-not-found recommends things to install</dd>
100+ <dd>e.g. hello</dd>
101+ <dd>Install a package and check that it works, e.g. hello</dd>
102+ <dt>Perform snap testing</dt>
103+ <dd>Install a snap and check that it works, e.g. hello</dd>
104+ <dt>Reboot</dt>
105+ <dd>The board should reboot normally</dt>
106+ <dt>Poweroff</dt>
107+ <dd>Console messages should reach poweroff target</dd>
108+ <dd>There should be final kernel dmsg powering off</dd>
109+ <dd>Manually turn power-off from the board</dd>
110+</dl>
111+<strong>If all actions produce the expected results listed, please <a href="results#add_result">submit</a> a 'passed' result.
112+ 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