Re: [CMake] ctest to output files

2018-08-01 Thread Andrew Bell
We do this in a single test, where the test calls some function like "compare_results". On Wed, Aug 1, 2018 at 12:32 AM, Quang Ha wrote: > Hi all, > > Is there a way to let ctest create an output file after a certain test? > Say I want to run test 1 (name "run_simulation"), which is a

Re: [CMake] ctest to output files

2018-08-01 Thread Robert Maynard
I would look at use the FIXTURES features to define the file as a shared resource. Here is a good article on how to use this feature: https://crascit.com/2016/10/18/test-fixtures-with-cmake-ctest/ On Wed, Aug 1, 2018 at 12:32 AM Quang Ha wrote: > > Hi all, > > Is there a way to let ctest create

[CMake] ctest to output files

2018-07-31 Thread Quang Ha
Hi all, Is there a way to let ctest create an output file after a certain test? Say I want to run test 1 (name "run_simulation"), which is a simulation and should produce an output file containing numerical results. I then want to compare it against analytical results in test 2 (name