Add usbip virtual-device interop tests

This commit is contained in:
世界
2026-04-22 02:37:01 +08:00
parent 5e8c224be3
commit 4608c0c656
4 changed files with 1014 additions and 18 deletions
+5
View File
@@ -46,6 +46,11 @@ jobs:
run: |
echo "BUILD_TAGS=$(cat release/DEFAULT_BUILD_TAGS_OTHERS)" >> "$GITHUB_ENV"
echo "LDFLAGS_SHARED=$(cat release/LDFLAGS)" >> "$GITHUB_ENV"
- name: Install usbip tools
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y usbip
- name: Test (unix)
if: matrix.os != 'windows-latest'
run: go test -v -exec sudo -tags "$BUILD_TAGS" -ldflags "$LDFLAGS_SHARED" ./...