path: root/test
AgeCommit message (Collapse)Author
2020-07-03test/ce593a6c480a-test: ignore argumentsJens Axboe
Signed-off-by: Jens Axboe <>
2020-07-03Add regression test case for task_work regressionJens Axboe
Signed-off-by: Jens Axboe <>
2020-06-30test: various missing return checks from io_uring_wait_cqe()Jens Axboe
Signed-off-by: Jens Axboe <>
2020-06-28Add a C++ unit testBart Van Assche
Since the liburing header files support C++ compilers, add a C++ unit test. This helps to verify C++ compatibility of the liburing header files. Signed-off-by: Bart Van Assche <> Signed-off-by: Jens Axboe <>
2020-06-22test/lfs-openat: open dfd with O_PATHMax Kellermann
This triggers a bug present until at least Linux 5.6.11, causing EBADF, see Signed-off-by: Max Kellermann <>
2020-06-22test/timeout-overflow: use #X for the timeout numberJens Axboe
'th doesn't really work for 1/2/3 timeouts, just use # to make it clear we're dealing with the timeout number. Signed-off-by: Jens Axboe <>
2020-06-21test/ make default timeout be 60 secondsJens Axboe
30 seconds is just a bit too short if the tests are run with KASAN and PROVE_LOCKING enabled, make it 60 seconds instead. Signed-off-by: Jens Axboe <>
2020-06-21Makefiles: Enable -WextraBart Van Assche
Enable -Wextra and disable the unused parameter and different signedness in comparison warnings. Signed-off-by: Bart Van Assche <> Signed-off-by: Jens Axboe <>
2020-06-16test/stdout: fix strcmp non-\0 stringPavel Begunkov
After copying len(str) bytes of a string, the copy won't necessary have \0 terminator, that makes test_pipe_io_fixed() to fail. Use memcmp(). Signed-off-by: Pavel Begunkov <> Signed-off-by: Jens Axboe <>
2020-06-15test/ add dmesg checkJens Axboe
Lifted this from blktests, basically it just checks for known patterns of kernel complaints. If we trigger one while running a test, we fail the test case. Signed-off-by: Jens Axboe <>
2020-06-10test/send_recv: add SQPOLL test caseJens Axboe
Signed-off-by: Jens Axboe <>
2020-06-09Add test/close-opath.cJens Axboe
This tests whether we can close an O_PATH opened fd. Test program is an edited version of one from Clay Harris <>, found here: Signed-off-by: Jens Axboe <>
2020-06-01test/ improve failed listJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-29test/iopoll: skip test if file/device/fs doesn't supported polled IOJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-23test/file-register: ensure write vs read is orderedJens Axboe
We submit both the read and write at the same time, there's no guarantee the write is even started by the time the read is issued. Play it safe and wait for the write before starting the read. Signed-off-by: Jens Axboe <>
2020-05-23test/ include argument for failed test concatenationJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-20test/eventfd-disable: ignore test when an argument is givenJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-20Add test/eventfd-disable.c test caseStefano Garzarella
This new test checks if the mechanism to enable/disable notifications through eventfd when a request is completed works correctly. Signed-off-by: Stefano Garzarella <> Signed-off-by: Jens Axboe <>
2020-05-20test: use config.local for runtests.shJens Axboe
Add it to .gitignore as well. This makes it easier to have a local configuration that isn't overwritten by resetting the git tree, or pulling changes. Signed-off-by: Jens Axboe <>
2020-05-20Add test case for SQPOLL -EBUSY bugJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test/ check if configured test files existJens Axboe
Helps to catch early if you're missing a module load or filesystem mount. Signed-off-by: Jens Axboe <>
2020-05-19test/fadvise: support configured test filesJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test/madvise: support configured test filesJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test/read-write: support configured test filesJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test/iopoll: add buf_select test caseJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test/iopoll: add polled IO test caseJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test: add option to run with defined test files / devicesJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-19test: add potential argument, ignore if unusedJens Axboe
Signed-off-by: Jens Axboe <>
2020-05-17splice/tee/tests: test len=0 splice/teePavel Begunkov
Check zero-length splice() and tee(). Signed-off-by: Pavel Begunkov <> Signed-off-by: Jens Axboe <>
2020-05-17tee/test: add test for tee(2)Pavel Begunkov
Add tee() tests with pipe data validation Signed-off-by: Pavel Begunkov <> Signed-off-by: Jens Axboe <>
2020-05-17splice/test: improve splice testsPavel Begunkov
Split and test functionality separately, better cover registered files cases, and validate file\pipe actual data. Signed-off-by: Pavel Begunkov <> Signed-off-by: Jens Axboe <>
2020-05-15test/open-close: fix race with closing ring itselfJens Axboe
Depending on timing, we can get -EBADF from the waiting on a completion. This is fine, as we've closed the ring itself, so we cannot rely the completion coming in, it'll depend completely on the timing of events. Signed-off-by: Jens Axboe <>
2020-05-01test/sfr: basic test for sync_file_rangePavel Begunkov
Just call it and check that it doesn't hang and returns success. Signed-off-by: Pavel Begunkov <> Signed-off-by: Jens Axboe <>
2020-04-30test/link-timeout: FASTPOLL kernels can cancel successfullyJens Axboe
We expect -EALREADY since an async worker was previously holding this request, but for kernels with FASTPOLL (5.7+), we can successfully cancel from the timeout. Allow -ETIME as well for the return value of the linked timeout. Signed-off-by: Jens Axboe <>
2020-04-27test/statx: add test case for AT_EMPTY_PATH + valid fdJens Axboe
Signed-off-by: Jens Axboe <>
2020-04-24Fix 32-bit warnings on compileJens Axboe
Signed-off-by: Jens Axboe <>
2020-04-24test: use mmap() directly in syzbot generated codeJens Axboe
Guillem reports that some new 32-bit architectures like armel and armhf don't have mmap, just mmap2. Just use mmap() and let libc deal with it, there's no reason why we need to call the specific mmap() system call. Reported-by: Guillem Jover <> Signed-off-by: Jens Axboe <>
2020-04-09configure: check for struct statxJens Axboe
If not there, don't build the test program test/statx Fixes: Signed-off-by: Jens Axboe <>
2020-04-08test/lfs-openat-write: return the correct errorJens Axboe
Signed-off-by: Jens Axboe <>
2020-04-08Coding style cleanupsJens Axboe
Signed-off-by: Jens Axboe <>
2020-04-08test/lfs-openat-write: test LFS writes with OPENAT fileJens Axboe
Heavily based on test case from Dmitry Kadashev <> Signed-off-by: Jens Axboe <>
2020-04-08test/lfs-openat: unlink the right fileJens Axboe
Signed-off-by: Jens Axboe <>
2020-04-08Add LFS openat testJens Axboe
Heavily based on test case from Dmitry Kadashev <> Link: Signed-off-by: Jens Axboe <>
2020-03-23test/read-write: skip IOSQE_ASYNC if not supportedJens Axboe
Signed-off-by: Jens Axboe <>
2020-03-20test/read-write: add RLIMIT_SIZE test caseJens Axboe
Signed-off-by: Jens Axboe <>
2020-03-20test/fallocate: add test case for exceeding RLIMIT_FSIZEJens Axboe
Signed-off-by: Jens Axboe <>
2020-03-14test/link-timeout: accept -ECANCELED for bad address write as wellJens Axboe
We just check for -EFAULT, but -ECANCELED is also OK and will happen on later kernels since we check earlier there for prep and defer. Signed-off-by: Jens Axboe <>
2020-03-14test/read-write: add test case for links with async/drainJens Axboe
Signed-off-by: Jens Axboe <>
2020-03-13test/test/sq-space_left: test kernel vs liburing side sync on short submitJens Axboe
Signed-off-by: Jens Axboe <>
2020-03-11Change 'gid' to 'bgid' for providing buffersJens Axboe
This makes it clear it's a buffer group ID, and not some variant of a credential related group ID. Signed-off-by: Jens Axboe <>