Ronnie Sahlberg
1629a2c7fc
DOCS: Update the manpage that --test now accepts a filename to read the list of tests from
2014-03-26 19:13:12 -07:00
Ronnie Sahlberg
91156cffe9
TESTS: Allow specifying a file instead of a test glob pattern
...
Allow specifying a --test <file> in which case the tests listed in the file
will be executed.
This makes it easier than having to specify a potentially huge number
of tests on the command line.
2014-03-26 19:10:12 -07:00
Ronnie Sahlberg
458764a77d
TESTS: Add support to specify multiple test glob expressions
2014-03-26 18:35:07 -07:00
Ronnie Sahlberg
68610bd7cf
TESTS: The SCSI test is called TestUnitReady, not UnitReady
2014-03-26 18:20:27 -07:00
Ronnie Sahlberg
1daa323e8b
Change remaining command line arguments --initiator_name to --initiator-name
...
Change the remaining instances to match the manpages and help texts
2014-03-26 17:58:30 -07:00
Ronnie Sahlberg
4a82660c57
Merge pull request #105 from rossjudson/master
...
Change actual option name to use dash
2014-03-26 09:24:18 -07:00
Ross Judson
90b6658482
Match actual option name with usage
2014-03-26 12:14:33 -04:00
Ross Judson
81c71649e7
Fix usage to reflect options with underscore
2014-03-26 12:11:25 -04:00
Ronnie Sahlberg
bbf1ceeabe
DOC: Describe the return code for the external xml script
2014-03-25 18:36:20 -07:00
Ronnie Sahlberg
6f7fe8f36a
DOCS: Add an initial manpage for iscsi-test-cu
2014-03-24 17:04:29 -07:00
Ronnie Sahlberg
44c9e47ddf
README: Mention --initiator-name and --initiator-name-2 in the section for the new test tool.
2014-03-24 16:03:56 -07:00
Ronnie Sahlberg
9f51601d1a
DOCS: Include the pre-built manpages in the distribution
2014-03-23 09:04:33 -07:00
Ronnie Sahlberg
24601a36ee
MAKEFILE.AM cleanups
2014-03-22 18:21:27 -07:00
Ronnie Sahlberg
aff5ef7ed2
AUTOTOOLS: Build the ld preload thing as part of examples
2014-03-22 18:11:30 -07:00
Ronnie Sahlberg
ae60611f68
AUTOTOOLS: Add Makefile.am for examples/
2014-03-22 17:46:02 -07:00
Ronnie Sahlberg
ea790b2f75
AUTOTOOLS: Add Makefile.am to test-tool
2014-03-22 16:46:25 -07:00
Ronnie Sahlberg
c07779cfa7
AUTOTOOLS: Add a Makefile.am for the iscsi-* utilities
2014-03-22 13:10:19 -07:00
Ronnie Sahlberg
65d3597c1b
AUTOTOOLS: Create Makefile.am for lib
2014-03-22 13:10:15 -07:00
Ronnie Sahlberg
5500f84402
AUTOTOOLS: Create a separate Makefile.am for the docs directory
2014-03-22 13:10:07 -07:00
Ronnie Sahlberg
7d1f7a5308
DOCS: Add configure --enable-manpages which controls whether to build the manpages or not
2014-03-22 13:08:24 -07:00
Ronnie Sahlberg
b1d82d7cb1
DOCS: Use a default build rule for the manpages
2014-03-22 13:08:05 -07:00
Ronnie Sahlberg
a988035451
DOCS: Add the generated manpages to the repository
2014-03-22 13:07:15 -07:00
Ronnie Sahlberg
3032255d0c
DOCS: Dont reference the samba doctypes.
...
Our manpages are so simple we can just skip the DOCTYPE
2014-03-21 16:39:54 -07:00
Ronnie Sahlberg
2ca4574462
Merge pull request #97 from jh86/master
...
correct some grammar, spelling, acronyms, conventions, wrap to 80 chars where possible
2014-03-18 06:31:37 -07:00
Jon Hermansen
16e448e945
correct some grammar, spelling, acronyms, conventions, wrap to 80 chars where possible
2014-03-18 00:19:45 -07:00
Ronnie Sahlberg
483398c605
Merge branch 'master' of github.com:sahlberg/libiscsi
2014-03-15 08:45:56 -07:00
Bart Van Assche
e8545d6a03
verify1[02]_invalidfieldincdb(): Fix an error message
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
2014-03-15 08:45:21 -07:00
Ronnie Sahlberg
b33fa30a28
Merge pull request #96 from jh86/master
...
update README to describe new XML output mode
2014-03-13 13:56:30 -07:00
Jon Hermansen
b16709ccd8
update README to describe new XML output mode
2014-03-13 11:58:26 -07:00
Ronnie Sahlberg
e216e032af
Merge pull request #95 from jh86/master
...
Add XML output option to iscsi-test-cu
2014-03-12 05:59:13 -07:00
Jon Hermansen
d34d61a782
add automated XML output option to iscsi-test-cu
2014-03-11 16:15:19 -07:00
Ronnie Sahlberg
75769ec286
Merge pull request #94 from jh86/master
...
Fix READ(6) tests' capacity checks
2014-03-11 12:22:41 -07:00
Jon Hermansen
d348633763
fix capacity checks in READ(6) tests
2014-03-11 10:44:54 -07:00
Ronnie Sahlberg
270db13f7c
TESTS: Warn not fail if inquiry descriptors do not contain SPC* or SBC*
...
Only print a warning but do not fail if the standard inquire version
descriptors do not contain a SPC* or SBC* entry.
2014-03-06 20:30:00 -08:00
Ronnie Sahlberg
b0dbecaff7
TESTS: compare and write: Invalidfieldincdb is illegal-request, not miscompare
2014-03-06 17:30:46 -08:00
Ronnie Sahlberg
879f542ebf
TESTS: CompareAndWrite are bounded by the max block setting in BlockLimits
...
Make sure that we check that a target returns an error if we try to compare and write too much.
2014-03-05 18:47:24 -08:00
Ronnie Sahlberg
fc91b41b5a
TESTS: Clear iscsi_local_iscsi_queue_pdy pointer before we return from the test.
2014-03-03 17:25:24 -08:00
Ronnie Sahlberg
dbc9ffb5cb
TESTS: ReportSupportedOpcodes return the opcode itself as data[0], not 0xff
...
The first byte of CDB USAGE FIELD contains the opcode value itself, not
0xff.
From SPC4 :
...
The first byte of the CDB USAGE FIELD
field shall contain the operation code for the command being queried.
...
2014-02-24 19:04:58 -08:00
Ronnie Sahlberg
0236395709
Run configure --prefix=/usr during makerpms.sh
2014-02-11 19:40:38 -08:00
Ronnie Sahlberg
20b25b9088
Make sure the rpm build directories exist before we try copying into them.
2014-02-10 19:53:36 -08:00
Ronnie Sahlberg
3e00541fae
Create RPM target for the testsuite
2014-02-09 18:15:12 -08:00
Ronnie Sahlberg
0c82fa1a13
Update README with more clear description of the libcunit dependency for iscsi-test-cu
2014-02-02 15:37:08 -08:00
Ronnie Sahlberg
f7a21d1dcd
Add iscsi-swp +manpage to the rpm build
2014-02-02 08:42:26 -08:00
Ronnie Sahlberg
cc81b67620
TESTS: Add tests for invalid iSCSI DATASN values.
2014-01-26 09:35:17 -08:00
Ronnie Sahlberg
5eb9d8750b
Merge pull request #87 from sitsofe/oldtests
...
OLD TESTS: Fix use after free in unsolicited_[non]immediate_data tests.
2014-01-26 08:25:49 -08:00
Ronnie Sahlberg
99be69a08f
Merge pull request #86 from sitsofe/writesame
...
Update WRITESAME tests and fix a logging typo
2014-01-26 08:25:15 -08:00
Sitsofe Wheeler
b42a6ede19
OLD TESTS: Fix use after free in unsolicited_[non]immediate_data tests.
...
After destroying iscsi, nullify iscsi_url's reference to it to prevent a use
after free.
Detected by clang's AddressSanitizer.
2014-01-25 08:59:35 +00:00
Sitsofe Wheeler
e1659b1973
TESTS: Fix WRITESAME tests to handle targets that don't like datalen == 0
...
Recent SBC specs say (when the WSNZ bit is set to one and the NUMBER OF LOGICAL
BLOCKS field is set to zero) or (if MAXIMUM WRITE SAME LENGTH is greater than 0
and the number of logical blocks specified to be written exceeds the MAXIMUM
WRITE SAME LENGTH) the server should terminate with CHECK CONDITION, set the
sense key to ILLEGAL REQUEST and the additional sense code to INVALID FIELD IN
CDB.
Update the WRITESAME tests to cope with this.
2014-01-25 05:37:45 +00:00
Sitsofe Wheeler
38ba5b6c0e
Fix logging typo.
2014-01-24 18:56:54 +00:00
Ronnie Sahlberg
0fbe47c1bd
Merge pull request #85 from vn516726/master
...
Corrected the log
2014-01-23 19:56:23 -08:00