Add some basic tests for the database

This commit is contained in:
jacqueline
2023-05-12 10:30:07 +10:00
parent 10eb120878
commit 961c8014ad
21 changed files with 618 additions and 210 deletions
+1
View File
@@ -0,0 +1 @@
idf_component_register(INCLUDE_DIRS "." REQUIRES drivers)
+10
View File
@@ -0,0 +1,10 @@
#pragma once
#include "catch2/catch.hpp"
#include "i2c.hpp"
class I2CFixture {
public:
I2CFixture() { REQUIRE(drivers::init_i2c() == ESP_OK); }
~I2CFixture() { drivers::deinit_i2c(); }
};
+10
View File
@@ -0,0 +1,10 @@
#pragma once
#include "catch2/catch.hpp"
#include "spi.hpp"
class SpiFixture {
public:
SpiFixture() { REQUIRE(drivers::init_spi() == ESP_OK); }
~SpiFixture() { drivers::deinit_spi(); }
};