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