예제 #1
0
 def prepare(self):
     MpExperience.prepare(self)
     self.mpTopo.commandTo(self.mpConfig.client, "rm " + \
       MpExperienceHTTPS.CLIENT_LOG )
     self.mpTopo.commandTo(self.mpConfig.server, "rm " + \
       MpExperienceHTTPS.SERVER_LOG )
     if self.file == "random":
         self.mpTopo.commandTo(self.mpConfig.client,
          "dd if=/dev/urandom of=random bs=1K count=" + \
          self.random_size)
예제 #2
0
 def prepare(self):
     MpExperience.prepare(self)
     self.mpTopo.commandTo(self.mpConfig.client, "rm " + \
                           MpExperienceQUIC.CLIENT_LOG)
     self.mpTopo.commandTo(self.mpConfig.server, "rm " + \
                           MpExperienceQUIC.SERVER_LOG)
     if self.file == "random":
         self.mpTopo.commandTo(self.mpConfig.client,
                               "dd if=/dev/urandom of=random1 bs=1K count=" + \
                               self.random_size)
         if self.single_file == "0":
             self.mpTopo.commandTo(self.mpConfig.client,
                                   "dd if=/dev/urandom of=random2 bs=1K count=" + \
                                   self.random_size2)
             if self.multifile == "1":
                 self.mpTopo.commandTo(self.mpConfig.client,
                                       "dd if=/dev/urandom of=random3 bs=1K count=" + \
                                       self.random_size3)
                 self.mpTopo.commandTo(self.mpConfig.client,
                                       "dd if=/dev/urandom of=random4 bs=1K count=" + \
                                       self.random_size4)
                 self.mpTopo.commandTo(self.mpConfig.client,
                                       "dd if=/dev/urandom of=random5 bs=1K count=" + \
                                       self.random_size5)
예제 #3
0
 def prepare(self):
     MpExperience.prepare(self)
예제 #4
0
 def __init__(self, xpParamFile, mpTopo, mpConfig):
     MpExperience.__init__(self, xpParamFile, mpTopo, mpConfig)
     MpExperience.classicRun(self)
예제 #5
0
 def clean(self):
     MpExperience.clean(self)
예제 #6
0
 def clean(self):
     MpExperience.clean(self)
     if self.file == "random":
         self.mpTopo.commandTo(self.mpConfig.client, "rm random*")
예제 #7
0
 def __init__(self, xpParamFile, mpTopo, mpConfig):
     MpExperience.__init__(self, xpParamFile, mpTopo, mpConfig)
     self.loadParam()
     self.ping()
     MpExperience.classicRun(self)
예제 #8
0
 def prepare(self):
     MpExperience.prepare(self)
     self.mpTopo.commandTo(self.mpConfig.client, "rm " + \
       MpExperienceQUICReqres.CLIENT_LOG )
     self.mpTopo.commandTo(self.mpConfig.server, "rm " + \
       MpExperienceQUICReqres.SERVER_LOG )