ARMmbed / ci-test-shield

mbed CI Test Shield
Apache License 2.0
9 stars 36 forks source link

Tests fail to compile if platform doesn't support PWM #6

Open screamerbg opened 7 years ago

screamerbg commented 7 years ago

Target: ARM_BEETLE_SOC Toolchain: ARMCC5

Build failures:
  * ARM_BEETLE_SOC::ARM::TESTS-ASSUMPTIONS-PWMOUT
        Building project PwmOut (ARM_BEETLE_SOC, ARM)
        Scan: ARM
        Scan: FEATURE_BLE
        Scan: PwmOut
        [DEBUG] Macros: -D__MBED__=1 -DTARGET_LIKE_MBED -DWSF_TOKEN_ENABLED=FALSE -D__MBED_CMSIS_RTOS_CM -DDEVICE_LOWPOWERTIMER=1 -DTOOLCHAIN_object -D__CMSIS_RTOS -DDEVICE_CLCD=1 -DWSF_MAX_HANDLERS=20 -DWSF_MS_PER_TICK=20 -DMBED_BUILD_TIMESTAMP=1476466707.37 -DNO_LEDS -DTARGET_LIKE_CORTEX_M3 -DTARGET_CORTEX_M -DASIC -DARM_MATH_CM3 -DTARGET_UVISOR_UNSUPPORTED -DFEATURE_BLE=1 -DTARGET_M3 -DCONFIG_HOST_REV=0x20 -DCONFIG_ALLOW_SETTING_WRITE=TRUE -DDEVICE_INTERRUPTIN=1 -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -D__CORTEX_M3 -DCONFIG_ALLOW_DEEP_SLEEP=FALSE -DWSF_TRACE_ENABLED=TRUE -DTARGET_RELEASE -DDEVICE_PORTINOUT=1 -DWSF_ASSERT_ENABLED=FALSE -DHCI_VS_TARGET -DTARGET_BEETLE -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DTARGET_ARM_SSG -DTARGET_ARM_BEETLE_SOC -DDEVICE_SPI=1 -DWSF_PRINTF_MAX_LEN=128 -DDEVICE_ANALOGIN=1 -DDEVICE_SERIAL=1 -DCMSDK_BEETLE -DTOOLCHAIN_ARM -DTOOLCHAIN_ARM_STD
        Compile [100.0%]: PwmOut.cpp
        [DEBUG] Compile: C:\Program Files\ARM\bin\armcc -c --gnu -Otime --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 --cpu=Cortex-M3 --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp --no_rtti --no_vla -I "C:\Program Files\ARM\include" -D__MBED__=1 -DTARGET_LIKE_MBED -DWSF_TOKEN_ENABLED=FALSE -D__MBED_CMSIS_RTOS_CM -DDEVICE_LOWPOWERTIMER=1 -DTOOLCHAIN_object -D__CMSIS_RTOS -DDEVICE_CLCD=1 -DWSF_MAX_HANDLERS=20 -DWSF_MS_PER_TICK=20 -DMBED_BUILD_TIMESTAMP=1476466707.37 -DNO_LEDS -DTARGET_LIKE_CORTEX_M3 -DTARGET_CORTEX_M -DASIC -DARM_MATH_CM3 -DTARGET_UVISOR_UNSUPPORTED -DFEATURE_BLE=1 -DTARGET_M3 -DCONFIG_HOST_REV=0x20 -DCONFIG_ALLOW_SETTING_WRITE=TRUE -DDEVICE_INTERRUPTIN=1 -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -D__CORTEX_M3 -DCONFIG_ALLOW_DEEP_SLEEP=FALSE -DWSF_TRACE_ENABLED=TRUE -DTARGET_RELEASE -DDEVICE_PORTINOUT=1 -DWSF_ASSERT_ENABLED=FALSE -DHCI_VS_TARGET -DTARGET_BEETLE -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DTARGET_ARM_SSG -DTARGET_ARM_BEETLE_SOC -DDEVICE_SPI=1 -DWSF_PRINTF_MAX_LEN=128 -DDEVICE_ANALOGIN=1 -DDEVICE_SERIAL=1 -DCMSDK_BEETLE -DTOOLCHAIN_ARM -DTOOLCHAIN_ARM_STD --via C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\.includes_9ab35f1cd05821957a49a5747d99cc80.txt --preinclude=C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\mbed_config.h --depend C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\.\PwmOut.d -o C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\.\PwmOut.o .\TESTS\assumptions\PwmOut\PwmOut.cpp
        [Error] PwmOut.cpp@4,0:  #35: #error directive: PWMOUT not supported on this platform, add 'DEVICE_PWMOUT' deffinition to your platform.
        [DEBUG] Return: 1
        [DEBUG] Output: ".\TESTS\assumptions\PwmOut\PwmOut.cpp", line 4: Error:  #35: #error directive: PWMOUT not supported on this platform, add 'DEVICE_PWMOUT' deffinition to your platform.

        [DEBUG] Output: .\TESTS\assumptions\PwmOut\PwmOut.cpp: 0 warnings, 1 error

This prevents further testing

BlackstoneEngineering commented 7 years ago

Right, forgot the [NOT_SUPPORTED] in the error message. Pushed a change. Please pull and retry.