Pressio/pressio4py

cmake: automate creation of regression tests

fnrizzi opened this issue · 3 comments

Currently we have a non-scalable way to create regression tests, see the cmakelists inside the tests/regression.
Need to automate the creation so that we don't add each test individually.
But we need to come up with a convention to name them .

I automated the process for now. See the CMakeLists in the regression test folder. Let's talk about naming conventions and possibly changing the paths of the test directories.

@kennychowdhary thanks!
Can you please think/propose a naming convention?

@kennychowdhary

# # Get all reg test directories and copy them, along with their contents
# file(GLOB REG_TEST_FOLDERS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/*)
# message("Source DIR for reg test : " ${REG_TEST_FOLDERS_SRC})
# file(COPY ${REG_TEST_FOLDERS_SRC} DESTINATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
# # Cops the Apps directory as well
# file(COPY ${PRESSIO4PY_APPS_DIR} DESTINATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})

this does not seem to work as expected, and I think it is because of the file command.
The error: If I do this once, it works, but if I make a change to one of the Python scripts in the source code, for example the main file of one regression test, and I do make again in the build directory, the change is not updated.
Wait on working on this please until next week ok? I am doing some changes