enable more python tests in cmake; add rule to run python examples with args in bazel

This commit is contained in:
Laurent Perron
2023-07-05 09:06:55 +02:00
parent 56a02116a8
commit 84e1ad7f0c
6 changed files with 97 additions and 7 deletions

View File

@@ -18,11 +18,8 @@ endif()
file(GLOB PYTHON_SRCS "*.py")
# Remove too long examples
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/line_balancing_sat.py") # need input file
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/arc_flow_cutting_stock_sat.py") # too long
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/bus_driver_scheduling_sat.py") # too long
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/cover_rectangle_sat.py") # too long
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/cvrptw_plot.py") # depend on numpy
list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/qubo_sat.py") # too long
foreach(FILE_NAME IN LISTS PYTHON_SRCS)
add_python_example(${FILE_NAME})