commit 51e2d4ba68068aee7613a2f5b7b9e75a5adfac50
parent e352c6de6c5ada15b58232d9256a458705154f03
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Tue, 9 Jul 2024 21:46:56 +0200
log final result of integration tests to console
Diffstat:
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/source/virusIntegrationTest/integrationTest.cpp b/source/virusIntegrationTest/integrationTest.cpp
@@ -48,13 +48,20 @@ int main(int _argc, char* _argv[])
forever = cmd.contains("forever");
+ std::vector<std::pair<std::string, std::string>> finishedTests; // rom, preset
+ finishedTests.reserve(64);
+
if(cmd.contains("rom") && cmd.contains("preset"))
{
const auto romFile = cmd.get("rom");
const auto preset = cmd.get("preset");
IntegrationTest test(cmd, romFile, preset, std::string(), virusLib::DeviceModel::Snow);
- return test.run();
+
+ const auto res = test.run();
+ if(0 == res)
+ std::cout << "test successful, ROM " << synthLib::getFilenameWithoutPath(romFile) << ", preset " << preset << '\n';
+ return res;
}
if(cmd.contains("folder"))
{
@@ -164,11 +171,17 @@ int main(int _argc, char* _argv[])
IntegrationTest test(cmd, romFile, preset, subfolder + '/', virusLib::DeviceModel::Snow);
if(test.run() != 0)
return -1;
+ finishedTests.emplace_back(romFile, preset);
}
}
if(!forever)
+ {
+ std::cout << "All " << finishedTests.size() << " tests finished successfully:" << '\n';
+ for (const auto& [rom,preset] : finishedTests)
+ std::cout << "ROM " << synthLib::getFilenameWithoutPath(rom) << ", preset " << preset << '\n';
return 0;
+ }
}
}
std::cout << "invalid command line arguments" << std::endl;