Skip to content

Commit

Permalink
Add parser self-test to auto test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Jürgen Hunold authored and rbock committed Jun 8, 2022
1 parent 3c344c0 commit 892e680
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -81,4 +86,3 @@ if (${Python3_Interpreter_FOUND})

endif()
endif()

0 comments on commit 892e680

Please sign in to comment.