2013-10-23 21:29:37 +02:00
|
|
|
/*
|
|
|
|
* Unit tests for src/util/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
2014-12-04 07:12:04 +01:00
|
|
|
#include "UriUtilTest.hxx"
|
2014-03-15 17:30:08 +01:00
|
|
|
#include "TestCircularBuffer.hxx"
|
2013-10-23 21:29:37 +02:00
|
|
|
|
|
|
|
#include <cppunit/TestFixture.h>
|
|
|
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
|
|
|
#include <cppunit/ui/text/TestRunner.h>
|
|
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
|
2013-11-05 17:28:23 +01:00
|
|
|
#include <stdlib.h>
|
2013-10-23 21:29:37 +02:00
|
|
|
|
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(UriUtilTest);
|
2014-03-15 17:30:08 +01:00
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(TestCircularBuffer);
|
2013-10-23 21:29:37 +02:00
|
|
|
|
|
|
|
int
|
|
|
|
main(gcc_unused int argc, gcc_unused char **argv)
|
|
|
|
{
|
|
|
|
CppUnit::TextUi::TestRunner runner;
|
|
|
|
auto ®istry = CppUnit::TestFactoryRegistry::getRegistry();
|
|
|
|
runner.addTest(registry.makeTest());
|
|
|
|
return runner.run() ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
|
|
}
|