--- a/test/main.c Wed Nov 12 18:37:58 2025 +0100 +++ b/test/main.c Tue Dec 09 12:13:43 2025 +0100 @@ -33,9 +33,12 @@ #include <dbutils/sqlite.h> #include <dbutils/db.h> +#include <cx/test.h> #include <cx/buffer.h> #include <cx/printf.h> +#include "database.h" + const char *sql_create_table_person = "create table if not exists Person (" "person_id integer primary key autoincrement, " @@ -115,7 +118,26 @@ static int create_test_data(sqlite3 *db); int main(int argc, char **argv) { + CxTestSuite *suite = cx_test_suite_new("dbu"); +#ifdef DBU_SQLITE + if(init_test_db() || init_db_tests()) { + return 1; + } + + cx_test_register(suite, testSqliteConnection); + cx_test_register(suite, testConnectionExec); + cx_test_register(suite, testSingleValueQuery); +#endif + + cx_test_run_stdout(suite); + + +#ifdef DBU_SQLITE + cleanup_db_tests(); +#endif + + /* DBUContext *ctx = dbuContextCreate(); @@ -209,6 +231,8 @@ conn->free(conn); + */ + return 0; }