mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fixes #1926 - serial shell not working
This commit is contained in:
@@ -38,7 +38,7 @@ void run_tests();
|
||||
const char * call_url(const char * url);
|
||||
|
||||
// load the tests
|
||||
// this is generated from this file when compiled with -DUNITY_CREATE
|
||||
// this is generated from this file when compiled with -DEMSESP_UNITY_CREATE
|
||||
// copy the output to the test_api.h file
|
||||
#include "test_api.h" // generated test functions
|
||||
|
||||
@@ -165,7 +165,7 @@ const char * call_url(const char * url, const char * data) {
|
||||
}
|
||||
|
||||
// capture the response and print it out as a test, auto-generates the test functions
|
||||
// use with -DUNITY_CREATE in the platformio build flags
|
||||
// use with -DEMSESP_UNITY_CREATE in the platformio build flags
|
||||
// only needs to be done once
|
||||
void capture(const char * url = nullptr) {
|
||||
static uint8_t count = 1;
|
||||
@@ -263,7 +263,7 @@ int main() {
|
||||
|
||||
add_devices(); // add devices
|
||||
|
||||
#if defined(UNITY_CREATE)
|
||||
#if defined(EMSESP_UNITY_CREATE)
|
||||
|
||||
// These tests should all pass....
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// **************************************************************************************************
|
||||
//
|
||||
// Compile with -DUNITY_CREATE to generate the test functions
|
||||
// Compile with -DEMSESP_UNITY_CREATE to generate the test functions
|
||||
// and copy the output and paste below.
|
||||
//
|
||||
// TODO: convert output to JSON and compare, showing differences
|
||||
|
||||
Reference in New Issue
Block a user