test-tool: Add overwrite check for all test cases

Check if the residual data does not owerwrite existing data blocks has now
been added for all testing data to improve the uniformity of test runs,
increase test readability and remove the duplicate testing data records.
This commit is contained in:
Anastasia Kovaleva
2021-01-27 12:20:27 +03:00
parent e9bf7c2d05
commit 1b7d1743ae
6 changed files with 137 additions and 100 deletions

View File

@@ -34,11 +34,14 @@ struct residuals_test_data {
size_t residuals_amount; /* The amount of residual data in bytes */
bool check_overwrite; /* Whether the test checks for overwrite or not */
const char *log_messages; /* Test case description */
};
struct task_status {
int status;
struct scsi_sense sense;
};
extern bool command_is_implemented;
extern void write_residuals_test (const struct residuals_test_data *tdata);