cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
genTestFile.py File Reference

Go to the source code of this file.

Namespaces

 genTestFile
 

Variables

 genTestFile.parser = argparse.ArgumentParser(description='A script to generate the content of test files for use with the socat command.')
 
 genTestFile.required
 
 genTestFile.False
 
 genTestFile.type
 
 genTestFile.str
 
 genTestFile.default
 
 genTestFile.help
 
 genTestFile.True
 
 genTestFile.action
 
 genTestFile.args = parser.parse_args()
 
string genTestFile.suffixFileName = ""
 
 genTestFile.match = re.search("^[0-9]", args.size)
 
 genTestFile.charList = re.findall("[0-9]", args.size)
 
string genTestFile.strInt = ""
 
 genTestFile.reqSize = int(strInt)
 
string genTestFile.fileName = ""
 
 genTestFile.answer = input("\tOverwrite (y/n): ")
 
 genTestFile.outFile = open(fileName, 'w')
 
string genTestFile.strStream = ""
 
 genTestFile.size = int(reqSize / 8)
 
string genTestFile.swapStr = ""
 
string genTestFile.strTmp = "{:08d}".format(x)
 
 genTestFile.y = random.randint(0, 255)