From 4d31e3fc36bb6fad04b121ff59f31ad9ea7bd418 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 23 Nov 2026 18:10:54 +0900 Subject: all: support testing via qemu This adds the qemu build tag which disables tests unsupported on QEMU. Signed-off-by: Ophestra --- internal/dbus/dbus_test.go | 2 ++ internal/helper/args_test.go | 2 ++ internal/helper/cmd_test.go | 2 ++ internal/helper/container_test.go | 2 ++ internal/helper/helper_test.go | 2 ++ internal/lockedfile/internal/filelock/filelock_test.go | 2 +- internal/lockedfile/lockedfile_test.go | 2 +- internal/lockedfile/transform_test.go | 2 +- 8 files changed, 13 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/dbus/dbus_test.go b/internal/dbus/dbus_test.go index f6175567..22126e3f 100644 --- a/internal/dbus/dbus_test.go +++ b/internal/dbus/dbus_test.go @@ -1,3 +1,5 @@ +//go:build !qemu + package dbus_test import ( diff --git a/internal/helper/args_test.go b/internal/helper/args_test.go index c83c6790..16ce2a36 100644 --- a/internal/helper/args_test.go +++ b/internal/helper/args_test.go @@ -1,3 +1,5 @@ +//go:build !qemu + package helper_test import ( diff --git a/internal/helper/cmd_test.go b/internal/helper/cmd_test.go index 3d29479c..7dfabe57 100644 --- a/internal/helper/cmd_test.go +++ b/internal/helper/cmd_test.go @@ -1,3 +1,5 @@ +//go:build !qemu + package helper_test import ( diff --git a/internal/helper/container_test.go b/internal/helper/container_test.go index 02dc5346..9703bf82 100644 --- a/internal/helper/container_test.go +++ b/internal/helper/container_test.go @@ -1,3 +1,5 @@ +//go:build !qemu + package helper_test import ( diff --git a/internal/helper/helper_test.go b/internal/helper/helper_test.go index a44d5ede..ec6bcf45 100644 --- a/internal/helper/helper_test.go +++ b/internal/helper/helper_test.go @@ -1,3 +1,5 @@ +//go:build !qemu + package helper_test import ( diff --git a/internal/lockedfile/internal/filelock/filelock_test.go b/internal/lockedfile/internal/filelock/filelock_test.go index a545010d..9a26f7fc 100644 --- a/internal/lockedfile/internal/filelock/filelock_test.go +++ b/internal/lockedfile/internal/filelock/filelock_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !js && !plan9 && !wasip1 +//go:build !qemu && !js && !plan9 && !wasip1 package filelock_test diff --git a/internal/lockedfile/lockedfile_test.go b/internal/lockedfile/lockedfile_test.go index c86b7786..38c57848 100644 --- a/internal/lockedfile/lockedfile_test.go +++ b/internal/lockedfile/lockedfile_test.go @@ -4,7 +4,7 @@ // js and wasip1 do not support inter-process file locking. // -//go:build !js && !wasip1 +//go:build !qemu && !js && !wasip1 package lockedfile_test diff --git a/internal/lockedfile/transform_test.go b/internal/lockedfile/transform_test.go index 95807493..7c93a0a8 100644 --- a/internal/lockedfile/transform_test.go +++ b/internal/lockedfile/transform_test.go @@ -4,7 +4,7 @@ // js and wasip1 do not support inter-process file locking. // -//go:build !js && !wasip1 +//go:build !qemu && !js && !wasip1 package lockedfile_test -- cgit v1.3.1