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