Enable ctest, fix exit status of tests/tests
[libstick.git] / tests / main.cc
index ef4977e8eb9110a80f69939a54516188eef54078..6016b3b511c6c2e707186bfe085c98f4526e0432 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "booleanmatrix.h"
 #include "simplicialcomplex.h"
+#include "persistence.h"
 
 using namespace std;
 
@@ -15,8 +16,11 @@ int main(int argc, char* argv[]) {
 
     ts.add(auto_ptr<Test::Suite>(new boolean_matrix_TestSuite));
     ts.add(auto_ptr<Test::Suite>(new simplicial_complex_TestSuite));
+    ts.add(auto_ptr<Test::Suite>(new persistence_TestSuite));
 
     Test::TextOutput output(Test::TextOutput::Verbose);
-    return ts.run(output);
+    if (ts.run(output))
+        return EXIT_SUCCESS;
+    return EXIT_FAILURE;
 }