Add tags to force-style tests

Adds an optional "tags" entry in the force style test YAML. This is a
comma-separated list of keywords, which are parsed by CMake and added as labels
for CTest.  This allows more fine-grained filtering of tests. Any
newly-generated YAML file automatically adds the "generated" tag.
This commit is contained in:
Richard Berger
2021-11-19 09:09:56 -05:00
parent 229ce0a61b
commit 4ac351eba6
5 changed files with 55 additions and 0 deletions

View File

@ -46,6 +46,9 @@ void write_yaml_header(YamlWriter *writer, TestConfig *cfg, const char *version)
// lammps_version
writer->emit("lammps_version", version);
// tags
writer->emit("tags", cfg->tags_line());
// date_generated
std::time_t now = time(nullptr);
std::string block = trim(ctime(&now));