// Host test runner for the ESP-IDF-free firmware logic units. // Exit status 0 = all checks passed, 1 = at least one failed. #include "test_util.h" int g_tests_run = 0; int g_tests_failed = 0; int main(void) { printf("firmware host tests (pure logic only — no hardware involved)\n\n"); test_rd03e_parse(); test_bmp280_compensate(); test_mems_level(); printf("\n%d checks run, %d failed\n", g_tests_run, g_tests_failed); if (g_tests_failed != 0) { printf("FAILED\n"); return 1; } printf("OK\n"); return 0; }