0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Add parser self-test to auto test suite

This commit is contained in:
Jürgen Hunold 2022-06-07 12:16:13 +02:00 committed by Roland Bock
parent 3c344c0546
commit 892e680a73

View File

@ -38,6 +38,11 @@ if (${Python3_Interpreter_FOUND})
else() else()
message(STATUS "Pyparsing is installed: Enabling ddl2cpp tests.") 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 add_test(NAME sqlpp11.scripts.ddl2cpp.bad_will_fail
COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/../../scripts/ddl2cpp" COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_LIST_DIR}/../../scripts/ddl2cpp"
"${CMAKE_CURRENT_LIST_DIR}/ddl2cpp_sample_bad.sql" "${CMAKE_CURRENT_LIST_DIR}/ddl2cpp_sample_bad.sql"
@ -81,4 +86,3 @@ if (${Python3_Interpreter_FOUND})
endif() endif()
endif() endif()