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
This commit is contained in:
Jeff Moyer 2021-08-02 16:13:57 -04:00
parent 9c6a438a32
commit be92be7bee
3 changed files with 26 additions and 0 deletions

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