Use one gmtest script to run all different kinds of tests #4172
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
As mentioned in #3949, there are three gmtest scripts in three different directories. This PR makes some changes to test/gmtest.in so that it can be used to run all tests. Thus, we don't have to maintain the gmtest scripts in the
doc/examplesanddoc/scriptsdirectories.Some important changes after this PR:
becomesdoc/scripts/GMT_autolegend.sh;ex01/ex01.shbecomesdoc/examples/ex01/ex01.sh, andblockmean/etest.shbecomestest/blockmean/etest.sh`.fail_count.txtfiles. Now there is only one, in thebuild/testdirectory.With the more consistent test naming, now it's possible to run three groups of tests separately:
ctest -R doc/exampleto only run the examplesctest -R doc/scriptsto run the scripts used in the documentationctest -R test/to run all the "real" testsctest -R test/apito run api tests onlyFixes #3949.