1. 15 Dec, 2017 1 commit
  2. 26 Oct, 2016 1 commit
  3. 29 Aug, 2016 1 commit
  4. 26 Aug, 2016 2 commits
  5. 10 May, 2016 1 commit
  6. 17 Apr, 2016 1 commit
  7. 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>
  8. 08 Feb, 2016 1 commit
  9. 25 Nov, 2015 1 commit
    • Feceoru, Gabriel's avatar
      framework: Add support for feature readiness. · f16d011d
      Feceoru, Gabriel authored
      This adds a new "summary feature" command to piglit which creates a HTML table
      with the feature x DUT status (useful for multiple features, multiple DUTs).
      Another use case is the feature status for subsequent test results (depending
      on the meaning of that test result - DUT or build)
      A feature readiness is defined by the piglit regexp which selects the tests
      relevant for that feature and the acceptance percentage threshold (pass rate).
      It requires an input json file containing the list of features, in the
      following format (this is just an example):
          "glsl" : {
              "include_tests" : "glsl",
              "exclude_tests" : "",
              "target_rate" : 90
          "arb" : {
              "include_tests" :  "arb_gpu",
              "exclude_tests" : "",
              "target_rate" : 10
      Changed json rate to int instead of string
      Applied other review comments
      Apply review comments (Dylan, Thomas)
      Fixed 2nd round of review comments
      Signed-off-by: default avatarGabriel Feceoru <gabriel.feceoru@intel.com>
      Reviewed-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
  10. 23 Mar, 2015 1 commit
  11. 07 Jan, 2015 1 commit
  12. 21 Nov, 2014 1 commit
  13. 14 Oct, 2014 1 commit
    • Dylan Baker's avatar
      framework: Move tests derived classes into a package · 3d00e916
      Dylan Baker authored
      This moves all of the classes that derive from Test into a package
      called test. This patch looks very large, but is mostly just moving
      files around and changing imports to account for this.
      So why all of this code churn? The big advantage is that through
      __init__.py magic there is one module to be imported, framework.test.
      This module contains all of the public classes, functions, and
      constants, in one place while hiding the rest, but allowing them to be
      accessed explicitly.
      Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
  14. 01 Oct, 2014 1 commit
  15. 01 Aug, 2014 1 commit
  16. 24 Jun, 2014 1 commit
    • Dylan Baker's avatar
      framework: Don't rely on os.environ so much · 4f497a74
      Dylan Baker authored
      There are some problems with using os.environ, all of which are caused
      shell child-variable relationships. Most of these problems are easy to
      solve, since we don't actually need to have environment variables set
      except during test execution, and that can be passed to Popen (or it's
      helper wrappers). This gives us much better assurance that things are
      happening in the way we expect.
      v7: - use itertools.chain instead of nested iterations
          - fix piglit.conf default case
          - reorder environment overrides so that variables passed in by the
            user (or exported) override the builtin values instead of
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
  17. 20 Jun, 2014 1 commit
  18. 16 Jun, 2014 1 commit
    • Dylan Baker's avatar
      piglit (executable): Make PIGLIT_SOURCE_DIR detection more robust · 4cf0576a
      Dylan Baker authored
      The initial implementation I committed was a bit hackish and I knew it
      at the time, but it seemed to work for all the cases that I tested.
      However, there were corner cases. The biggest of these cases is problems
      running out of tree with piglit built in tree.
      ex: src/piglit/piglit run ...
      This patch makes the handling more robust by explicitly searching for
      three distinct cases:
      1) piglit is run from the source dir, built in the source dir
      2) piglit is run from outside the source dir, built in the source dir
      3) piglit has been installed out of tree
      I have tested all three of these cases, and case 3 if piglit is
      installed as piglit.py.
      Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
      Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
  19. 04 Jun, 2014 1 commit
  20. 09 May, 2014 1 commit
  21. 07 May, 2014 1 commit
    • Dylan Baker's avatar
      piglit: Add a toplevel piglit command · d18077aa
      Dylan Baker authored
      This uses the functions created by the last commit to create a
      all-in-one piglit command. It uses argparse to parse partial commands
      and provide help for those functions.
      It is also capable of handling all of the black magic for setting the
      python sys.path and setting the PIGLIT_SOURCE_DIR environment variable.
      v2: - Allow the name of the program to not be piglit (example:
          - Remove unused check from cmake
          - Install piglit as piglit${PIGLIT_INSTALL_VERSION}; when this
            variable is unset piglit will be installed simply as 'piglit'
      v3: - split "../lib" into "..", "lib" in os.path.join()
      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>