source: trunk/test/lol-test.cpp @ 755

Last change on this file since 755 was 642, checked in by sam, 11 years ago

Add an optional cppunit dependency for unit tests.

  • Property svn:keywords set to Id
File size: 669 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#include <cppunit/TextTestRunner.h>
16#include <cppunit/extensions/TestFactoryRegistry.h>
17
18int main(int argc, char *argv[])
19{
20    CppUnit::TextTestRunner runner;
21    runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
22
23    return !runner.run();
24}
25
Note: See TracBrowser for help on using the repository browser.