summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSQL/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibSQL/Tests')
-rw-r--r--Userland/Libraries/LibSQL/Tests/CMakeLists.txt5
-rw-r--r--Userland/Libraries/LibSQL/Tests/TestSqlExpressionParser.cpp4
-rw-r--r--Userland/Libraries/LibSQL/Tests/TestSqlStatementParser.cpp4
3 files changed, 3 insertions, 10 deletions
diff --git a/Userland/Libraries/LibSQL/Tests/CMakeLists.txt b/Userland/Libraries/LibSQL/Tests/CMakeLists.txt
index b028333c61..f002a1e864 100644
--- a/Userland/Libraries/LibSQL/Tests/CMakeLists.txt
+++ b/Userland/Libraries/LibSQL/Tests/CMakeLists.txt
@@ -1,8 +1,5 @@
file(GLOB TEST_SOURCES CONFIGURE_DEPENDS "*.cpp")
foreach(source ${TEST_SOURCES})
- get_filename_component(name ${source} NAME_WE)
- add_executable(${name} ${source})
- target_link_libraries(${name} LibSQL)
- install(TARGETS ${name} RUNTIME DESTINATION usr/Tests/LibSQL)
+ serenity_test(${source} LibSQL LIBS LibSQL)
endforeach()
diff --git a/Userland/Libraries/LibSQL/Tests/TestSqlExpressionParser.cpp b/Userland/Libraries/LibSQL/Tests/TestSqlExpressionParser.cpp
index a3d2e6d32f..c2a6b3bfd7 100644
--- a/Userland/Libraries/LibSQL/Tests/TestSqlExpressionParser.cpp
+++ b/Userland/Libraries/LibSQL/Tests/TestSqlExpressionParser.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <AK/TestSuite.h>
+#include <LibTest/TestCase.h>
#include <AK/HashMap.h>
#include <AK/Result.h>
@@ -602,5 +602,3 @@ TEST_CASE(in_selection_expression)
validate("15 IN (SELECT * FROM table)", false);
validate("15 NOT IN (SELECT * FROM table)", true);
}
-
-TEST_MAIN(SqlExpressionParser)
diff --git a/Userland/Libraries/LibSQL/Tests/TestSqlStatementParser.cpp b/Userland/Libraries/LibSQL/Tests/TestSqlStatementParser.cpp
index 7438311bdc..0126a85e4e 100644
--- a/Userland/Libraries/LibSQL/Tests/TestSqlStatementParser.cpp
+++ b/Userland/Libraries/LibSQL/Tests/TestSqlStatementParser.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <AK/TestSuite.h>
+#include <LibTest/TestCase.h>
#include <AK/Optional.h>
#include <AK/Result.h>
@@ -735,5 +735,3 @@ TEST_CASE(common_table_expression)
validate("WITH table (column1, column2) AS (SELECT * FROM table) DELETE FROM table;", { false, { { "table", { "column1", "column2" } } } });
validate("WITH RECURSIVE table AS (SELECT * FROM table) DELETE FROM table;", { true, { { "table", {} } } });
}
-
-TEST_MAIN(SqlStatementParser)