From 08c1e3cce7a19fb36d6d47765842fb9793734197 Mon Sep 17 00:00:00 2001 From: guazhang Date: Wed, 8 May 2024 08:09:31 +0000 Subject: [PATCH] add liburing gating tests for rhel10 --- gating.yaml | 6 ++++++ tests/sanity/run_test.sh | 3 +++ tests/sanity/uring.c | 9 +++++++++ tests/tests.yml | 14 ++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/sanity/run_test.sh create mode 100644 tests/sanity/uring.c create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/sanity/run_test.sh b/tests/sanity/run_test.sh new file mode 100755 index 0000000..0268d1f --- /dev/null +++ b/tests/sanity/run_test.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gcc -o uring uring.c -luring diff --git a/tests/sanity/uring.c b/tests/sanity/uring.c new file mode 100644 index 0000000..08b3c91 --- /dev/null +++ b/tests/sanity/uring.c @@ -0,0 +1,9 @@ +#include + +int +main() +{ + struct io_uring ring; + + return io_uring_queue_init(1, &ring, 0); +} diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8a76afb --- /dev/null +++ b/tests/tests.yml @@ -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