Netperf2

Add netperf class as base class.

dd netperf class as base class.

Support netperf client in windows guest.

Support install parameter to control whether install netperf or not.
On 07/01/2014 05:57 PM, Yiqiao Pu wrote:
>
> In virttest/utils_netperf.py:
>
> > +
> > +    def install(self, install, compile_option):
> > +        cmd = "which netperf"
> > +        try:
> > +            status, netperf = self.session.cmd_status_output(cmd)
> > +        except aexpect.ShellError:
> > +            status = 1
> > +        if not status:
> > +            self.netperf_path = netperf.rstrip()
> > +            cmd = "which netserver"
> > +            self.netserver_path = self.session.cmd_output(cmd).rstrip()
> > +            install = False
> > +        if install:
> > +            self.build_tool = True
> > +            self.pull_file(self.netperf_source)
> > +            self.push_file(self.netperf_source)
>
> Hi @FengYang <https://github.com/FengYang> Met some scp problem if the 
> destination directory not exist:
>
> scp: /var/tmp/: Is a directory
> debug1: channel 0: free: client-session, nchannels 1
> debug1: fd 0 clearing O_NONBLOCK
> debug1: fd 1 clearing O_NONBLOCK
> Killed by signal 1.
> Do we need to check the destination directory exist?
>

We need set different value for different guest/host. for tmp folder.


> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/autotest/virt-test/pull/1721/files#r14396091>.
>