Ronnie Sahlberg
efc556e2e9
TESTS: Create a test that tries to overflow the maxcmdsn counter
...
so that i/o from the initiator stops flowing and are just queued locally
until teh cmdsn window opens up again.
Send a lot of writes that block until we have processed the R2T
back from the target and verify we can still make process when we
have saturated the cmdsn window and are also blocked waiting for R2Ts.
2012-11-27 19:51:22 -08:00
Bernhard Kohl
219533dc7b
Returned buffers from poptGetArgs() are free()ed in poptFreeContext()
...
Calling "free(url);" causes a core dump in glibc-2.15.
Signed-off-by: Bernhard Kohl <bernhard.kohl@gmx.net >
2012-11-18 14:12:30 -08:00
Ronnie Sahlberg
3ccc2f2834
TESTS: Update the VERIFY10/12/16 tests for BYTCHK==0
2012-11-18 10:10:04 -08:00
Ronnie Sahlberg
5a95010b59
Fix some compiler warnings
2012-11-11 10:12:39 -08:00
Ronnie Sahlberg
9eb26a368d
Fix compiler warnings related to 'const'
2012-11-11 10:03:45 -08:00
Arne Redlich
f618d08350
T1030_unsolicited_data_overflow: fix uninitialized variable warning
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-02 21:28:40 +01:00
Arne Redlich
13b1f49fe5
T1031_unsolicited_data_out: fix uninitialised variable warning
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-02 21:23:47 +01:00
Arne Redlich
d2e68d7a25
T0122_read6_invalid: suppress signed/unsigned comparison warnings
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-11-02 21:16:45 +01:00
Arne Redlich
081ae59cdf
T0105_read10_invalid: suppress signed/unsigned comparison warnings
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 17:05:47 +01:00
Arne Redlich
5cd48f87ff
T0403_inquiry_supported_vpd: fix signed/unsigned comparison warning
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 17:00:46 +01:00
Arne Redlich
b5372272b1
T0422_reserve6_logout: fix compiler warnings
...
Remove unused labels and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:54:29 +01:00
Arne Redlich
578bdae3af
T0421_reserve6_lun_reset: fix compiler warnings
...
Remove unused label and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:53:26 +01:00
Arne Redlich
af33ca36ff
T1031_unsolicited_data_out: mark unused parameters as such
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:50:38 +01:00
Arne Redlich
17e8b54759
T1030_unsolicited_data_overflow: remove unused variable
...
old_first_burst_len is set but never used - remove it. Also replace an
if (!ptr)
free(ptr)
with
free(ptr)
as the check is redundant.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:48:48 +01:00
Arne Redlich
e0555555bb
T0430_report_all_supported_ops: fix compiler warnings
...
* remove unused label
* mark unused parameter
* fix signedness warnings
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:46:01 +01:00
Arne Redlich
ea560255a6
T0424_reserve6_target_reset: fix compiler warnings
...
Remove unused labels and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:40:29 +01:00
Arne Redlich
ab411e4401
T0423_reserve6_sessionloss: fix compiler warnings
...
Remove unused labels and mark unused parameters as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:34:11 +01:00
Arne Redlich
d402a337e3
T0420_reserve6_simple: fix compiler warnings
...
Mark unused parameter as such and remove unused labels.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:32:12 +01:00
Arne Redlich
88341c0a73
T0410_readtoc_basic: fix compiler warnings
...
Remove unused labels and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:25:47 +01:00
Arne Redlich
13c253f0dc
T0404_inquiry_all_reported_vpd: fix compiler warnings
...
* mark unused parameter as such
* wrap parens around a bitop
* remove unused labels
* fix error messages
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:20:55 +01:00
Arne Redlich
c195348e4d
T0403_inquiry_supported_vpd: fix compiler warnings
...
Remove unused labels and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:12:21 +01:00
Arne Redlich
ea20edb513
T0402_inquiry_evpd: fix compiler warnings
...
Remove unused label and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 16:06:25 +01:00
Arne Redlich
6819637ddc
T0401_inquiry_alloclen: fix compiler warnings
...
Remove unused variables and mark unused parameter as such.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:59:42 +01:00
Arne Redlich
e991146902
T0241_prefetch10_flags: remove unused variable
...
Pointed out by gcc: num_blocks is set but unused
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:58:31 +01:00
Arne Redlich
1be5fe1bda
T0251_prefetch16_flags: remove unused variable
...
gcc points out that num_blocks is set but never used
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:55:52 +01:00
Arne Redlich
d983cdfc2c
T0161_readcapacity16_alloclen: remove unused variable
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:54:33 +01:00
Arne Redlich
34b25f94c1
0122_read6_invalid.c: add missing include
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:53:08 +01:00
Arne Redlich
45ce1537f2
T0400_inquiry_basic: fix compiler warnings
...
gcc complains about an unused parameter (mark it as such) and unused labels
(remove 'em).
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:52:11 +01:00
Arne Redlich
311a63c61d
T0401_inquiry_alloclen: remove unused label
...
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:50:59 +01:00
Arne Redlich
4d27ecae32
test-tool: fix initiatorname and initiatorname2 issues
...
gcc-4.6.3 warned about this one on several occasions:
gcc -DHAVE_CONFIG_H -I. -I. -I./include "-D_U_=__attribute__((unused))" -I./test-tool -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -ggdb3 -O0 -MT test-tool/bin_iscsi_test-0000_testunitready_simple.o -MD -MP -MF test-tool/.deps/bin_iscsi_test-0000_testunitready_simple.Tpo -c -o test-tool/bin_iscsi_test-0000_testunitready_simple.o `test -f 'test-tool/0000_testunitready_simple.c' || echo './'`test-tool/0000_testunitready_simple.c
test-tool/0000_testunitready_simple.c: In function 'T0000_testunitready_simple':
test-tool/0000_testunitready_simple.c:23:44: warning: declaration of 'initiator' shadows a global declaration [-Wshadow]
test-tool/iscsi-test.h:20:20: warning: shadowed declaration is here [-Wshadow]
For now the global initiator is renamed to initiatorname1 (and initiator2 is
renamed to initiatorname2, respectively), but ultimately the globals should
probably go away.
While fixing this it also became apparent that initiator-name-2 was parsed
into the "initiator" variable as well.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:32:18 +01:00
Arne Redlich
3af45f5867
testunitready_simple: fix compiler warnings
...
The compiler complains about an unused label and and unused
variable.
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com >
2012-10-31 15:19:55 +01:00
Ronnie Sahlberg
6507f4050f
Merge pull request #31 from plieven/master
...
memory leak fixes + suggestion for iscsi context + qemu-kvm bug
2012-10-30 18:54:38 -07:00
Ronnie Sahlberg
1d56c2f970
Merge pull request #33 from jongrimm/master
...
Skip test for read supported ops, rather than failure
2012-10-30 18:50:48 -07:00
Ronnie Sahlberg
9e9c6946c0
TESTS: Add a test that a target handles an unsolicited DATA-OUT correctly.
...
Send a large number of DATA-OUT PDUs that do not have a matching SCSI-COMMAND
PDU and verify that the target responds correctly. Either by terminating the
session or by just ignoring the data.
Verify also that the target is not "surprised" and crashes.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-10-30 18:44:35 -07:00
Peter Lieven
774ede1f46
ISCSI_URL change strings from dynamic to static
2012-10-30 11:41:51 +01:00
Peter Lieven
e10a5a97be
Merge remote-tracking branch 'jongrimm/master'
2012-10-30 11:09:38 +01:00
Jon Grimm
f97cd4f816
Test: 0430_report_all_supported_ops: BUG: Need to set return_timeouts parm again after I know full_size.
2012-10-29 18:07:15 -05:00
Peter Lieven
d989474a36
ISCSI-TEST free strings malloc'ed by libpopt
2012-10-29 22:07:58 +01:00
Jon Grimm
9f5a315e0c
TEST: skip optional return op codes if not supported.
2012-10-29 10:55:02 -05:00
Jon Grimm
b81bdd3932
Merge with upstream
2012-10-25 12:56:26 -05:00
Jon Grimm
1eaca70a52
Add MaintenanceIn: Report Supported Opcodes (all) and testcase.
2012-10-25 12:48:37 -05:00
Peter Lieven
03528f3965
TEST: add skip command to skip individual tests
...
This patch adds a command to skip individual tests. It additionally accepts
more than one test separated by comma.
2012-10-25 10:27:09 +02:00
Peter Lieven
49947fe5e2
TEST: fix unitialized ret variable in T0000
2012-10-25 09:41:28 +02:00
Ronnie Sahlberg
b700d44f03
TESTS: Add a simple test to check that a target survives huge imemdiate data
...
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com >
2012-10-24 21:19:27 -07:00
Ronnie Sahlberg
676bf2372c
TEST: Add test that target reset will release a RESERVE6
2012-10-04 21:37:41 -07:00
Ronnie Sahlberg
06e925f2fd
TEST: Add a test to verify that reservation are dropped on session termination
2012-10-01 18:41:08 -07:00
Jon Grimm
a5cc1fdbe8
Fix merge conflicts
2012-10-01 09:57:06 -05:00
Ronnie Sahlberg
30a32b4335
TESTS: Add two tests that RESERVE6 is dropped on LUN-reset as well as session logout
2012-09-30 09:25:39 -07:00
Ronnie Sahlberg
add9607244
TEST: Add readme for the test tool
2012-09-30 08:43:56 -07:00
Ronnie Sahlberg
c57827fef4
TESTS: Add externs for the two initiator names
2012-09-30 08:31:15 -07:00