Regroup data: scripts and function updates#4229
Conversation
|
@gdamiand What about not moving all the files, but only general OFF/OBJ/STL/XXX ? Everything that is specific to a test or example can stay where it is. What do you think? |
|
I agree. |
|
@maxGimeno Once the CMake testsuite is done (issue #4826), I would like we take over this PR to resurrect it. But I think we can only do it correctly once the CMake testsuite is there: we will add a test or example that uses the |
|
Thanks @lrineau ; I agree to resurrect this PR. Before we should discuss a little bit about the directories we want. I will create a small feature for that. |
|
Cf this small feature to discuss about naming and directories |
|
@maxGimeno @lrineau cf. my updated proposal for data in the wiki. |
|
@gdamiand I think it requires a second round as some decisions have already been taken from the discussion, Laurent even suggested a new name for the function. |
Done. |
|
There are conflicts |
I will solve them later; we need first to decide what to do on the wiki small feature page. |
Ok @sloriot , thanks ! |
|
@gdamiand let me know when you want to have a meeting about this feature. |
…f we are in the flat release or not)
|
I'll have a look. |
sloriot
left a comment
There was a problem hiding this comment.
After trying hard I could reproduce the error locally.
ERROR: Cannot run test script, please set the variable CGAL_DATA_DIR
I just know have to fix it (should not be hard).
|
congratulation @sloriot !! (one day, we should modify/simplify our test suite...) |
|
I could make the testsuite locally working |
Thanks @sloriot !!! |
|
Successfully tested in CGAL-5.4-Ic-57 |
Congratulation !! |
|
Is it documented what that means for developers? Does it mean something for data directories in example directories.... |
|
Please wait for the other PR that is doing the dirty part. This one was only about scripts and function. (#5427) |
Please use the following template to help us managing pull requests.
Summary of Changes
Start to regroup all data in a same global directory (for now only for LCC package).
Add a global function that computes the name of a data file using either a macro defined by cmake, or an environement variable.
Plan for Data
Release Management
TODOs
.cmdfiles in examplesget_data_file_path()that will warn the user when the file does not exists + printCGAL_DATA_DIR