Commit Graph

998 Commits

Author SHA1 Message Date
Ronnie Sahlberg a1590cf30c TEST: Add simple test for GET_LBA_STATUS 2013-02-09 14:12:28 -08:00
Ronnie Sahlberg f816af3f83 TESTS: Keep the tests listed in alphabetical order for the opcodes 2013-02-09 12:14:41 -08:00
Lee Duncan 3f4bb80fd4 Converted first PGR test to new CUnit format
Here's the patch that really adds the new test ... plz let me know if I did this incorrectly.
---------------------------------------------------------------
parent 93fd84ab52bc56f889dbd7970345d205ce03f958 (1.7.0-238-g93fd84a)
commit c5aa45226d054389280b763ce5754c5fa647b05c
Author: Lee Duncan <lduncan@suse.de>
Date:   Wed Feb 6 13:43:08 2013 -0800

Converted first PGR test to new CUnit format
2013-02-09 12:05:57 -08:00
Lee Duncan 49d1f87d17 Clean up comment and usage message
parent df665e940aba51dbc6b1e7040bda476d66b6584f (1.7.0-237-gdf665e9)
commit 93fd84ab52bc56f889dbd7970345d205ce03f958
Author: Lee Duncan <lduncan@suse.de>
Date:   Wed Feb 6 13:41:39 2013 -0800

Clean up comment and usage message
2013-02-09 12:04:12 -08:00
Lee Duncan 7a9140f2f6 Removing useless debug print message
parent c1722f5fac (1.7.0-236-gc1722f5)
commit df665e940aba51dbc6b1e7040bda476d66b6584f
Author: Lee Duncan <lduncan@suse.de>
Date:   Wed Feb 6 13:39:24 2013 -0800

Removing useless debug print message
2013-02-09 11:41:26 -08:00
Ronnie Sahlberg c1722f5fac Merge pull request #58 from plieven/upstream_fixes
Upstream fixes
2013-01-28 17:34:20 -08:00
Peter Lieven 8bc0046f51 changed iscsi_data.size from int to size_t
iscsi_data.size is used as parameter to memory
operation functions (such as malloc) which except
size_t rather than int.

