def initialize(self): self.server_prog = "%s&" % os.path.join(self.srcdir, "src/netserver") self.client_prog = "%s" % os.path.join(self.srcdir, "src/netperf") self.valid_tests = ["TCP_STREAM", "TCP_MAERTS", "TCP_RR", "TCP_CRR", "TCP_SENDFILE", "UDP_STREAM", "UDP_RR"] self.results = [] self.actual_times = [] self.netif = "" self.network = net_utils.network() self.network_utils = net_utils.network_utils()
def initialize(self): self.server_prog = '%s&' % os.path.join(self.srcdir, 'src/netserver') self.client_prog = '%s' % os.path.join(self.srcdir, 'src/netperf') self.valid_tests = ['TCP_STREAM', 'TCP_MAERTS', 'TCP_RR', 'TCP_CRR', 'TCP_SENDFILE', 'UDP_STREAM', 'UDP_RR'] self.results = [] self.actual_times = [] self.netif = '' self.network = net_utils.network() self.network_utils = net_utils.network_utils()