TEST-TOOL: Add a --info argument to print more detailed infor what a test does

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2012-06-03 09:08:12 +10:00
parent 9e09a46ddd
commit 288fd5e9fe
48 changed files with 600 additions and 320 deletions

View File

@@ -22,12 +22,25 @@
#include "scsi-lowlevel.h"
#include "iscsi-test.h"
int T0104_read10_flags(const char *initiator, const char *url)
int T0104_read10_flags(const char *initiator, const char *url, int data_loss _U_, int show_info)
{
struct iscsi_context *iscsi;
struct scsi_task *task;
int ret, lun;
printf("0104_read10_flags:\n");
printf("=======================\n");
if (show_info) {
printf("Test how READ10 handles DPO, FUA and FUA_NV flags.\n");
printf("1, DPO:1 should work\n");
printf("2, FUA:1 and FUA_NV:0 should work\n");
printf("3, FUA:1 and FUA_NV:1 should work\n");
printf("4, FUA:0 and FUA_NV:1 should work\n");
printf("5, DPO:1 , FUA:1 and FUA_NV:1 should work\n");
printf("\n");
return 0;
}
iscsi = iscsi_context_login(initiator, url, &lun);
if (iscsi == NULL) {
printf("Failed to login to target\n");