This is very much still work in progress and much more will change before the final 2.0.0 Some APIs have changed. New libraries have been added. LittleFS included. Co-authored-by: Seon Rozenblum <seonr@3sprockets.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> Co-authored-by: geeksville <kevinh@geeksville.com> Co-authored-by: Mike Dunston <m_dunston@comcast.net> Co-authored-by: Unexpected Maker <seon@unexpectedmaker.com> Co-authored-by: Seon Rozenblum <seonr@3sprockets.com> Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com> Co-authored-by: tobozo <tobozo@users.noreply.github.com> Co-authored-by: bobobo1618 <bobobo1618@users.noreply.github.com> Co-authored-by: lorol <lorolouis@gmail.com> Co-authored-by: geeksville <kevinh@geeksville.com> Co-authored-by: Limor "Ladyada" Fried <limor@ladyada.net> Co-authored-by: Sweety <switi.mhaiske@espressif.com> Co-authored-by: Loick MAHIEUX <loick111@gmail.com> Co-authored-by: Larry Bernstone <lbernstone@gmail.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: 快乐的我531 <2302004040@qq.com> Co-authored-by: chegewara <imperiaonline4@gmail.com> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Aron Rubin <aronrubin@gmail.com> Co-authored-by: Pete Lewis <601236+lewispg228@users.noreply.github.com>
59 lines
1.5 KiB
C
59 lines
1.5 KiB
C
#ifndef UNITY_CONFIG_H
|
|
#define UNITY_CONFIG_H
|
|
|
|
// This file gets included from unity.h via unity_internals.h
|
|
// It is inside #ifdef __cplusplus / extern "C" block, so we can
|
|
// only use C features here
|
|
|
|
#include <esp_err.h>
|
|
#include <stddef.h>
|
|
#include "sdkconfig.h"
|
|
|
|
#ifdef CONFIG_UNITY_ENABLE_FLOAT
|
|
#define UNITY_INCLUDE_FLOAT
|
|
#else
|
|
#define UNITY_EXCLUDE_FLOAT
|
|
#endif //CONFIG_UNITY_ENABLE_FLOAT
|
|
|
|
#ifdef CONFIG_UNITY_ENABLE_DOUBLE
|
|
#define UNITY_INCLUDE_DOUBLE
|
|
#else
|
|
#define UNITY_EXCLUDE_DOUBLE
|
|
#endif //CONFIG_UNITY_ENABLE_DOUBLE
|
|
|
|
#ifdef CONFIG_UNITY_ENABLE_COLOR
|
|
#define UNITY_OUTPUT_COLOR
|
|
#endif
|
|
|
|
#define UNITY_EXCLUDE_TIME_H
|
|
|
|
|
|
void unity_flush(void);
|
|
void unity_putc(int c);
|
|
void unity_gets(char* dst, size_t len);
|
|
void unity_exec_time_start(void);
|
|
void unity_exec_time_stop(void);
|
|
uint32_t unity_exec_time_get_ms(void);
|
|
|
|
#define UNITY_OUTPUT_CHAR(a) unity_putc(a)
|
|
#define UNITY_OUTPUT_FLUSH() unity_flush()
|
|
#define UNITY_EXEC_TIME_START() unity_exec_time_start()
|
|
#define UNITY_EXEC_TIME_STOP() unity_exec_time_stop()
|
|
#define UNITY_EXEC_TIME_MS() unity_exec_time_get_ms()
|
|
|
|
#ifdef CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER
|
|
|
|
#include "unity_test_runner.h"
|
|
|
|
#endif //CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER
|
|
|
|
#ifdef CONFIG_UNITY_ENABLE_FIXTURE
|
|
#include "unity_fixture_extras.h"
|
|
#endif // CONFIG_UNITY_ENABLE_FIXTURE
|
|
|
|
// shorthand to check esp_err_t return code
|
|
#define TEST_ESP_OK(rc) TEST_ASSERT_EQUAL_HEX32(ESP_OK, rc)
|
|
#define TEST_ESP_ERR(err, rc) TEST_ASSERT_EQUAL_HEX32(err, rc)
|
|
|
|
#endif //UNITY_CONFIG_H
|