File: run_tests.cpp

package info (click to toggle)
libdnf 0.55.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,824 kB
  • sloc: cpp: 45,638; xml: 1,554; python: 1,519; ansic: 1,169; sql: 218; sh: 50; makefile: 47
file content (15 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cppunit/CompilerOutputter.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/extensions/TestFactoryRegistry.h>

int main(int argc, char *argv[])
{
    CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();

    CppUnit::TextUi::TestRunner runner;
    runner.addTest(suite);

    runner.setOutputter(new CppUnit::CompilerOutputter(&runner.result(), std::cerr));

    return runner.run() ? 0 : 1;
}