proj home

Files   Classes   Functions   Hierarchy  

main.cpp

Go to the documentation of this file.
00001 #include <cassert>
00002 #include <iostream>
00003 using namespace std;
00004 
00005 #include <cfcontainerhashtest.h>
00006 #include <cireporttest.h>
00007 #include <commandline.h>
00008 #include <compilationfiletest.h>
00009 #include <createmakefiletest.h>
00010 #include <htmltest.h>
00011 #include <makestatetest.h>
00012 #include <mkerrorstest.h>
00013 #include <modulelisttest.h>
00014 #include <projfilestest.h>
00015 #include <systemcallstest.h>
00016 
00017 
00018 int main(int argc, char** argv)
00019 {
00020 
00021   commandline cmd(argc,argv);
00022   uint prog(0);
00023   cmd.mapvar(prog,"prog");
00024 
00025   switch (prog)
00026   {
00027     case 0:
00028       cout << "$./main prog=1  " << systemcallstest::doc[1] << endl; 
00029       cout << "$./main prog=2  " << systemcallstest::doc[2] << endl; 
00030       cout << "$./main prog=3  " << systemcallstest::doc[3] << endl; 
00031       cout << "$./main prog=4  " << systemcallstest::doc[4] << endl; 
00032       cout << "$./main prog=5  " << systemcallstest::doc[5] << endl; 
00033 
00034       cout << "$./main prog=11  " << compilationfiletest::doc[1] << endl; 
00035       cout << "$./main prog=12  " << compilationfiletest::doc[2] << endl; 
00036       cout << "$./main prog=13  " << compilationfiletest::doc[3] << endl; 
00037 
00038       cout << "$./main prog=31  " << makestatetest::doc[1] << endl; 
00039       cout << "$./main prog=32  " << makestatetest::doc[2] << endl; 
00040       cout << "$./main prog=33  " << makestatetest::doc[3] << endl; 
00041       cout << makestatetest::doc[4] << endl; 
00042       cout << makestatetest::doc[5] << endl; 
00043       cout << makestatetest::doc[6] << endl; 
00044 
00045       cout << "$./main prog=41  " << projfilestest::doc[1] << endl; 
00046       cout << createmakefiletest::doc[1] << endl;
00047       cout << createmakefiletest::doc[2] << endl;
00048       cout << createmakefiletest::doc[3] << endl;
00049 
00050       cout << "$./main prog=60  " << cfcontainerhashtest::doc[1] << endl;
00051 
00052       cout << "$./main prog=80  " << mkerrorstest::doc[0] << endl; 
00053       cout << "$./main prog=81  " << mkerrorstest::doc[1] << endl; 
00054       cout << "$./main prog=82  " << mkerrorstest::doc[2] << endl; 
00055       cout << "$./main prog=83  " << mkerrorstest::doc[3] << endl; 
00056       cout << "$./main prog=84  " << mkerrorstest::doc[4] << endl; 
00057       cout << "$./main prog=85  " << modulelisttest::doc[1] << endl; 
00058       cout << "$./main prog=86  " << cireporttest::doc[1] << endl; 
00059       cout << "proj$ makefilebuildtool/main prog=87  " << cireporttest::doc[2] << endl; 
00060       cout << "$./main prog=88  " << mkerrorstest::doc[5] << endl; 
00061       cout << "$./main prog=89  " << mkerrorstest::doc[6] << endl; 
00062       cout << "proj$ makefilebuildtool/main prog=90  " << cireporttest::doc[3] << endl; 
00063       break;
00064  
00065 
00066     case 1: systemcallstest::developmenttest01(); break;
00067     case 2: systemcallstest::developmenttest02(); break;
00068     case 3: systemcallstest::developmenttest03(); break;
00069     case 4: systemcallstest::developmenttest04(); break;
00070     case 5: return systemcallstest::unittest01(); 
00071 
00072     case 11: compilationfiletest::test01(); break;
00073     case 12: compilationfiletest::test02(); break;
00074     case 13: compilationfiletest::test03(); break;
00075 
00076     case 31: makestatetest::test01(); break;
00077     case 32: makestatetest::test02(); break;
00078     case 33: makestatetest::test03(); break;
00079     case 34: makestatetest::test04(argc,argv); break;
00080     case 35: makestatetest::test05(argc,argv); break;
00081     case 36: makestatetest::test06(argc,argv); break;
00082 
00083     case 41: projfilestest::test01(); break;
00084     case 42: projfilestest::test02(); break;
00085 
00086     case 51: createmakefiletest::test01(argc,argv); break;
00087     case 52: createmakefiletest::test02(argc,argv); break;
00088     case 53: createmakefiletest::test03(argc,argv); break;
00089 
00090     case 60: cfcontainerhashtest::test01(); break;
00091 
00092     case 80: return mkerrorstest::test01(argc,argv);
00093     case 81: return mkerrorstest::test02(argc,argv);
00094     case 82: return mkerrorstest::test03(argc,argv);
00095     case 83: return mkerrorstest::test04(argc,argv);
00096     case 84: return mkerrorstest::test05(argc,argv);
00097     case 85: return modulelisttest::test01(argc,argv);
00098     case 86: return cireporttest::test01(argc,argv);
00099     case 87: return cireporttest::test02(argc,argv);
00100     case 88: return mkerrorstest::unittest01(argc,argv);
00101     case 89: return mkerrorstest::test06(argc,argv);
00102     case 90: return cireporttest::test03(argc,argv);
00103     case 100: return htmltest::test01(argc,argv);
00104 
00105     default: cout << "error:  No case handled." << endl; return 1;
00106   }
00107 
00108   return 0;
00109 }
00110 

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