[Piglit] How do I run the framework tests?

Dylan Baker baker.dylan.c at gmail.com
Wed Apr 23 18:37:23 PDT 2014


On Wednesday, April 23, 2014 12:50:18 PM Ilia Mirkin wrote:
> On Wed, Apr 23, 2014 at 10:26 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> > ~/src/piglit $ nosetests -e dmesg framework
> > EEEE......................................................................
> > ..........................................................................
> > ..............................
> > 
> > (hm, looks like some arg count mismatches in add_glsl_parser_test and
> > a few others, haven't investigated why)
> 
> Errrrr make that
> 
> nosetests -e dmesg framework/tests
> 
> There's one failure at HEAD for me:
> 
> FAIL: If glean doesn't return zero it should be a fail
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib64/python2.7/site-packages/nose/case.py", line 197, in
> runTest self.test(*self.arg)
>   File "/home/ilia/src/piglit/framework/tests/gleantest_tests.py",
> line 71, in test_bad_returncode
>     assert test.result['result'] == 'fail', "Result should have been fail"
> AssertionError: Result should have been fail

The one thing I have found after using nose for a while is it can have 
problems with old pyc files. I often will do git clean -fdx before running nose 
at this point since it often clears up false positives.

> 
> > On Wed, Apr 23, 2014 at 10:16 AM, Tom Stellard <tom at stellard.net> wrote:
> >> Hi,
> >> 
> >> I just pushed 6e5b8c40a1a973fa430e4b635c28541f4fb5458c
> >> which fixes a regression in the gtest class and I would
> >> like to write a test for it, but I'm not sure how to run
> >> the framework tests.  Could someone explain how to do this?
> >> 
> >> Thanks,
> >> Tom
> >> _______________________________________________
> >> Piglit mailing list
> >> Piglit at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/piglit
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140423/6baf1274/attachment-0001.sig>


More information about the Piglit mailing list