diff --git a/README.md b/README.md index 4521672..b7f9c0c 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,45 @@ coredesktop-dev smoketest run --keep 40 # on failure, leave the VM up to lo coredesktop-dev smoketest shell installed # SSH into a throwaway VM ``` +### Sibling projects + +A sibling project (HamPack, say) can have a smoketest too, run on top of +CoreDesktop's. It's a working copy beside CoreDesktop's (in the same folder, +or `SMOKETEST_PROJECTS_DIR`) with a `smoketest/project.conf`: + +``` +NAME=HamPack +PARENT=CoreDesktop # or a sibling it's built on, which comes first +URLS=(https://gitea.young.computer/david/HamPack.git) +``` + +beside its scenarios in `smoketest/scenarios/`, which use CoreDesktop's +helpers, and, if it likes, `smoketest/health` (checks a machine it's installed +on) and `smoketest/setup` (prepares any machine it's tested on; runs before +each scenario). See CoreDesktop's `smoketest/README.md`. + +``` +coredesktop-dev smoketest list --with HamPack # CoreDesktop's scenarios and HamPack's +coredesktop-dev smoketest run --with HamPack # the quick ones of both +coredesktop-dev smoketest run --with HamPack HamPack/20 +coredesktop-dev smoketest shell --with HamPack # SSH into CoreDesktop + HamPack +``` + +A run with `--with` runs every project's scenarios, so it also checks the +sibling doesn't break CoreDesktop. A sibling's scenarios are named +`HamPack/20-noop-update`, or just `20` if no other project has a 20. Each +working copy's `HEAD` is tested, so commit first. + +Siblings get image layers of their own, each built on the one before and kept +for later runs: `installed+HamPack` is the installed image after `sibling add +HamPack`, at the commit HamPack's branch started from. Rebuilding a layer +deletes the layers built on it. To build at other commits, e.g. to test an +upgrade from an old release: + +``` +coredesktop-dev smoketest images installed --with HamPack HamPack=f851678 +``` + What it needs: KVM (virtualization turned on in the firmware), about 8 GB of RAM and 4 CPUs per VM (`SMOKETEST_MEMORY`, `SMOKETEST_CPUS`), and about 45 GB in `~/.cache/coredesktop-dev/smoketest`. The images are kept between runs (the @@ -90,7 +129,8 @@ To watch a VM's screen, set `SMOKETEST_VNC=1` and connect a VNC viewer to The terminal can stay quiet for many minutes while a VM boots or installs. To follow along, `tail -f` the logs in `~/.cache/coredesktop-dev/smoketest`: -- `build-base/` and `build-installed/`, while an image builds: `build.log` is +- `build-base/`, `build-installed/` and `build-installed+HamPack/` (and so + on), while an image builds: `build.log` is what the build printed, and `serial.log` is the VM's console, the place to look when a VM doesn't boot or doesn't answer on SSH. - `runs/-