proj home

Files   Classes   Functions   Hierarchy  

cireporttest.cpp

Go to the documentation of this file.
00001 #include <commandline.h>
00002 #include <cireport.h>
00003 #include <cireporttest.h>
00004 
00005 string cireporttest::doc[] = 
00006 {
00007   "",
00008   "Print generated html code blocks. e.g. block=2",
00009   "Update CI report.html",
00010   "Update CI report.html and doc.html"
00011 };
00012 
00013 int cireporttest::test01
00014 (
00015   int argc, char** argv
00016 )
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 }
00049 
00050 int cireporttest::test02
00051 (
00052   int argc, char** argv
00053 )
00054 {
00055   cireport cr;
00056 
00057   return cr.reportfile_update();
00058 }
00059 
00060 int cireporttest::test03
00061 (
00062   int argc, char** argv
00063 )
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 }
00077 

Generated on Fri Mar 4 00:49:28 2011 for Chelton Evans Source by  doxygen 1.5.8