cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
genTestFile Namespace Reference

Variables

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

Variable Documentation

◆ action

genTestFile.action

Definition at line 53 of file genTestFile.py.

◆ answer

genTestFile.answer = input("\tOverwrite (y/n): ")

Definition at line 113 of file genTestFile.py.

◆ args

genTestFile.args = parser.parse_args()

Definition at line 61 of file genTestFile.py.

◆ charList

genTestFile.charList = re.findall("[0-9]", args.size)

Definition at line 67 of file genTestFile.py.

◆ default

genTestFile.default

Definition at line 48 of file genTestFile.py.

◆ False

genTestFile.False

Definition at line 48 of file genTestFile.py.

◆ fileName

string genTestFile.fileName = ""

Definition at line 100 of file genTestFile.py.

◆ help

genTestFile.help

Definition at line 49 of file genTestFile.py.

◆ match

genTestFile.match = re.search("^[0-9]", args.size)

Definition at line 65 of file genTestFile.py.

◆ outFile

genTestFile.outFile = open(fileName, 'w')

Definition at line 121 of file genTestFile.py.

◆ parser

genTestFile.parser = argparse.ArgumentParser(description='A script to generate the content of test files for use with the socat command.')
                                        #

MAIN # #

Definition at line 46 of file genTestFile.py.

◆ reqSize

int genTestFile.reqSize = int(strInt)

Definition at line 72 of file genTestFile.py.

◆ required

genTestFile.required

Definition at line 48 of file genTestFile.py.

◆ size

genTestFile.size = int(reqSize / 8)

Definition at line 125 of file genTestFile.py.

◆ str

genTestFile.str

Definition at line 48 of file genTestFile.py.

◆ strInt

string genTestFile.strInt = ""

Definition at line 68 of file genTestFile.py.

◆ strStream

string genTestFile.strStream = ""

Definition at line 124 of file genTestFile.py.

◆ strTmp

string genTestFile.strTmp = "{:08d}".format(x)

Definition at line 128 of file genTestFile.py.

◆ suffixFileName

string genTestFile.suffixFileName = ""

Definition at line 64 of file genTestFile.py.

◆ swapStr

string genTestFile.swapStr = ""

Definition at line 127 of file genTestFile.py.

◆ True

genTestFile.True

Definition at line 50 of file genTestFile.py.

◆ type

genTestFile.type

Definition at line 48 of file genTestFile.py.

◆ y

genTestFile.y = random.randint(0, 255)

Definition at line 169 of file genTestFile.py.