Signed-off-by: Peter Lieven <pl@kamp.de>
2013-01-28 09:36:00 +01:00
Peter Lieven 7e46a5a337 RECONNECT fix lost allocation on reconnect.
Signed-off-by: Peter Lieven <pl@kamp.de>
2013-01-28 09:31:13 +01:00
Ronnie Sahlberg aefa88b724 TESTS: Add tests that WRITESAME10/16 UNMAP will unmap until end of the device when number-of-blocks is set to 0 2013-01-27 10:32:00 -08:00
Ronnie Sahlberg 8e85b87092 TESTS: Add tests for PREFETCH10/16 to the new test suite 2013-01-26 18:07:25 -08:00
Ronnie Sahlberg 0dbffe1a5d TESTS Add tests for WRITESAME16 to the new testsuite 2013-01-26 09:18:39 -08:00
Ronnie Sahlberg f8298d013c TESTS: Add WRITESAME10 tests to the new testsuite 2013-01-26 09:05:02 -08:00
Ronnie Sahlberg 0f73f062d2 SCSI: remove LBDATA/PBDATA from the WriteSame10/16 signatures
Make LBA the third argument to the iscsi writesame functions
2013-01-21 21:15:37 -08:00
Ronnie Sahlberg 9bf6a3d68b UNMAP test, add subtest for no-descriptor at all 2013-01-21 20:36:04 -08:00
Ronnie Sahlberg 27f46c862f TEST: Add one more 0-block subtest for UNMAP 2013-01-21 20:30:06 -08:00
Ronnie Sahlberg 7027ccb3b2 TESTS: Fix num_blocks offset by one in the beyond-eol tests 2013-01-21 20:27:12 -08:00
Ronnie Sahlberg bfbde8b097 TEST: Add test for 0 blocks for UNMAP and fix num_blocks which was off by one
across the testsuite
2013-01-21 20:20:46 -08:00
Ronnie Sahlberg 72598c0b46 UNMAP: Fix marshalling of DATA when more than one unmap descriptor is sent. 2013-01-21 20:06:11 -08:00
Ronnie Sahlberg 2535eaed47 TEST add simple UNMAP test 2013-01-21 19:38:51 -08:00
Ronnie Sahlberg d7be22fa2f TESTS: add READCAPACITY16 tests 2013-01-21 17:13:48 -08:00
Ronnie Sahlberg ab3dfae005 TESTS add tests for VERIFY10 and VERIFY12 2013-01-21 14:50:40 -08:00
Ronnie Sahlberg 0e4e2e91bd TESTS: Add VERIFY16 tests 2013-01-21 14:27:14 -08:00
Ronnie Sahlberg 9799e04cd5 TESTS: Add WRITE10 tests 2013-01-21 11:49:26 -08:00
Ronnie Sahlberg 8de444bb87 TESTS Add WRITE12 tests 2013-01-21 11:43:50 -08:00
Ronnie Sahlberg 84c8606c90 TESTS: change write16 flags/wrprotect tests to also write one block of data 2013-01-21 11:24:31 -08:00
Ronnie Sahlberg 2f90e02395 TESTS: Add tests for WRITE16 to new framework 2013-01-21 11:19:43 -08:00
Ronnie Sahlberg 0c124ce3cc TESTS Add READ16 tests to the new framework 2013-01-21 08:36:23 -08:00
Ronnie Sahlberg d1641b762b TESTS: Add READ12 tests to the new test framework 2013-01-21 08:22:26 -08:00
Ronnie Sahlberg 192ee4d61b TESTS: convert READ6 tests to the new framework 2013-01-20 17:02:13 -08:00
Ronnie Sahlberg 2a1a7bc2bb TESTS: convert readcapacity10 test to new framework 2013-01-20 16:22:31 -08:00
Ronnie Sahlberg a57ef69c8e TESTS: fixup the first-log-line of each test 2013-01-15 18:31:18 -08:00
Ronnie Sahlberg e6d2c0713c TESTS-CU: Indent the verbose logging by 4 spaces 2013-01-14 06:39:25 -08:00
Ronnie Sahlberg 0f9d8d0617 TEST: Add a new flag -V that enables verbose logging off the SCSI commands used and if they succeeded or failed 2013-01-07 19:23:51 -08:00
Ronnie Sahlberg d97b3b30e3 TEST: Add a \n to the start of READ10_flags logging 2013-01-06 17:10:33 -08:00
Ronnie Sahlberg 4b3a53f7be TESTS: Update the READ10 tests for the new test tool 2013-01-06 17:08:50 -08:00
Ronnie Sahlberg 179d7b4f55 TESTS: Add different log levels to the TUR test test suite and see how it looks
Add different log levels and update the TUR testsute.
Update the helper for testunitready() so that it
* prints FAILURE messages for normal and verbose levels
* prints selfdocumenting messages for which SCSI command it sends and the expected result for the verbose level
2013-01-06 15:04:31 -08:00
Ronnie Sahlberg d21ad441bf Add check for libcunit and only build the test suite if libcunit is available 2013-01-06 11:28:07 -08:00
Ronnie Sahlberg a85db82806 Merge remote branch 'gonzoleeman/cunit' into cunit 2013-01-06 11:13:00 -08:00
Ronnie Sahlberg 39fcc2bc20 README: Update the url for release tarballs 2013-01-05 11:33:24 -08:00
Ronnie Sahlberg 1dc4023d70 New version 1.8.0
- Add new debugging/logging subsystem.
 - Collapse related structures into one and reduce amount of calls to malloc()
 - Add more functions to ld-iscsi so that we can write to luns too.
 - Start adding unmarshalling of CDBs
 - Add support for using iovectors for both reading and writing.
 - Fix a deadlock between CMDSN and DATA-OUT PDUs.
 - Redo how we handle FirstBurstLength/MaxRecvDataSegmentLength/ImmediateData/InitialR2T.
 - Add a new nice API for handling sending NOPs from the application.
 - Add tests for PersistentReservations.
2013-01-05 09:30:33 -08:00
Lee Duncan d3324decd2 CUnit tests now working for first 2 suites, but
Makefile.am not correct yet.
2013-01-04 18:11:36 -08:00
Lee Duncan fb4724c813 Added guts of new cunit-based main routine 2013-01-03 19:57:09 -08:00
Lee Duncan b8da17b3ec Now main() is seperate from guts of testing. 2013-01-03 19:56:30 -08:00
Lee Duncan ee5000ba9d Moved support routines from iscsi-test to iscsi-support,
in preperation for sharing non-main functions.
2013-01-02 17:15:48 -08:00
Ronnie Sahlberg 065319f996 SCSI Add support for STATUS_BUSY
Add support for BUSY status coide from the target and just pass this
back to the application as is (instead of converting it to _ERROR).

This allows the application to trap task->status==SCSI_STATUS_BUSY and
decide what/how to proceed.
2013-01-01 10:15:56 -08:00
Lee Duncan d9664cb26a Added test for other 5 PGR reservation types. 2012-12-28 11:21:37 -08:00
Lee Duncan 6a122428dd Merge https://github.com/sahlberg/libiscsi 2012-12-27 19:18:53 -08:00
Lee Duncan fbf8b5e426 - Made PGR test more verbose (naming initiator).
- Added test for Exclusive Access PGR reservation access testing.
2012-12-27 12:51:38 -08:00
Ronnie Sahlberg 91155c42e4 TESTS: Read standard inq page before we spawn the tests
We dont need to call inq so often from the tests if we read the standard page once before the tests begin
2012-12-27 11:47:34 -08:00
Ronnie Sahlberg 3a4605d3e5 TESTS: Remove some READCAPACITY16 we no longer need 2012-12-27 07:04:23 -08:00