forked from RaviDesai/mysqlwrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.cpp
50 lines (36 loc) · 931 Bytes
/
test.cpp
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
42
43
44
45
46
47
48
49
50
#include <iostream>
#include "UTFail.h"
#include "TestNullable.h"
#include "TestBinary.h"
#include "TestDatabaseException.h"
#include "TestDatabase.h"
#include "TestImport.h"
#include "TestJulian.h"
#include "TestAdhocParameter.h"
using namespace std;
using namespace MySQLWrap;
int main(int argc, char** argv)
{
cout << "Begin Test Suite" << endl;
bool embedded = false;
cout << "embedded: " << embedded << endl;
LibraryInitializer di(embedded);
ThreadInitializer ti;
int failures = 0;
TestImport ts0;
failures += ts0.RunTests(embedded);
TestNullable ts1;
failures += ts1.RunTests();
TestBinary ts2;
failures += ts2.RunTests();
TestDatabaseException ts3;
failures += ts3.RunTests(embedded);
TestDatabase ts4;
failures += ts4.RunTests(embedded);
TestJulian ts5;
failures += ts5.RunTests();
TestAdhocParameter ts6;
failures += ts6.RunTests();
cout << "End Test Suite" << endl;
return failures;
}