1. 08 Nov, 2018 1 commit
  2. 10 May, 2016 1 commit
  3. 03 May, 2016 7 commits
  4. 28 Mar, 2016 1 commit
    • Dylan Baker's avatar
      framework: fix unicode command line arguments with python 2.x · 6a9d0146
      Dylan Baker authored
      In python 3.x input is unicode by default, but in python 2.x everything
      is a byte string by default (which assumes ascii encoding), this
      includes input. Currently when running with python 3.x it's possible to
      use unicode for input, but python 2.x will choke when it tries to encode
      the bytes into unicode using the ascii codec.
      
      For example, this will work with python 3.x but no with python 2.x:
      (The character is yuki, Japanese for snow, if memory serves)
      ./piglit run quick 雪 -c
      
      This is actually pretty easy to fix, when running with python 2.x
      decode each input element into unicode using utf-8 as soon as the input
      is received. This fixes the above example to work.
      Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
      Tested-by: default avatarMarek Olšák <marek.olsak@amd.com>
      6a9d0146
  5. 11 Nov, 2015 1 commit
  6. 10 Jan, 2015 1 commit
    • Vinson Lee's avatar
      piglit-print-commands.py: PEP8 fixes. · fdf804da
      Vinson Lee authored
      piglit-print-commands.py:41:32: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:41:34: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:42:31: E221 multiple spaces before operator
      piglit-print-commands.py:42:31: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:42:34: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:43:32: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:43:34: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:44:29: E221 multiple spaces before operator
      piglit-print-commands.py:44:29: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:44:34: E251 unexpected spaces around keyword / parameter equals
      piglit-print-commands.py:44:80: E501 line too long (89 > 79 characters)
      piglit-print-commands.py:57:24: E128 continuation line under-indented for visual indent
      Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      Reviewed-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
      fdf804da
  7. 29 Oct, 2014 1 commit
  8. 17 Jul, 2014 1 commit
  9. 24 Jun, 2014 1 commit
  10. 20 Jun, 2014 1 commit
  11. 29 Apr, 2014 1 commit
  12. 13 May, 2014 1 commit
  13. 17 Apr, 2014 1 commit
  14. 03 Apr, 2014 1 commit
  15. 12 Mar, 2014 1 commit
    • Dylan Baker's avatar
      python: Convert from print statement to function · ebae9e61
      Dylan Baker authored
      One of the biggest changes between python2 and python3 is that print
      changed from a statement to a function. This change was backported to
      python2 in the __future__ module, and this patch makes that conversation
      to ease the transition from python2 to python3.
      
      v2: - Replace dict comprehension with dict(generator). This is for
            python 2.6 compatability
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
      ebae9e61
  16. 28 Jan, 2014 1 commit
  17. 23 Oct, 2013 1 commit
    • Dylan Baker's avatar
      Use simplejson if available · 4fefa4e0
      Dylan Baker authored
      simplejson is a native code version of the json module in python
      (the json module in core python implements the simplejson api), which
      means that simplejson can be used in place of the json module, but it
      performs much better. This patch attempts to load simplejson, and falls
      back to normal json if it fails.
      
      In the summary path on a single run of quick.tests, simplejson is about
      3-4 seconds faster than json, ~7 seconds vs ~11 seconds.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      4fefa4e0
  18. 28 Aug, 2013 1 commit
  19. 29 Jul, 2013 1 commit
  20. 27 Jun, 2013 1 commit
    • Jose Fonseca's avatar
      piglit-print-commands: Print relative paths for binaries. · b45df048
      Jose Fonseca authored
      Relative executable paths introduce no new requirements.  The tests'
      arguments are already relative, so they already imply that the commands
      must be run from the top of the piglit directory for printed commands to
      work properly.
      
      The benefit of relative executable paths is that it makes it easier to
      run the tests on a different directory later on.
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      b45df048
  21. 13 May, 2013 1 commit
    • Dylan Baker's avatar
      python: Convert tabs to spaces · b9c4f967
      Dylan Baker authored
      PEP 8 specifies that all indents should be either 4 spaces or an
      equivalent tab indent, but without mixing tabs and spaces, with a
      preference for spaces over tabs because they are absolute. Tabs and
      spaces should not be mixed because they lead to expected indent level
      errors.
      
      Currently piglit uses a mixture of spaces and tabs, this patch uses the
      python tools reindent.py to convert the tabs to spaces.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      v2: Rebase against master, fix apparent unintentional unindentation of
          help text in piglit-summary.py (changes by anholt)
      Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
      b9c4f967
  22. 10 Mar, 2013 4 commits
  23. 05 Jan, 2013 1 commit
  24. 13 Nov, 2012 1 commit
  25. 10 May, 2012 1 commit
    • Kenneth Graunke's avatar
      Add a new "piglit-print-commands.py" command. · bc2af99b
      Kenneth Graunke authored
      This prints a list of all the tests and how to run them:
      
      piglit test name ::: /path/to/piglit/bin/program <args>
      glean test name ::: PIGLIT_TEST='...' /path/to/piglit/bin/glean -v -v -v ...
      
      This may be of use to our QA team, who currently use their own
      infrastructure for running test suites.  Having their runner launch
      piglit-run.py, which parses all.tests, for every test case, is
      incredibly expensive.
      
      This is not meant to be a long term solution.
      Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
      Acked-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
      bc2af99b