On Fri, Jun 24, 2016 at 5:23 PM, David Sommerseth wrote:
> On 24/06/16 19:33, Gert Doering wrote:
> >> > We might also consider if there are possibilities for us to integrate
> >> > such tests with Travis or similar stuff for platforms where that is
> >> > possible. Often these solutions have Python or Ruby modules
> available too.
> >
> > While totally interesting, how is this going to help with *Windows*
> > testing (which is what this thread is about)?
>
> Having a standardised testing framework makes it possible to run a
> similar set of tests (comparable to what t_client.sh does today) in an
> automated way across multiple platforms, and can report these results to
> a shared hub. This way we can run automated tests and catch regressions
> which is not caught by our current buildbots ... such as the Windows
> platform.
Python may be better than perl and a cross-platform choice like that may
reduce duplication, but lets not forget the primary objective here, viz.,
system level testing to catch bugs during development. For windows that
means we should run tests through the management interface (as that's what
the GUI uses), test use of keystrokes for signals, interactive service
etc., unlike unix for which all current tests are run through command line
control running with sudo, I suppose. Some bugs show up only when the
management is active (or the other way) and is important to catch those as
the GUI uses the management.
The way I test patches for windows is by manually running a number of
clients with hand-edited configs against a few servers - - one tcp, one udp,
one with user-auth, challenge-response enabled etc. This is indeed painful,
error-prone and never comprehensive enough. Obviously, automated tests
would be of great help, but I do not think a port of the current t_client
scripts to windows is that useful.
At least in the short-term, a windows-specific perl or python or powershell
or whatever script using the management interface looks like the way to go.
A single cross-platform scripting framework could be a longer-term goal.
Selva