Enable ctest, fix exit status of tests/tests
[libstick.git] / tests / main.cc
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 #include "booleanmatrix.h"
5 #include "simplicialcomplex.h"
6 #include "persistence.h"
7
8 using namespace std;
9
10
11 int main(int argc, char* argv[]) {
12 (void) argc;
13 (void) argv;
14
15 Test::Suite ts;
16
17 ts.add(auto_ptr<Test::Suite>(new boolean_matrix_TestSuite));
18 ts.add(auto_ptr<Test::Suite>(new simplicial_complex_TestSuite));
19 ts.add(auto_ptr<Test::Suite>(new persistence_TestSuite));
20
21 Test::TextOutput output(Test::TextOutput::Verbose);
22 if (ts.run(output))
23 return EXIT_SUCCESS;
24 return EXIT_FAILURE;
25 }
26