summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
Diffstat (limited to 'testenv')
-rw-r--r--testenv/Dockerfile9
-rw-r--r--testenv/v2-hdmi.override.yaml32
2 files changed, 40 insertions, 1 deletions
diff --git a/testenv/Dockerfile b/testenv/Dockerfile
index a33af7b1..9c23d29c 100644
--- a/testenv/Dockerfile
+++ b/testenv/Dockerfile
@@ -41,6 +41,13 @@ RUN git clone https://github.com/pikvm/ustreamer \
COPY testenv/requirements.txt requirements.txt
RUN pip install -r requirements.txt
-RUN mkdir -p /etc/kvmd/nginx
+RUN mkdir -p \
+ /etc/kvmd/nginx \
+ /var/lib/kvmd/msd/{images,meta} \
+ /fake_sysfs/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 \
+ && cd /fake_sysfs/sys/kernel/config/usb_gadget/kvmd/functions/mass_storage.usb0/lun.0 \
+ && touch file \
+ && echo 1 > cdrom \
+ && echo 1 > ro
CMD /bin/bash
diff --git a/testenv/v2-hdmi.override.yaml b/testenv/v2-hdmi.override.yaml
new file mode 100644
index 00000000..a205d666
--- /dev/null
+++ b/testenv/v2-hdmi.override.yaml
@@ -0,0 +1,32 @@
+kvmd:
+ server:
+ unix_mode: 0666
+
+ hid:
+ keyboard:
+ device: /dev/null
+ mouse:
+ device: /dev/null
+ noop: true
+
+ msd:
+ remount_cmd: /bin/true
+ unlock_cmd: /bin/true
+ sysfs_prefix: /fake_sysfs
+
+ streamer:
+ desired_fps: 30
+ max_fps: 40
+ cmd:
+ - "/usr/bin/ustreamer"
+ - "--device=/dev/kvmd-video"
+ - "--quality={quality}"
+ - "--desired-fps={desired_fps}"
+ - "--resolution=800x600"
+ - "--last-as-blank=0"
+ - "--unix={unix}"
+ - "--unix-rm"
+ - "--unix-mode=0666"
+ - "--exit-on-parent-death"
+ - "--process-name-prefix={process_name_prefix}"
+ - "--no-log-colors"