-
Notifications
You must be signed in to change notification settings - Fork 48
docs: Add TESTING.md #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
docs: Add TESTING.md #125
Conversation
Provide a step by step guide to how to test the generated particleos image. That can help developer for testing their contributions.
DaanDeMeyer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be duplicating too much from the readme. Frankly I'd much prefer adding a few of the missing sections to the readme rather than introducing a new document and repeating everything there
| Welcome to the **particleOS Testing and Validation Guide**. This document | ||
| outlines the comprehensive procedure for developers and contributors, covering | ||
| the entire workflow from building the particle OS image to performing an | ||
| installation on a simulated empty drive and finally testing the resulting | ||
| installed system within a Virtual Machine environment. | ||
|
|
||
| The goal is to provide clear, actionable instructions to facilitate a smooth | ||
| setup of your development environment, enabling effective building, | ||
| installation, and testing of changes to the particleOS project. | ||
|
|
||
| Welcome to the particleos testing guide! This document provides the step by step | ||
| guide from the particleOS image creation to the test in Virtual Machine | ||
| of the final installed image, going through the installation process on an | ||
| empty drive. | ||
|
|
||
| It aims to be a comprehensive guide for developers who want to contribute to the | ||
| project by providing clear instructions on how to set up a development | ||
| environment, build the project, and test their changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're saying the same thing twice in this section did you proofread this?
|
|
||
| ### Environment setup | ||
|
|
||
| * Before you start testing on particleos, make sure to have the **lastest** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastest?
| version of `mkosi` accessible from your path-environment. | ||
|
|
||
| ```bash | ||
| cd ${WORKDIR} | ||
| git clone https://github.com/systemd/mkosi.git | ||
| export PATH="${WORKDIR}/mkosi/bin/:${PATH}" | ||
| ``` | ||
|
|
||
| * `mkosi` requires Python 3.8 or higher. You can install the lastest python | ||
| version and force the Interpreter as follow: | ||
|
|
||
| ```bash | ||
| export MKOSI_INTERPRETER="/usr/bin/python3.12" | ||
| ``` | ||
|
|
||
| * Verify the version of mkosi installed: | ||
|
|
||
| ```bash | ||
| mkosi --version | ||
| ``` | ||
|
|
||
| * You will also need `qemu` installed on your system to test the created images in | ||
| a virtual machine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just rewording mkosi's readme. Please link to the mkosi documentation instead of repeating this all here.
| * You will also need `qemu` installed on your system to test the created images in | ||
| a virtual machine. | ||
|
|
||
| ### Lastest systemd version (optional but recommended) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastest
| ```conf | ||
| [Match] | ||
| Distribution=opensuse | ||
|
|
||
| [Distribution] | ||
| Release=tumbleweed | ||
|
|
||
| [Runtime] | ||
| VirtualMachineMonitor=qemu | ||
|
|
||
| QemuArgs= | ||
| -drive if=none,file=./mkosi.output/target-disk.img,format=raw,id=installdisk | ||
| -device virtio-blk-pci,drive=installdisk | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This flat out doesn't work on any distribution other than opensuse because of the [Match]
Provide a step by step guide to how to test the generated particleos image. That can help developer for testing their contributions.