]> www.ginac.de Git - ginac.git/blobdiff - check/exam_color.cpp
check: indicate the test failures with non-zero exit code; split test programs.
[ginac.git] / check / exam_color.cpp
index f2342a39f22582495f7cea586775fb1f02c04708..382f6d3f60d0887f89f2eb5ba71c053038f5d55a 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "exams.h"
+#include <iostream>
+#include "ginac.h"
+using namespace std;
+using namespace GiNaC;
 
 static unsigned check_equal(const ex &e1, const ex &e2)
 {
@@ -145,18 +148,15 @@ unsigned exam_color()
        unsigned result = 0;
        
        cout << "examining color objects" << flush;
-       clog << "----------color objects:" << endl;
 
        result += color_check1();  cout << '.' << flush;
        result += color_check2();  cout << '.' << flush;
        result += color_check3();  cout << '.' << flush;
        
-       if (!result) {
-               cout << " passed " << endl;
-               clog << "(no output)" << endl;
-       } else {
-               cout << " failed " << endl;
-       }
-       
        return result;
 }
+
+int main(int argc, char** argv)
+{
+       return exam_color();
+}