Skip to content
Snippets Groups Projects
Commit d3f06bb9 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

[skip ci] better gtest_schema

parent b09cefcb
No related branches found
No related tags found
1 merge request!25Draft: Resolve "Adapt to new sensor constructors in core"
......@@ -119,6 +119,23 @@ TEST(Schema, validate_all_schemas)
ASSERT_TRUE(validateAllSchemas({plugin_dir + "/schema", wolf_schema_dir}, true));
}
TEST(Schema, duplicated_schemas)
{
std::set<std::string> schemas_found;
for (auto const& entry : filesystem::recursive_directory_iterator(plugin_dir))
{
if (filesystem::is_regular_file(entry) and entry.path().extension().string() == ".schema")
{
ASSERT_FALSE(schemas_found.count(entry.path().filename().string()));
schemas_found.insert(entry.path().filename().string());
}
}
WOLF_INFO("Found ", schemas_found.size(), " schema files.");
}
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment