| 1 |
// Main test program for the generic aptitude code. |
| 2 |
// |
| 3 |
// Copyright (C) 2005 Daniel Burrows |
| 4 |
// |
| 5 |
// This program is free software; you can redistribute it and/or |
| 6 |
// modify it under the terms of the GNU General Public License as |
| 7 |
// published by the Free Software Foundation; either version 2 of |
| 8 |
// the License, or (at your option) any later version. |
| 9 |
// |
| 10 |
// This program is distributed in the hope that it will be useful, |
| 11 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
// General Public License for more details. |
| 14 |
// |
| 15 |
// You should have received a copy of the GNU General Public License |
| 16 |
// along with this program; see the file COPYING. If not, write to |
| 17 |
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 |
// Boston, MA 02111-1307, USA. |
| 19 |
|
| 20 |
#include <cppunit/extensions/TestFactoryRegistry.h> |
| 21 |
#include <cppunit/ui/text/TestRunner.h> |
| 22 |
|
| 23 |
int main(int argc, char **argv) |
| 24 |
{ |
| 25 |
CppUnit::TextUi::TestRunner runner; |
| 26 |
CppUnit::TestFactoryRegistry ®istry = |
| 27 |
CppUnit::TestFactoryRegistry::getRegistry(); |
| 28 |
|
| 29 |
runner.addTest(registry.makeTest()); |
| 30 |
|
| 31 |
bool wasSuccessful = (runner.run("", false) == 0); |
| 32 |
|
| 33 |
return wasSuccessful; |
| 34 |
} |