aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/tests
diff options
context:
space:
mode:
Diffstat (limited to '.ci/templates/tests')
-rwxr-xr-x.ci/templates/tests/rhombus-labgrid/crossbar/places.yaml17
-rw-r--r--.ci/templates/tests/rhombus-labgrid/device-configs/rhombus-n310-0.yml16
-rwxr-xr-x.ci/templates/tests/rhombus-labgrid/docker-compose.yml26
-rwxr-xr-x.ci/templates/tests/rhombus-labgrid/exporter-conf/exporter.yaml17
4 files changed, 76 insertions, 0 deletions
diff --git a/.ci/templates/tests/rhombus-labgrid/crossbar/places.yaml b/.ci/templates/tests/rhombus-labgrid/crossbar/places.yaml
new file mode 100755
index 000000000..43284c5ef
--- /dev/null
+++ b/.ci/templates/tests/rhombus-labgrid/crossbar/places.yaml
@@ -0,0 +1,17 @@
+rhombus-n310-0:
+ acquired: null
+ acquired_resources: []
+ aliases: []
+ allowed: []
+ changed: 1654034475.1935894
+ comment: ''
+ created: 1654034136.0077882
+ matches:
+ - cls: '*'
+ exporter: '*'
+ group: rhombus-n310-0-group
+ name: null
+ rename: null
+ reservation: null
+ tags: {}
+
diff --git a/.ci/templates/tests/rhombus-labgrid/device-configs/rhombus-n310-0.yml b/.ci/templates/tests/rhombus-labgrid/device-configs/rhombus-n310-0.yml
new file mode 100644
index 000000000..ba22280da
--- /dev/null
+++ b/.ci/templates/tests/rhombus-labgrid/device-configs/rhombus-n310-0.yml
@@ -0,0 +1,16 @@
+targets:
+ main:
+ resources:
+ RemotePlace:
+ name: 'rhombus-n310-0'
+ drivers:
+ - SerialDriver:
+ name: 'linux_serial_driver'
+ bindings:
+ port: 'console-linux'
+ - SerialDriver:
+ name: 'scu_serial_driver'
+ bindings:
+ port: 'console-scu'
+ - USBSDMuxDriver: {}
+ - USBStorageDriver: {}
diff --git a/.ci/templates/tests/rhombus-labgrid/docker-compose.yml b/.ci/templates/tests/rhombus-labgrid/docker-compose.yml
new file mode 100755
index 000000000..22a1eb219
--- /dev/null
+++ b/.ci/templates/tests/rhombus-labgrid/docker-compose.yml
@@ -0,0 +1,26 @@
+version: '3.3'
+services:
+ coordinator:
+ image: "labgrid-coordinator"
+ volumes:
+ - "./crossbar:/home/root/crossbar:Z"
+ tty: true
+ network_mode: "host"
+ restart: unless-stopped
+ command: bash -c "cp /home/root/crossbar/places.yaml /opt/crossbar/places.yaml &&
+ crossbar start --config /opt/labgrid/.crossbar/config.yaml"
+ exporter:
+ image: "labgrid-exporter"
+ volumes:
+ - "./exporter-conf:/opt/conf:Z"
+ - "/run/udev:/run/udev:ro"
+ - "/dev:/dev"
+ depends_on:
+ - coordinator
+ tty: true
+ network_mode: "host"
+ restart: unless-stopped
+ stdin_open: true
+ privileged: true
+ command: bash -c "set -e &&
+ /opt/wait-for-it/wait-for-it.sh 127.0.0.1:20408 -- labgrid-exporter /opt/conf/exporter.yaml"
diff --git a/.ci/templates/tests/rhombus-labgrid/exporter-conf/exporter.yaml b/.ci/templates/tests/rhombus-labgrid/exporter-conf/exporter.yaml
new file mode 100755
index 000000000..c898b8dda
--- /dev/null
+++ b/.ci/templates/tests/rhombus-labgrid/exporter-conf/exporter.yaml
@@ -0,0 +1,17 @@
+rhombus-n310-0-group:
+ console-scu:
+ cls: USBSerialPort
+ match:
+ ID_SERIAL: 'Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_0097D446'
+ ID_USB_INTERFACE_NUM: '01'
+ speed: 115200
+ console-linux:
+ cls: USBSerialPort
+ match:
+ ID_SERIAL: 'Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_0097D446'
+ ID_USB_INTERFACE_NUM: '00'
+ speed: 115200
+ USBSDMuxDevice:
+ match:
+ ID_SERIAL_SHORT: '000000001506'
+