Skip to content

tests(cpu): Add deep sleep and misc tests for CPU #10112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
lucasssvaz committed Sep 29, 2024
commit 068b2120dae050131d16450e330c1a1aa8a44ba9
8 changes: 4 additions & 4 deletions tests/validation/cpu_misc/cpu_misc.ino
Original file line number Diff line number Diff line change
@@ -11,23 +11,23 @@

/* Test functions */

#if SOC_TEMP_SENSOR_SUPPORTED
void get_cpu_temperature() {
#if SOC_TEMP_SENSOR_SUPPORTED
float temp = temperatureRead();
log_d("CPU temperature: %f", temp);
TEST_ASSERT_FLOAT_IS_NOT_NAN(temp);
TEST_ASSERT_FLOAT_WITHIN(40.0, 30.0, temp);
}
#else
log_d("CPU temperature not supported");
#endif
}

/* Main functions */

void setup() {
UNITY_BEGIN();

#if SOC_TEMP_SENSOR_SUPPORTED
RUN_TEST(get_cpu_temperature);
#endif

UNITY_END();
}
Loading