]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: disable nonfunctional tests under qemu user emulation
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 10 Oct 2022 12:34:58 +0000 (14:34 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 17 Oct 2022 22:00:20 +0000 (00:00 +0200)
15 files changed:
tests/functions.sh
tests/ts/colcrt/functional
tests/ts/colcrt/regressions
tests/ts/column/table
tests/ts/kill/name_to_number
tests/ts/lsfd/column-ainodeclass
tests/ts/lsfd/column-name
tests/ts/lsfd/column-type
tests/ts/lsfd/mkfds-mapped-packet-socket
tests/ts/lsfd/mkfds-ro-block-device
tests/ts/lsfd/mkfds-tcp
tests/ts/lsfd/mkfds-unix-in-netns
tests/ts/mount/fstab-broken
tests/ts/mount/fstab-none
tests/ts/mount/move

index 216b66e64a151cd2c0345edeb2f8000e7ac44b0c..96915aee68a3010d7d943e19dbc62b29fbb3ec3a 100644 (file)
@@ -134,6 +134,12 @@ function ts_skip_nonroot {
        fi
 }
 
+function ts_skip_qemu_user {
+       if [ "$QEMU_USER" == "1" ]; then
+               ts_skip "running under qemu-user emulation"
+       fi
+}
+
 function ts_failed_subtest {
        local msg="FAILED"
        local ret=1
index 3e8cc3862c7156d74ac1d6bed79e307994cc3f66..f3c290a5f9239193117531f9811c4f201a740413 100755 (executable)
@@ -19,6 +19,7 @@ TS_DESC="functional"
 export LC_CTYPE='C'
 
 . $TS_TOPDIR/functions.sh
+ts_skip_qemu_user # https://gitlab.com/qemu-project/qemu/-/issues/1248
 ts_init "$*"
 
 ts_check_test_command "$TS_CMD_COLCRT"
index 130ad9a5a4fd39695b00ab6bad8cb678cedafa80..c4ccb531cfeae63b81086f19525b585c364a82a8 100755 (executable)
@@ -17,6 +17,7 @@ TS_TOPDIR="${0%/*}/../.."
 TS_DESC="regressions"
 
 . $TS_TOPDIR/functions.sh
+ts_skip_qemu_user # https://gitlab.com/qemu-project/qemu/-/issues/1248
 ts_init "$*"
 
 ts_check_test_command "$TS_CMD_COLCRT"
index 0ef53888e36c3fb338f2b6e371e24ef542e20edc..a9381aac5eaaf4dfb9132997723a8fefd2a664cb 100755 (executable)
@@ -19,6 +19,7 @@ TS_TOPDIR="${0%/*}/../.."
 TS_DESC="table"
 
 . $TS_TOPDIR/functions.sh
+ts_skip_qemu_user # https://gitlab.com/qemu-project/qemu/-/issues/1248
 ts_init "$*"
 
 ts_check_test_command "$TS_CMD_COLUMN"
index 8a7f4bef055681bdccf2d54b99cf0fabb8c499ff..955d861ecb402afafd74b809eb54b77a78f1e3b7 100755 (executable)
@@ -26,6 +26,9 @@ fi
 ts_check_test_command "$TS_CMD_KILL"
 ts_check_test_command "$TS_HELPER_SIGRECEIVE"
 
+# SIGRTMAX-0 and SIGRTMAX-1 are not usable under QEMU
+ts_skip_qemu_user
+
 . "$TS_SELF/kill_functions.sh"
 
 all_ok=true
index 3db9189de69d625ec85ec5ee45995a87f39feae7..2096c5b0c88e5a1034aa9d6d78595a544696ef49 100755 (executable)
@@ -22,6 +22,7 @@ ts_init "$*"
 
 ts_check_test_command "$TS_CMD_LSFD"
 ts_check_test_command "$TS_HELPER_MKFDS"
+ts_skip_qemu_user
 
 ts_cd "$TS_OUTDIR"
 
index f87296c9afe23fe9048fb128880eef02f722ad45..3d56582607aa615f2a48111761f030f71f3bb92b 100755 (executable)
@@ -23,6 +23,7 @@ ts_init "$*"
 ts_check_test_command "$TS_CMD_LSFD"
 ts_check_test_command "$TS_HELPER_MKFDS"
 ts_check_prog "sed"
+ts_skip_qemu_user
 
 ts_cd "$TS_OUTDIR"
 
index d31b71254deccbba177ac5726dfd51b2e790ef18..4b69ec751a610614a84a9f22ce71819fb40003ab 100755 (executable)
@@ -22,6 +22,7 @@ ts_init "$*"
 
 ts_check_test_command "$TS_CMD_LSFD"
 ts_check_test_command "$TS_HELPER_MKFDS"
+ts_skip_qemu_user
 
 ts_cd "$TS_OUTDIR"
 
index 1efa75492a0f71b77db4e10a1323c5e800b59c93..abb0127384f94c20706d3d3b730d5e99f8007092 100755 (executable)
@@ -20,6 +20,7 @@ TS_DESC="mmap'ed AF_PACKET socket"
 . $TS_TOPDIR/functions.sh
 ts_init "$*"
 ts_skip_nonroot
+ts_skip_qemu_user
 
 . $TS_SELF/lsfd-functions.bash
 
index 86c1ba874b13820ee539e302331f0590dcbe66ff..2ba2a97d7f86d7e1a86df4a17408960819124b62 100755 (executable)
@@ -20,6 +20,7 @@ TS_DESC="block device with O_RDONLY"
 . $TS_TOPDIR/functions.sh
 ts_init "$*"
 ts_skip_nonroot
+ts_skip_qemu_user
 
 . $TS_SELF/lsfd-functions.bash
 
index 129e74b0b8212932bafa40014cfe2c132628163a..f74333f644b2ad48b77c0675d247ffff8d093f39 100755 (executable)
@@ -22,6 +22,7 @@ ts_init "$*"
 
 ts_check_test_command "$TS_CMD_LSFD"
 ts_check_test_command "$TS_HELPER_MKFDS"
+ts_skip_qemu_user
 
 ts_cd "$TS_OUTDIR"
 
index a0e3bc887095e6230406df6118f4d731aa23d956..ea22ae5d1d2fdac88e561ec64934d0d0b5160b12 100755 (executable)
@@ -20,6 +20,7 @@ TS_DESC="UNIX sockets made in a differenct net namespace"
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
 ts_skip_nonroot
+ts_skip_qemu_user
 
 ts_check_test_command "$TS_CMD_LSFD"
 
index 947e3af7aeb28fe35e1c4567b71dee602ac9db49..c103ac915d6297635f47b4b29114ed3a7810b728 100755 (executable)
@@ -26,6 +26,7 @@ ts_check_test_command "$TS_CMD_UMOUNT"
 ts_check_test_command "$TS_CMD_FINDMNT"
 
 ts_skip_nonroot
+ts_skip_qemu_user
 
 # Let's use the same mountpoint for all subtests
 MNT=$TS_MOUNTPOINT
index e2ed0af024a7f1be09de6ef773c8f7b3b7cc77fd..4be9d3f7d0b6fd21f7a808dd7517807beae868f4 100755 (executable)
@@ -11,6 +11,7 @@ ts_check_test_command "$TS_CMD_UMOUNT"
 ts_check_test_command "$TS_CMD_FINDMNT"
 
 ts_skip_nonroot
+ts_skip_qemu_user
 
 ts_fstab_add "none" "$TS_MOUNTPOINT" "tmpfs" "rw,nosuid,nodev,relatime"
 
index 9d2723a751929edc856788b8905c86eea7bc5678..91080e55bbce22fad5520da85f8ba7399617cc38 100755 (executable)
@@ -27,6 +27,7 @@ ts_check_test_command "$TS_CMD_FINDMNT"
 ts_check_test_command "$TS_CMD_MOUNTPOINT"
 
 ts_skip_nonroot
+ts_skip_qemu_user
 
 function mount_and_check {
        # last arg must be an existing or to-be-mounted mountpoint