From 961c8014ada037712e8c72f23430362e9f14c1ec Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 12 May 2023 10:30:07 +1000 Subject: Add some basic tests for the database --- src/drivers/test/CMakeLists.txt | 2 +- src/drivers/test/i2c_fixture.hpp | 10 ---------- src/drivers/test/spi_fixture.hpp | 10 ---------- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 src/drivers/test/i2c_fixture.hpp delete mode 100644 src/drivers/test/spi_fixture.hpp (limited to 'src/drivers/test') diff --git a/src/drivers/test/CMakeLists.txt b/src/drivers/test/CMakeLists.txt index 78e57a1f..c2f7ea65 100644 --- a/src/drivers/test/CMakeLists.txt +++ b/src/drivers/test/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register( SRCS "test_storage.cpp" "test_gpio_expander.cpp" "test_battery.cpp" "test_dac.cpp" - INCLUDE_DIRS "." REQUIRES catch2 cmock drivers) + INCLUDE_DIRS "." REQUIRES catch2 cmock drivers fixtures) diff --git a/src/drivers/test/i2c_fixture.hpp b/src/drivers/test/i2c_fixture.hpp deleted file mode 100644 index 54794591..00000000 --- a/src/drivers/test/i2c_fixture.hpp +++ /dev/null @@ -1,10 +0,0 @@ -#pragma once - -#include "catch2/catch.hpp" -#include "i2c.hpp" - -class I2CFixture { - public: - I2CFixture() { REQUIRE(drivers::init_i2c() == ESP_OK); } - ~I2CFixture() { drivers::deinit_i2c(); } -}; diff --git a/src/drivers/test/spi_fixture.hpp b/src/drivers/test/spi_fixture.hpp deleted file mode 100644 index c2db484c..00000000 --- a/src/drivers/test/spi_fixture.hpp +++ /dev/null @@ -1,10 +0,0 @@ -#pragma once - -#include "catch2/catch.hpp" -#include "spi.hpp" - -class SpiFixture { - public: - SpiFixture() { REQUIRE(drivers::init_spi() == ESP_OK); } - ~SpiFixture() { drivers::deinit_spi(); } -}; -- cgit v1.2.3