Add test cases for new syntax
@@ -95,12 +95,32 @@ static struct Test tests[] = {
.log_level = DEBUG_LOG_LEVEL,
.format = FLASH_FORMAT_BINARY }
},
- { "--debug --reset read test.bin 0x80000000 0x1000", 0,
+ { "--debug --reset read test.bin 0x80000000 1000", 0,
{ .cmd = FLASH_CMD_READ,
.serial = { 0 },
.filename = "test.bin",
.addr = 0x80000000,
- .size = 0x1000,
+ .size = 1000,
+ .reset = 1,
+ .log_level = DEBUG_LOG_LEVEL,
+ .format = FLASH_FORMAT_BINARY }
+ },
+ { "--debug --reset read test.bin 0x80000000 1k", 0,
+ { .cmd = FLASH_CMD_READ,
+ .serial = { 0 },
+ .filename = "test.bin",
+ .addr = 0x80000000,
+ .size = 1024,
+ .reset = 1,
+ .log_level = DEBUG_LOG_LEVEL,
+ .format = FLASH_FORMAT_BINARY }
+ },
+ { "--debug --reset read test.bin 0x80000000 1M", 0,
+ { .cmd = FLASH_CMD_READ,
+ .serial = { 0 },
+ .filename = "test.bin",
+ .addr = 0x80000000,
+ .size = 1048576,
.reset = 1,
.log_level = DEBUG_LOG_LEVEL,
.format = FLASH_FORMAT_BINARY }
