2013-10-23 21:29:37 +02:00
|
|
|
/*
|
|
|
|
* Unit tests for src/util/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
2014-12-04 07:23:06 +01:00
|
|
|
#include "DivideStringTest.hxx"
|
2014-12-03 21:39:45 +01:00
|
|
|
#include "SplitStringTest.hxx"
|
2014-12-04 07:12:04 +01:00
|
|
|
#include "UriUtilTest.hxx"
|
2016-06-10 22:24:13 +02:00
|
|
|
#include "MimeTypeTest.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
|
|
|
|
2014-12-04 07:23:06 +01:00
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(DivideStringTest);
|
2014-12-03 21:39:45 +01:00
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(SplitStringTest);
|
2013-10-23 21:29:37 +02:00
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(UriUtilTest);
|
2016-06-10 22:24:13 +02:00
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(MimeTypeTest);
|
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;
|
|
|
|
}
|