Merge branch 'sangaboard-v5'

set version to v1.0.0-dev
This commit is contained in:
Filip Ayazi 2023-03-11 02:16:53 +00:00
commit 30eb93c8da
18 changed files with 474 additions and 232 deletions

View file

@ -9,7 +9,7 @@ void test_single_argument_parsing(void)
String all_args = F("3123.123asdf");
char * args[1];
uint8_t ret = 0;
ret = parse_arguments(args, all_args, 1);
TEST_ASSERT_EQUAL_STRING(expected_single, args[0]);
TEST_ASSERT_EQUAL(1, ret);
@ -70,10 +70,11 @@ void test_multiple_argument_parsing(void)
void setup() {
//TODO: support serial selection in tests
Serial.begin(115200);
// NOTE!!! Wait for >2 secs
// if board doesn't support software reset via Serial.DTR/RTS
delay(2000);
// if board doesn't support software reset via comPort->DTR/RTS
delay(5000);
UNITY_BEGIN(); // IMPORTANT LINE!
//bizzare string issues caused this to fail in specific sequences, so we run it multiple times
RUN_TEST(test_multiple_argument_parsing);