add liburing gating tests for rhel10

This commit is contained in:
guazhang 2024-05-08 08:09:31 +00:00
parent f2bafb6e2d
commit 08c1e3cce7
4 changed files with 32 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

3
tests/sanity/run_test.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
gcc -o uring uring.c -luring

9
tests/sanity/uring.c Normal file
View File

@ -0,0 +1,9 @@
#include <liburing.h>
int
main()
{
struct io_uring ring;
return io_uring_queue_init(1, &ring, 0);
}

14
tests/tests.yml Normal file
View File

@ -0,0 +1,14 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- atomic
- classic
tests:
- sanity:
dir: sanity/
run: run_test.sh
required_packages:
- liburing-devel
- gcc
- glibc-devel