I think this is a better approach to testing. It's better encapsulated and idempotent, which makes it less brittle. @dtabell This fixes the problem you were seeing with missing warmSnake.map.
Inputs and expected output to a test are contained in
a single numbered directory (currently, "1").
Cmake was copying src unnecessarily.
PARIZ.H is two lines long for the test so created a 1/PARIZ.H
that is copied to the source location.
warmSnake is downloaded. Running make test twice will
not result in a missing warmSnake.map, because the file is
always recreated.
Removed unnecessary code in CMakeLists.txt as a result, and
put all in test driver, that supports multiple test directories.
Absolute paths were removed which allows relocating zgoubi directory.
Took out the word "integration" as was too long zgoubi-tests is sufficient.
Test should be more robust to files missing, etc.
I think this is a better approach to testing. It's better encapsulated and idempotent, which makes it less brittle. @dtabell This fixes the problem you were seeing with missing warmSnake.map.
Inputs and expected output to a test are contained in a single numbered directory (currently, "1"). Cmake was copying src unnecessarily. PARIZ.H is two lines long for the test so created a 1/PARIZ.H that is copied to the source location. warmSnake is downloaded. Running
make test
twice will not result in a missing warmSnake.map, because the file is always recreated. Removed unnecessary code in CMakeLists.txt as a result, and put all in test driver, that supports multiple test directories. Absolute paths were removed which allows relocating zgoubi directory. Took out the word "integration" as was too long zgoubi-tests is sufficient. Test should be more robust to files missing, etc.