test: the C3's asset name is a released one again

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cjkas 2026-10-28 21:43:53 +01:00
parent d596291677
commit a43f5aaaad

View file

@ -278,14 +278,10 @@ static void test_releaseAssetName_matches_the_release_workflow() {
TEST_ASSERT_EQUAL_STRING("SomfyController.ino.esp32.bin", buf); TEST_ASSERT_EQUAL_STRING("SomfyController.ino.esp32.bin", buf);
releaseAssetName(buf, sizeof(buf), "littlefs", "s3"); releaseAssetName(buf, sizeof(buf), "littlefs", "s3");
TEST_ASSERT_EQUAL_STRING("SomfyController.littlefs.esp32s3.bin", buf); TEST_ASSERT_EQUAL_STRING("SomfyController.littlefs.esp32s3.bin", buf);
releaseAssetName(buf, sizeof(buf), "littlefs", "c6");
TEST_ASSERT_EQUAL_STRING("SomfyController.littlefs.esp32c6.bin", buf);
}
static void test_releaseAssetName_keeps_c3() {
// C3 is out of the IDF 5.5 builds for now (ADR 0003) but is coming back.
char buf[64];
releaseAssetName(buf, sizeof(buf), "ino", "c3"); releaseAssetName(buf, sizeof(buf), "ino", "c3");
TEST_ASSERT_EQUAL_STRING("SomfyController.ino.esp32c3.bin", buf); TEST_ASSERT_EQUAL_STRING("SomfyController.ino.esp32c3.bin", buf);
releaseAssetName(buf, sizeof(buf), "littlefs", "c6");
TEST_ASSERT_EQUAL_STRING("SomfyController.littlefs.esp32c6.bin", buf);
} }
/********************************************************************* /*********************************************************************
@ -432,7 +428,6 @@ int main(int argc, char **argv) {
RUN_TEST(test_otaProven_not_before_the_minimum_uptime); RUN_TEST(test_otaProven_not_before_the_minimum_uptime);
RUN_TEST(test_otaProven_not_without_network); RUN_TEST(test_otaProven_not_without_network);
RUN_TEST(test_releaseAssetName_matches_the_release_workflow); RUN_TEST(test_releaseAssetName_matches_the_release_workflow);
RUN_TEST(test_releaseAssetName_keeps_c3);
RUN_TEST(test_formatBacktrace_frames_the_dump_holds); RUN_TEST(test_formatBacktrace_frames_the_dump_holds);
RUN_TEST(test_formatBacktrace_garbage_depth_stays_in_bounds); RUN_TEST(test_formatBacktrace_garbage_depth_stays_in_bounds);
RUN_TEST(test_formatBacktrace_stops_when_the_buffer_is_full); RUN_TEST(test_formatBacktrace_stops_when_the_buffer_is_full);