1. 08 Nov, 2018 1 commit
  2. 03 May, 2016 1 commit
  3. 17 Apr, 2016 1 commit
  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: 's avatarDylan Baker <dylanx.c.baker@intel.com>
      Tested-by: 's avatarMarek Olšák <marek.olsak@amd.com>
      6a9d0146
  5. 20 Jun, 2014 1 commit
  6. 08 May, 2014 1 commit
  7. 07 May, 2014 1 commit
    • Dylan Baker's avatar
      framework: move executable functions to modules · 9b1e7da2
      Dylan Baker authored
      This moves piglit-run and piglit-resume main() functions to
      framework.programs.run as run() and resume() respectively, and moves
      piglit-summary-* to framework.programs.summary. It then creates
      compatibility wrappers as piglit-*.py for the functions.
      
      This is groundwork for a combined piglit interface. The original files
      could not be imported directly since they have dash (-) in their name,
      and python considers dash an illegal character for function, class, and
      modules names, and python would raise an ImportError when attempting to
      import one of them.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
      9b1e7da2
  8. 30 Dec, 2013 1 commit
  9. 26 Oct, 2013 1 commit
  10. 20 Oct, 2013 1 commit
  11. 11 Sep, 2013 2 commits
  12. 29 Jul, 2013 1 commit
  13. 05 Jul, 2013 1 commit
  14. 02 Jul, 2013 3 commits
  15. 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
  16. 20 Apr, 2013 1 commit
  17. 19 Apr, 2013 1 commit
    • Brian Paul's avatar
      add new piglit-summary.py script for printing summaries of results file(s) · af07e6f6
      Brian Paul authored
      If only one result file is specified, just print all the tests
      followed by the outcome.  For example:
      
      fbo/FBO blit from missing attachment: pass
      fbo/FBO blit to missing attachment: fail
      fbo/fbo-1d: pass
      fbo/fbo-3d: crash
      [...]
      
      If multiple result files are specified, we'll print pass/fail/etc
      for each file.  Example:
      
      fbo/FBO blit from missing attachment: pass pass
      fbo/FBO blit to missing attachment: fail pass
      [...]
      
      If -s (--summary) is specified, only print a summary of the number of
      passes, fails, crashes, etc.
      
      if -d (-diff) is specified with multipe result files, only print the
      tests which had different outcomes.  Good for spotting regressions.
      
      v2: fix -l option issues
      Reviewed-by: Jose Fonseca's avatarJosé Fonseca <jfonseca@vmware.com>
      af07e6f6