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: default avatarDylan Baker <dylanx.c.baker@intel.com>
      Tested-by: default avatarMarek Olšák <marek.olsak@amd.com>
  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>
  8. 08 Apr, 2014 2 commits
  9. 20 Oct, 2013 1 commit
  10. 16 Oct, 2013 1 commit
  11. 11 Sep, 2013 2 commits
  12. 29 Jul, 2013 1 commit
  13. 05 Jul, 2013 1 commit
  14. 31 May, 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
      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>
  16. 08 May, 2013 5 commits
  17. 21 Apr, 2013 1 commit
  18. 09 Oct, 2012 1 commit
  19. 24 Apr, 2012 1 commit
  20. 26 Mar, 2012 1 commit
  21. 13 Feb, 2012 1 commit
  22. 13 Oct, 2011 1 commit
    • Matěj Cepl's avatar
      Make Python scripts independent of the current working directory · 88ecb306
      Matěj Cepl authored
      The main purpose of this patch is to make piglit independent of the
      current working directory, so it is possible to package piglit as a RPM
      package (with binaries symlinked to /usr/bin, most of the files in
      read-only /usr/lib*/piglit directory, and results somewhere else).
      So it is now possible to run
      $ piglit-run tests/quick-driver.tests /tmp/piglit
      and then with this command
      $ piglit-summary-html --overwrite /tmp/piglit/results /tmp/piglit/main
      generate a report in /tmp/piglit/results/index.html & al.
      Signed-off-by: default avatarMatěj Cepl <mcepl@redhat.com>
      Reviewed-by: Paul Berry's avatarPaul Berry <stereotype441@gmail.com>
  23. 06 Oct, 2011 1 commit
  24. 17 Sep, 2011 1 commit
  25. 11 Aug, 2011 1 commit
    • Paul Berry's avatar
      Changed piglit-summary-html to explicitly encode its output as UTF-8. · da3126ce
      Paul Berry authored
      Previously piglit-summary-html didn't explicitly encode its output at
      all--it relied on the default behavior of the Python file.write()
      method (which, in Python 2.x, is to write 8-bit strings verbatim and
      to encode unicode strings using ASCII).  This meant that if a
      non-ASCII character appeared in any of the test data,
      piglit-summary-html would fail with an exception.
      This patch changes piglit-summary-html to explicitly encode its output
      using UTF-8.  It also updates all of the HTML templates to specify
      UTF-8 as the encoding, so that when results are viewed in a web
      browser, non-ASCII characters will display correctly.
  26. 14 Jul, 2011 3 commits
  27. 05 Apr, 2011 3 commits
  28. 23 Aug, 2009 1 commit