CI(pico-sensor): added dockerfile to build pico-sensor image + created ci pipeline with build jobs

This commit is contained in:
SylvanArnold
2025-05-26 20:03:30 +02:00
parent d8f4b9f918
commit 23f11a3b87
6 changed files with 302 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ target_include_directories(
)
#################################################################################
# Note: --pc off --sp off are needed, if application runs from the ROM bootloader, might add --verbose
set (JRUN_CTEST_COMMAND "$ENV{SEGGER_PATH}/JRun" --device RP2040_M0_0 --rtt -if SWD --pc off --sp off)
set (JRUN_CTEST_COMMAND "JRun" --device RP2040_M0_0 --rtt -if SWD --pc off --sp off)
add_test(
NAME Led

View File

@@ -14,8 +14,8 @@
#include "McuRTT.h"
#include "McuUtility.h"
#include "McuLog.h"
#include "test_sensor.h"
#include "test_leds.h"
//#include "test_sensor.h"
//#include "test_leds.h"
#include "test_dns_resolver.h"
static void TestArgFailed(void) {
@@ -32,12 +32,12 @@ void Tests_Run(void) {
UNITY_BEGIN();
if (nofBytes>0) {
if (McuUtility_strcmp(buf, "led")==0) {
RUN_TEST(TestLeds_OnOff);
RUN_TEST(TestLeds_Toggle);
//RUN_TEST(TestLeds_OnOff);
//RUN_TEST(TestLeds_Toggle);
} else if (McuUtility_strcmp(buf, "sensor")==0) {
RUN_TEST(TestSensor_Temperature);
RUN_TEST(TestSensor_Humidity);
RUN_TEST(TestSensor_Both);
//RUN_TEST(TestSensor_Temperature);
//RUN_TEST(TestSensor_Humidity);
//RUN_TEST(TestSensor_Both);
} else if (McuUtility_strcmp(buf, "dns")==0) {
RUN_TEST(TestDnsResolver_Test);
} else {