Merge ~xypron/ubuntu-manual-tests:riscv64 into ubuntu-manual-tests:main

Proposed by Heinrich Schuchardt
Status: Merged
Merged at revision: a067d037547e372ff36c4e29000e1e0dbebb7626
Proposed branch: ~xypron/ubuntu-manual-tests:riscv64
Merge into: ubuntu-manual-tests:main
Diff against target: 58 lines (+52/-0)
1 file modified
testcases/image/1753_QEMU_riscv64_install (+52/-0)
Reviewer Review Type Date Requested Status
Ubuntu Testcase Admins Pending
Review via email: mp+418021@code.launchpad.net

Commit message

New test case for riscv64 installation

Signed-off-by: Heinrich Schuchardt <email address hidden>

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

I've merged this and updated the server but I'm not sure where we want it to show up. Or actually should it be here?

https://iso.qa.ubuntu.com/qatracker/milestones/429/builds/246353/testcases

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/testcases/image/1753_QEMU_riscv64_install b/testcases/image/1753_QEMU_riscv64_install
0new file mode 1006440new file mode 100644
index 0000000..6940d8d
--- /dev/null
+++ b/testcases/image/1753_QEMU_riscv64_install
@@ -0,0 +1,52 @@
1This testcase checks the installation of the live installer image for the
2riscv64 architecture on QEMU.
3
4On your installed Ubuntu machine.
5
6<dl>
7 <dt>sudo apt install -y opensbi qemu-system-misc u-boot-qemu</dt>
8 <dt>curl https://cdimage.ubuntu.com/ubuntu-server/daily-live/current/jammy-live-server-riscv64.img.gz --output jammy-live-server-riscv64.img.gz</dt>
9 <dt>gzip -d jammy-live-server-riscv64.img.gz</dt>
10 <dt>rm -f disk</dt>
11 <dt>dd if=/dev/zero bs=1M of=disk count=1 seek=16383</dt>
12 <dt>Start the installer with:
13<pre>
14/usr/bin/qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
15 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin \
16 -kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
17 -netdev user,id=net0 \
18 -device virtio-net-device,netdev=net0 \
19 -drive file=jammy-live-server-riscv64.img,format=raw,if=virtio \
20 -drive file=disk,format=raw,if=virtio \
21 -device virtio-rng-pci
22</pre></dt>
23 <dt>Install on the 16 GiB drive.</dt>
24 <dd>The installation finishes without reporting failures.</dd>
25 <dt>During the reboot press the Enter key to access U-Boot's command line.</dt>
26 <dt>Execute the poweroff command</dt>
27 <dd>QEMU terminates</dd>
28 <dt>Run the installed system with:
29<pre>
30/usr/bin/qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
31 -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin \
32 -kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
33 -netdev user,id=net0 \
34 -device virtio-net-device,netdev=net0 \
35 -drive file=disk,format=raw,if=virtio \
36 -device virtio-rng-pci
37</pre></dt>
38 <dd>The system boots via GRUB.</dd>
39 <dt>Login in with the username and password defined during the installation</dt>
40 <dt>Run any command that is not installed, e.g. hello.</dt>
41 <dd>Check that command-not-found recommends things to install</dd>
42 <dt>Install a package, e.g. hello.</dt>
43 <dd>Check that the package performs correctly.</dd>
44 <dt>Install a snap, e.g.. hello.</dt>
45 <dd>check that the snap works correctly.</dd>
46 <dt>Poweroff</dt>
47 <dd>Console messages should reach the poweroff target</dd>
48 <dd>There should be final message 'reboot: Power down'</dd>
49 <dd>QEMU should terminate automatically</dd>
50</dl>
51<strong>If all actions produce the expected results listed, please <a href="results#add_result">submit</a> a 'passed' result.
52 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