From 892e680a733d8f59a3d80fa0474a01f93df05190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Tue, 7 Jun 2022 12:16:13 +0200 Subject: [PATCH] Add parser self-test to auto test suite --- tests/scripts/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scripts/CMakeLists.txt b/tests/scripts/CMakeLists.txt index ee267dd4..041e1a4e 100644 --- a/tests/scripts/CMakeLists.txt +++ b/tests/scripts/CMakeLists.txt @@ -38,6 +38,11 @@ if (${Python3_Interpreter_FOUND}) else() message(STATUS "Pyparsing is installed: Enabling ddl2cpp tests.") + add_test(NAME sqlpp11.scripts.ddl2cpp.parser + COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/../../scripts/ddl2cpp" + "--test" + test) + add_test(NAME sqlpp11.scripts.ddl2cpp.bad_will_fail COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/../../scripts/ddl2cpp" "${CMAKE_CURRENT_LIST_DIR}/ddl2cpp_sample_bad.sql" @@ -81,4 +86,3 @@ if (${Python3_Interpreter_FOUND}) endif() endif() -