def test_createDoxygen(self): #create dictionary basicDict = createDocs.createListDictionary(self.values[0], self.values[1], self.values[2],self.values[3],self.values[4],self.values[5],self.values[6],self.values[7],self.values[8]) print "Output from test test_createDoxygen. Please ignore" #print self.values print "%%%%%%%%%%%%%%%%%%%%%%%%%" #redirecting output of function so it doesn't display to stout. Needs more work. saveout = sys.stdout fsock = open('test_createDoxygen.log', 'w') sys.stdout = fsock #run createDoxygen createDocument.checkOutputPath(self.values[5]) createDocs.findVersion(basicDict) createDocs.createDoxygen(basicDict) sys.stdout = saveout fsock.close() #should go back to stout now ... print "%%%%%%%%%%%%%%%%%%%%%%%%%" #check for main index.html page in standard location. If it's there, Doxygen worked. Maybe not perfectly, # but it's there and running. self.assertTrue(os.path.isfile(os.path.join(basicDict['doxygenSubDirPath'], "html/index.html"))) print "Tested Doxygen"
#Define input directory (relative to ~/stgUnderworldE/ ) if (values[1] != "") and not( (values[1] == "help") or (values[1] == '-h') or (values[1] =='--help') or (values[1] == 'h' ) ): directoryPath = os.path.realpath(values[1]) else: directoryPath = os.path.realpath('../../') print directoryPath # Create the output directory. This is relative to the ./mainProj/config page.(relative to ~/stgUnderworldE/ ) if values[2] != "": docPath = os.path.realpath(values[2]) else: docPath = os.path.join(directoryPath, 'doc/') print docPath # createDictionary mainDictionary = createListDictionary("","", "", values[4], directoryPath, docPath, values[3], values[5], values[6]) # Set up help print statement if ((values[1] == "help") or (values[1] == '-h') or (values[1] =='--help') or (values[1] == 'h')): printHelpStatement(mainDictionary) else: #check the directory now exists. createDocument.checkOutputPath(docPath) findVersion(mainDictionary) createDoxygen(mainDictionary)
#Define input directory (relative to ~/stgUnderworldE/ ) if values[2] != "" : directoryPath = os.path.realpath(values[2]) else: directoryPath = os.path.realpath('../../') print directoryPath # Create the output directory. This is relative to the ./mainProj/config page.(relative to ~/stgUnderworldE/ ) if values[3] != "": docPath = os.path.realpath(values[3]) else: docPath = os.path.join(directoryPath, 'doc/') print docPath # createDictionary mainDictionary = createListDictionary("","", "", values[1], directoryPath, docPath, values[4]) # Set up help print statement if ((values[1] == "help") or (values[1] == '-h') or (values[1] =='--help') or (values[1] == 'h')): printHelpStatement(mainDictionary) else: #check the directory now exists. createDocument.checkOutputPath(docPath) createDoxygen(mainDictionary)