]> www.ginac.de Git - ginac.git/blob - check/main.cpp
Another restructuring: moved include/*.h -> include/GiNaC/*.h in order to
[ginac.git] / check / main.cpp
1 // check/main.cpp
2
3 #include <stdexcept>
4 #include <GiNaC/ginac.h>
5 #include "check.h"
6
7 int main()
8 {
9     unsigned result = 0;
10     
11     try {
12         for (int i=0; i<1; ++i) {
13             result += fcntimer(paranoia_check);
14             result += fcntimer(numeric_output);
15             result += fcntimer(numeric_consist);
16             result += fcntimer(powerlaws);
17             result += fcntimer(expand_subs);
18             result += fcntimer(inifcns_consist);
19             result += fcntimer(differentiation);
20             result += fcntimer(poly_gcd);
21             result += fcntimer(normalization);
22             result += fcntimer(matrix_checks);
23             result += fcntimer(lsolve_onedim);
24             result += fcntimer(series_expansion);
25         }
26     } catch (exception const & e) {
27         cout << "error: caught an exception: " << e.what() << endl;
28     }
29     
30     if (result) {
31         cout << "error: something went wrong. ";
32         if (result == 1) {
33             cout << "(one failure)" << endl;
34         } else {
35             cout << "(" << result << " individual failures)" << endl;
36         }
37         cout << "please check result.out against result.ref for more details."
38              << endl << "happy debugging!" << endl;
39     }
40
41     return result;
42 }