Tests: Asynchronous iSCSI read test

Dispatch a number of READ10 requests simultaneously, and await all
responses.

The iscsi-support test helper functions are currently all synchronous,
so this test mostly uses the bare libiscsi API. As new async tests are
added, we can make a more informed decision on which boilerplate code
can be split out.

Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
David Disseldorp
2016-03-10 18:04:31 +01:00
parent 83a4f54cb8
commit ebeca19480
4 changed files with 123 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ static CU_TestInfo tests_read10[] = {
{ (char *)"ZeroBlocks", test_read10_0blocks },
{ (char *)"ReadProtect", test_read10_rdprotect },
{ (char *)"DpoFua", test_read10_dpofua },
{ (char *)"Async", test_async_read },
CU_TEST_INFO_NULL
};