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