<br><tt><font size=2>Daniel Veillard <veillard@redhat.com> wrote
on 04/08/2010 03:54:07 AM:<br>
<br>
</font></tt>
<br><tt><font size=2>> <br>
> Please respond to veillard</font></tt>
<br><tt><font size=2>> <br>
> On Wed, Apr 07, 2010 at 05:34:50PM -0400, Stefan Berger wrote:<br>
> > This patch adds new test cases to the existing nwfilter test
program and<br>
> > adds a test script that must be run while a VM is running. This
test<br>
> > script verifies that input network filter XML creates expected<br>
> > user-defined tables and rules on ebtables, iptables & ip6tables
layer<br>
> > and verifies their content against expected content. The idea
is that<br>
> > these tools always return exactly the same output when displaying
the<br>
> > content of a user-defined table so that the diff tool can be
used for<br>
> > simple text comparison. All supported protocols have at least
one test<br>
> > case. <br>
> > This test program is not run automatically since it requires
a running<br>
> > VM.<br>
> <br>
>   I'm wondering a bit about this.<br>
> <br>
> So far all our embedded tests from "make tests" are supposed
to be<br>
> agnostic on the machine state, and I wonder if it ain't preferable
to<br>
> kepp them that way. For example we have no real save/restore or<br>
> migration tests here because like the nwfilter rukes testing that
would<br>
> require actual VM runnings.<br>
> To me it seems this test should rather be targetted to the TCK, the<br>
> separate test suite for libvirt:<br>
> <br>
>   </font></tt><a href="http://libvirt.org/git/?p=libvirt-tck.git"><tt><font size=2>http://libvirt.org/git/?p=libvirt-tck.git</font></tt></a><tt><font size=2><br>
> <br>
> that's really the place where tests relying on actual system behaviour<br>
> should be implemented, and IMHO the more people start to look at it
the<br>
> better.<br>
> Dan sent an introduction when he created the project<br>
>   </font></tt><a href="http://www.mail-archive.com/libvir-list@redhat.com/msg12703.html"><tt><font size=2>http://www.mail-archive.com/libvir-list@redhat.com/msg12703.html</font></tt></a><tt><font size=2><br>
> <br>
> and an update recently:<br>
>   </font></tt><a href="http://www.mail-archive.com/libvir-list@redhat.com/msg21503.html"><tt><font size=2>http://www.mail-archive.com/libvir-list@redhat.com/msg21503.html</font></tt></a><tt><font size=2><br>
> <br>
> so some of the hairy shell scripting for this test could be replaced<br>
> with (less hairy ?) Perl testing, but in a framework really intended<br>
> to have actual running domains.<br>
> <br>
>   I understand that the current version of the test is not supposed
to<br>
> run if there is no domain target, but really it break the rule that<br>
> libvirt "make tests" should not be dependant on the machine
state,</font></tt>
<br>
<br><tt><font size=2>Ok, I'll adapt it for the TCK project.</font></tt>
<br>
<br><tt><font size=2>   Stefan</font></tt>
<br><tt><font size=2><br>
> <br>
> Daniel<br>
> <br>
> -- <br>
> Daniel Veillard      | libxml Gnome XML XSLT toolkit
 </font></tt><a href=http://xmlsoft.org/><tt><font size=2>http://xmlsoft.org/</font></tt></a><tt><font size=2><br>
> daniel@veillard.com  | Rpmfind RPM search engine </font></tt><a href=http://rpmfind.net/><tt><font size=2>http://rpmfind.net/</font></tt></a><tt><font size=2><br>
> </font></tt><a href=http://veillard.com/><tt><font size=2>http://veillard.com/</font></tt></a><tt><font size=2>
| virtualization library  </font></tt><a href=http://libvirt.org/><tt><font size=2>http://libvirt.org/</font></tt></a><tt><font size=2><br>
</font></tt>