generic: fsx IO_URING soak tests
[xfstests-dev.git] / common / rc
index 65ebfe201139ae7452370cfce66558faf65a44eb..e6a5b07b82be34843f5489c731e10f1c3c505f9e 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -1956,6 +1956,22 @@ _require_aiodio()
     _require_odirect
 }
 
+# this test requires that the kernel supports IO_URING
+_require_io_uring()
+{
+       $here/src/feature -R
+       case $? in
+       0)
+               ;;
+       1)
+               _notrun "kernel does not support IO_URING"
+               ;;
+       *)
+               _fail "unexpected error testing for IO_URING support"
+               ;;
+       esac
+}
+
 # this test requires that a test program exists under src/
 # $1 - command (require)
 #