File: tests.cpp

package info (click to toggle)
eris 1.2.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,360 kB
  • ctags: 1,348
  • sloc: sh: 8,289; cpp: 7,576; perl: 287; ansic: 172; makefile: 143
file content (41 lines) | stat: -rw-r--r-- 563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

#include "testConnection.h"
#include "testPlayer.h"

int main(int argc, char **argv)
{
	
	TestConnection tc;
	
	tc.setUp();
	tc.testConnect();
	tc.tearDown();
	
	
	TestPlayer tp;
	
	tp.setUp();
	tp.testLogin();
	tp.tearDown();
	
	tp.setUp();
	tp.testAccountCreate();
	tp.tearDown();
	
	/*    
	CppUnit::TextTestRunner runner;

    CppUnit::Test* tp =
        CppUnit::TestFactoryRegistry::getRegistry().makeTest();

    runner.addTest(tp);
    bool passed = runner.run();

    if (!passed) {
        return 1;
    }
  */  
    return 0; // tests passed okay
}