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
This commit is contained in:
Ronnie Sahlberg
2013-01-06 15:04:31 -08:00
parent d21ad441bf
commit 179d7b4f55
5 changed files with 39 additions and 9 deletions

View File

@@ -29,6 +29,11 @@ extern const char *initiatorname1;
extern const char *initiatorname2;
extern const char *tgt_url;
extern int loglevel;
#define LOG_SILENT 0
#define LOG_NORMAL 1
#define LOG_VERBOSE 2
extern uint32_t block_size;
extern uint64_t num_blocks;
extern int lbpme;