- Notifications
You must be signed in to change notification settings - Fork0
How to test dmce-gui using incus containers.
License
mtempling/dg
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Automatic testing ofdmce-guiwithin an incus container.
ove digraph ┌─────────────┐ ┌─────────────── │ ag │ │ └─────────────┘ │ │ │ │ │ ▼ │ ┌─────────────┐ │ │ base │ ◀┐ │ └─────────────┘ │ │ │ ┌────┘ │ │ │ │ ┌────────────┐ ┌─────────────┐ │ │ │ screencast │ ◀── │ dg │ │ │ └────────────┘ └─────────────┘ │ │ │ │ │ │ │ │ ▼ │ │ ┌────────────┐ ┌─────────────┐ │ │ │ godot │ ◀── │ dmce_gui │ │ │ └────────────┘ └─────────────┘ │ │ │ │ │ │ │ │ ▼ │ │ ┌────────────┐ ┌─────────────┐ │ └▶ │ xz │ ◀── │ dmce │ ─┘ └────────────┘ └─────────────┘ │ │ ▼ ┌─────────────┐ │ clang_tools │ └─────────────┘
curl -sSL https://raw.githubusercontent.com/Ericsson/ove/master/setup | bash -s dg https://github.com/mtempling/dg.gitcd dgsource oveove create-instance base ubuntu/22.04/amd64
The "ove create-instance..." command will first make sure that bothincus andXpra is installed on the host. NOTE: Theincus installation is just a minimal installation.
When incus and Xpra has been installed, create-instance will continue and launch anincus container based on Ubuntu 22.04. A few packages will be installed withinthe container:
- openssh
- OVE packages
- Xfce
- Xpra
Finally thepost-create-instance hook script will installa Xfce autostart file and restart the container. The autostart script willlaunch the following command:
ove entry dg
Looking into the dg'sentry code one can see thatag is built, then OVE is configured to screenrecord all OVE commands. Finally,"ove dmce trace-lazy ag" is launched two times. First with Terminal GUI thenusing the Godot GUI.
Attach to the container and peek into the action:
xpra attach --ssh=ssh ssh:${OVE_INSTANCE_NAME:?}
Find the recorded screencast:
find $OVE_LOG_DIR -type f -name "*-ove-dmce-${OVE_INSTANCE_NAME:?}-dg.mp4"
Remove the container:
incus delete -f ${OVE_INSTANCE_NAME:?}
Checkthis file.
About
How to test dmce-gui using incus containers.