1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added support for finding the broadcast address of an interface

This commit is contained in:
cesare 2018-09-10 16:41:32 +01:00 committed by jules
parent bea6639637
commit e1a8bbf020
7 changed files with 281 additions and 46 deletions

View file

@ -48,14 +48,40 @@ class ConsoleUnitTestRunner : public UnitTestRunner
}
};
//==============================================================================
int main()
int main (int argc, char **argv)
{
ConsoleLogger logger;
Logger::setCurrentLogger (&logger);
ConsoleUnitTestRunner runner;
runner.runAllTests();
ArgumentList args (argc, argv);
if (args.size() == 0)
{
runner.runAllTests();
}
else
{
if (args.containsOption ("--help|-h"))
{
std::cout << argv[0] << " [--help|-h] [--category category] [--list-categories]" << std::endl;
return 0;
}
if (args.containsOption ("--list-categories"))
{
for (auto& category : UnitTest::getAllCategories())
std::cout << category << std::endl;
return 0;
}
if (args.containsOption ("--category"))
runner.runTestsInCategory (args.getArgumentAfterOption ("--category").text);
}
Logger::setCurrentLogger (nullptr);