From be92be7beef4edb3d8d66a0031a91955f6f113a3 Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Mon, 2 Aug 2021 16:13:57 -0400 Subject: [PATCH] Add gating tests The prior patch to add the gating configuration didn't actually add the tests. Pull them in from RHEL 8. Related: rhbz#1989278 --- tests/sanity/run_test.sh | 3 +++ tests/sanity/uring.c | 9 +++++++++ tests/tests.yml | 14 ++++++++++++++ 3 files changed, 26 insertions(+) create mode 100755 tests/sanity/run_test.sh create mode 100644 tests/sanity/uring.c create mode 100644 tests/tests.yml 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