Mentions légales du service

Skip to content

WIP: Minimal structure for the new tests

This is the minimal structure that allows the tests to be made as I intended. For the moment there are only two testing functions (LACPY and LANGE) and all they do is print the arguments they received. To run, for example, SLANGE, the command line from the build folder is ./new-testing/snew-testing 1 0 LANGE new-testing/input/lange.in.

However, in the timing implementation, the parameters are stored in an array of size IPARAM_DNBPARAM, which is the number of different parameters a function can have. In my implementation, instead of having this array, we have a linked list for the parameters, which allows us to have a different size for each function but also slower access times and no relation between the parameters and their position inside the list. Since the goal is just to iterate between test cases, I do not think that the access time/memory use are that important, but maybe the semantics when using arrays make it worth it to change my implementation. What do you think?

Merge request reports