tests: power: Fix compiler definition flag

Enabled compiler definition flag TEST_CASE_SLEEP_SUCCESS
which was missing on migrating to cmake.

Signed-off-by: Nirmala Devi <nirmala.devix.m@intel.com>
This commit is contained in:
Nirmala Devi 2017-12-13 22:35:26 +05:30 committed by Anas Nashif
parent cf6cb590df
commit 02d3f2e3a8
3 changed files with 16 additions and 6 deletions

View file

@ -103,13 +103,15 @@ commands:
::
$ cd tests/power/multicore/lmt TEST_CASE=sleep-success
$ cd tests/power/multicore/lmt
$ mkdir build && cd build
$ cmake -DBOARD=quark_se_c1000_devboard -DTEST_CASE=sleep-success ..
$ make
When 'TEST_CASE=sleep-fail', application is busy for 5 seconds and idle for 15
seconds. This means that ARC core will be busy when LMT core tries to enter in
DEEP_SLEEP, and it will fail. In this case the output on your console should
look like this:
When test case compiled with no flags enabled, the application is busy
for 5 seconds and idle for 15 seconds. This means that ARC core will be
busy when LMT core tries to enter in DEEP_SLEEP, and it will fail.
In this case the output on your console should look like this:
::
@ -134,7 +136,9 @@ commands:
::
$ cd tests/power/multicore/lmt
$ make TEST_CASE=sleep-fail
$ mkdir build && cd build
$ cmake -DBOARD=quark_se_c1000_devboard ..
$ make
The application uses UART_1 device as console output device, which is the
default console device.

View file

@ -4,3 +4,8 @@ project(NONE)
target_include_directories(app PRIVATE $ENV{ZEPHYR_BASE}/drivers)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
if(TEST_CASE STREQUAL sleep-success)
target_compile_definitions(app PRIVATE
-DTEST_CASE_SLEEP_SUCCESS
)
endif()

View file

@ -1,4 +1,5 @@
tests:
test:
platform_whitelist: quark_se_c1000_devboard
extra_args: TEST_CASE=sleep-success
tags: pm