Lines Matching +full:add +full:- +full:path
3 import os.path
29 if value & (1 << (bits-1)):
30 value -= 1 << bits
34 theDir=os.path.normpath(os.path.dirname(destPath))
35 if not os.path.exists(theDir):
104 testInit += "this->addContainer(NULL);"
108 testInit += "this->addContainer(&%s);\n" % (theMemberVar)
153 … testInit += "this->addTest(%d,(Client::test)&%s::%s);\n" % (theId,theClass,theTestName)
164 with open(os.path.join(thedir,"%s_decl.h" % theClass),"w") as decl:
278 folder to the path used to get input files
279 if y, the path for the node is added.
291 The number of patterns path is generated
297 The number of parameter path is generated
300 path if a path
355 # Always dump even if there is no path for a test
358 if root.path:
360 textFile.write(root.path)
374 # Generate patterns path
390 # Generate parameters path or generator
561 def addPattern(self,includeFile,path): argument
562 """ Add a pattern to the include file
574 path (str) : Path to file containing the data
585 with open(path,"r") as pat:
604 pad = self._alignment*math.ceil(newOffset / self._alignment) - newOffset
628 # Add the padding to the pattern
634 def addParameter(self,includeFile,path): argument
635 """ Add a parameter array to the include file
647 path (str) : Path to file containing the data
658 with open(path,"r") as pat:
671 pad = self._alignment*math.ceil(newOffset / self._alignment) - newOffset
685 # Add the padding to the pattern
713 # rather than a path to a pattern file.
715 # But for outputs we still need the path so the logic is the same
716 # Path for output is required to be able to extract data from the stdout file
743 # We write a folder path
745 # Always dumped for a test even if no path for
748 if root.path:
749 self._currentPaths.append(root.path)
750 self._currentParamPaths.append(root.path)
752 self._writeString(root.path,driverFile)
771 includeFile.write("// " + os.path.join(*temp) + "\n")
772 offset,nbSamples=self.addPattern(includeFile,os.path.join(*temp))
795 includeFile.write("// " + os.path.join(*temp) + "\n")
796 offset,nbSamples=self.addParameter(includeFile,os.path.join(*temp))
807 includeFile.write("// " + os.path.join(*temp) + "\n")
848 src = os.path.join(genFolder,"GeneratedSource")
849 header = os.path.join(genFolder,"GeneratedInclude")
854 testDescCPath = os.path.join(src,"TestDesc.cpp")
855 testDescHeaderPath = os.path.join(header,"TestDesc.h")
876 testDriveHeaderPath = os.path.join(header,"TestDrive.h")
877 patternHeaderPath = os.path.join(header,"Patterns.h")