]> www.ginac.de Git - ginac.git/blobdiff - check/exam_archive.cpp
check: indicate the test failures with non-zero exit code; split test programs.
[ginac.git] / check / exam_archive.cpp
index a2e19c44d3dcc1f3c10cf82a100f35c37e53b645..0fcb6167975944ad696e132ffc36de2cefad94ab 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#include "exams.h"
-
+#include <iostream>
 #include <fstream>
+#include "ginac.h"
+using namespace std;
+using namespace GiNaC;
 
 unsigned exam_archive()
 {
        unsigned result = 0;
        
        cout << "examining archiving system" << flush;
-       clog << "----------archiving system:" << endl;
 
        symbol x("x"), y("y"), mu("mu"), dim("dim", "\\Delta");
        ex e, f;
@@ -70,14 +71,10 @@ unsigned exam_archive()
                ++result;
        }
 
-       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_archive();
+}