Files Classes Functions Hierarchy
#include <cireporttest.h>
Static Public Member Functions | |
| static int | test01 (int argc, char **argv) |
| Print generated html code blocks. | |
| static int | test02 (int argc, char **argv) |
| Update CI report.html. | |
| static int | test03 (int argc, char **argv) |
| Update CI report.html and doc.html. | |
Static Public Attributes | |
| static string | doc [] |
| Brief description of each test. | |
Definition at line 12 of file cireporttest.h.
| int cireporttest::test01 | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
Print generated html code blocks.
e.g. block=2
Definition at line 14 of file cireporttest.cpp.
References commandline::mapvar(), cireport::report01(), SHOW3, cireport::summaryblock1(), and cireport::summaryblock2().
Referenced by main().
00017 { 00018 cout << "Run in proj directory" << endl; 00019 cout << "makefilebuildtool/main prog=86" << endl; 00020 cireport cr; 00021 00022 commandline cmd(argc,argv); 00023 00024 uint block(1); 00025 00026 cmd.mapvar(block,"block"); 00027 00028 switch (block) 00029 { 00030 case 1: 00031 cout << SHOW3(cr.summaryblock1()); 00032 break; 00033 00034 case 2: 00035 cout << SHOW3(cr.summaryblock2()); 00036 break; 00037 00038 case 3: 00039 cout << SHOW3(cr.report01()); 00040 break; 00041 00042 default: 00043 cout << "error: no block case handled" << endl; 00044 return 1; 00045 } 00046 00047 return 0; 00048 }
| int cireporttest::test02 | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
Update CI report.html.
Definition at line 51 of file cireporttest.cpp.
References cireport::reportfile_update().
Referenced by main().
00054 { 00055 cireport cr; 00056 00057 return cr.reportfile_update(); 00058 }
| int cireporttest::test03 | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
Update CI report.html and doc.html.
Definition at line 61 of file cireporttest.cpp.
References cireport::docfile_update(), and cireport::reportfile_update().
Referenced by main().
00064 { 00065 cireport cr; 00066 00067 int res=0; 00068 00069 res = cr.reportfile_update(); 00070 if (res!=0) 00071 return res; 00072 00073 res = cr.docfile_update(); 00074 00075 return res; 00076 }
string cireporttest::doc [static] |
Initial value:
{
"",
"Print generated html code blocks. e.g. block=2",
"Update CI report.html",
"Update CI report.html and doc.html"
}
Definition at line 17 of file cireporttest.h.
Referenced by main().
1.5.8