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:
parent
bea6639637
commit
e1a8bbf020
7 changed files with 281 additions and 46 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue