12 Commits

Author SHA1 Message Date
Eli Schwartz 4475e75034 tests: more work on updating exit codes to use enum-based status reporting
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Link: https://lore.kernel.org/r/20220706034059.2817423-4-eschwartz93@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-07-06 06:44:52 -06:00
Dylan Yudaken 2df1b51bcb test: use remove_buffers instead of nop to generate error codes
This is in prep for allwoing NOP to be used in IOPOLL mode. remove_buffers
will consistently return ENOENT if asked to remove buffers from a
nonexistent group, and so this is a suitable replacement. Other opcodes
return -EINVAL in IOPOLL from the prep stage, which has slightly different
behaviour.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220422160132.2891927-8-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-04-22 11:18:08 -06:00
Pavel Begunkov de1ede34ef tests: remove test_link_fail_ordering()
Apparently old kernels were posting CQEs of a link failed during
submission in a strange order, kill the test.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2038218a804134079c8883293f6d89a1723ac563.1620405748.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-05-07 10:43:29 -06:00
Pavel Begunkov 72ba4ca16d tests: test CQE ordering on early submission fail
Check that CQEs of a link comes in the order of submission, even when
a link fails early during submission initial prep.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-04-04 09:45:26 -06:00
Jens Axboe 6c32e92bb0 test: add potential argument, ignore if unused
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-05-19 17:36:19 -06:00
Jens Axboe bce5ec37d9 test/link: fix typo
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-25 20:34:39 -07:00
Jens Axboe e502435779 Add SPDX license identifiers
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-11 20:34:12 -07:00
Pavel Begunkov 8666bac1ea Test wait after under-consuming
In case of an error submission won't consume all sqes. This tests that
it will get back to the userspace even if (to_submit == to_wait)

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-12-13 11:15:40 -07:00
Jens Axboe ff641cfcc8 test/link: add a few IOSQE_IO_HARDLINK test cases
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-12-10 08:41:53 -07:00
Stefan Hajnoczi c31c7ec4bc src/Makefile: keep private headers in <liburing/*.h>
It is not possible to install barrier.h and compat.h into the top-level
/usr/include directly since they are likely to conflict with other
software.  io_uring.h could be confused with the system's kernel header
file.

Put liburing headers into <liburing/*.h> so there is no chance of
conflicts or confusion.

Existing applications continue to build successfully since the location
of <liburing.h> is unchanged.  In-tree examples and tests require
modification because src/liburing.h is moved to src/include/liburing.h.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-07-24 09:11:44 -06:00
Jens Axboe 1982bfd44d Add chain failure handling test case
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-14 19:08:37 -06:00
Jens Axboe 0ba9503f79 Add link SQE support
Just a basic test case that does various forms of linked nops, and
a sample bare bones copy program using linked reads and writes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-05-13 16:16:07 -06:00