1 //===-- tests/test_main.cpp -------------------------------------*- C++ -*-===//
4 // Copyright (C) 2013-2014 Dirk Steinke.
5 // See copyright and license notice in COPYRIGHT or include/jitcs.h
7 // All tests register themselves when linked in, so the main function only
8 // needs to start running them.
9 //===----------------------------------------------------------------------===//
14 using namespace jitcs
;
19 UnitTestRegistry::get()->runTests(t
);
21 printf("total number of successful tests: %d\n", t
.getNumberOfSuccessfulTests());
22 printf("total number of failed tests: %d\n", t
.getNumberOfFailedTests());
23 return t
.getNumberOfFailedTests();