Skip to content

Commit

Permalink
Merge pull request #1119 from Ant-ON/fix_test
Browse files Browse the repository at this point in the history
Applied missing changes to tests
  • Loading branch information
Nightwalker-87 committed Mar 27, 2021
2 parents e39d5cc + da37fec commit 1825956
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions tests/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,6 @@ static struct Test tests[] = {
.freq = 5,
.format = FLASH_FORMAT_BINARY }
},
{ "--debug --freq=6k --reset write test.bin 0x80000000", -1,
{ .cmd = FLASH_CMD_WRITE,
.serial = { 0 },
.filename = "test.bin",
.addr = 0x80000000,
.size = 0,
.reset = 1,
.log_level = DEBUG_LOG_LEVEL,
.freq = 6,
.format = FLASH_FORMAT_BINARY }
},
{ "--debug --reset read test.bin 0x80000000 1000", 0,
{ .cmd = FLASH_CMD_READ,
.serial = { 0 },
Expand Down Expand Up @@ -211,10 +200,10 @@ static struct Test tests[] = {
{ "--debug --reset --format=binary write test.hex", -1, FLASH_OPTS_INITIALIZER },
{ "--debug --reset --format=ihex write test.hex 0x80000000", -1, FLASH_OPTS_INITIALIZER },
{ "--debug --reset write test.hex sometext", -1, FLASH_OPTS_INITIALIZER },
{ "--serial A1020304 erase sometext", -1, FLASH_OPTS_INITIALIZER },
{ "--serial A1020304 erase", 0,
{ "--serial ABCEFF544851717867216044 erase sometext", -1, FLASH_OPTS_INITIALIZER },
{ "--serial ABCEFF544851717867216044 erase", 0,
{ .cmd = FLASH_CMD_ERASE,
.serial = "\xA1\x02\x03\x04",
.serial = "ABCEFF544851717867216044",
.filename = NULL,
.addr = 0,
.size = 0,
Expand All @@ -223,9 +212,9 @@ static struct Test tests[] = {
.freq = 0,
.format = FLASH_FORMAT_BINARY }
},
{ "--serial=A1020304 erase", 0,
{ "--serial=ABCEFF544851717867216044 erase", 0,
{ .cmd = FLASH_CMD_ERASE,
.serial = "\xA1\x02\x03\x04",
.serial = "ABCEFF544851717867216044",
.filename = NULL,
.addr = 0,
.size = 0,
Expand Down

0 comments on commit 1825956

Please sign in to comment.