mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-01-12 15:59:37 -05:00
test-bench: section on installing testing deps
This commit is contained in:
parent
db56549748
commit
715da559ce
@ -99,6 +99,43 @@ Internet access is intentionally disabled by default in dom0. But to ease the de
|
||||
|
||||
> **Note:** If you want to install additional software in dom0 and your only network card was assigned to dom0, then _instead_ of the usual `sudo qubes-dom0-update <PACKAGE>` now you run `sudo dnf --setopt=reposdir=/etc/yum.repos.d install <PACKAGE>`.
|
||||
|
||||
### Install Tests and Their Dependencies
|
||||
|
||||
A regular Qubes installation isn't ready to run the full suite of tests. For example, in order to run the [splitgpg tests](https://github.com/QubesOS/qubes-app-linux-split-gpg/blob/4bc201bb70c011119eed19df25dc5b46120d04ed/tests/splitgpg/tests.py) you need to have the `qubes-gpg-split-tests` package installed in your app qubes.
|
||||
|
||||
Because of the above reason, some additional configurations need to be done to your environment. This can be done in an automated manner with the help of [staltstack](/doc/salt) configuration that provisions the [automated testing environment](/doc/automated-tests/).
|
||||
|
||||
The following commands should work for you, but do keep the provisioning scripts are designed with the OpenQA environment in mind and not your specific local system. Run the following in `dom0`:
|
||||
|
||||
```
|
||||
# For future references the following commands are an adaptation of
|
||||
# https://github.com/marmarek/openqa-tests-qubesos/blob/master/tests/update.pm
|
||||
|
||||
# install git
|
||||
sudo qubes-dom0-update git || sudo dnf --setopt=reposdir=/etc/yum.repos.d install git
|
||||
|
||||
# download the openqa automated testing environment salt configuration
|
||||
git clone https://github.com/marmarek/openqa-tests-qubesos/
|
||||
cd openqa-tests-qubesos/extra-files
|
||||
sudo cp -a system-tests/ /srv/salt/
|
||||
sudo qubesctl top.enable system-tests
|
||||
|
||||
# install openqa configuration
|
||||
QUBES_VERSION=4.1
|
||||
PILLAR_DIR=/srv/pillar/base/update
|
||||
sudo mkdir -p $PILLAR_DIR
|
||||
printf 'update:\n qubes_ver: '$QUBES_VERSION'\n' | sudo tee $PILLAR_DIR/init.sls
|
||||
printf "base:\n '*':\n - update\n" | sudo tee $PILLAR_DIR/init.top
|
||||
sudo qubesctl top.enable update pillar=True
|
||||
|
||||
sudo systemctl restart qubesd
|
||||
|
||||
# Apply states to dom0 and VMs
|
||||
# NOTE: These commands can take several minutes (if not more) without showing output
|
||||
sudo qubesctl --show-output state.highstate
|
||||
sudo qubesctl --max-concurrency=2 --skip-dom0 --templates --show-output state.highstate
|
||||
```
|
||||
|
||||
## Development VM
|
||||
|
||||
### SSH
|
||||
|
Loading…
Reference in New Issue
Block a user