[Piglit] [PATCH 00/20] Windows fixes

Dylan Baker dylan at pnwbakers.com
Wed Jun 1 23:50:07 UTC 2016


I'm tired of breaking piglit on windows. This series add appveyor (and
travis too, why not get free Linux testing while we're at it?) support
to piglit for the python framework (it doesn't cover the generators at
the moment), and fixes unittests and code to work on windows, mostly
unittests because I'm sloppy with them, but hey.

The final patch actually does fix a real bug, which is the known fcntl
issue. It's kind of a hack, since it only hides the error until a windows
user tries to use the monitoring code. Since to my knowledge there is no
one on windows using the monitoring module it gets everybody up and
running again without breaking the monitoring users on POSIX systems.

This is available at my github:
https://github.com/dcbaker/piglit wip/appveyor-v2

Dylan Baker (20):
  travis: Add travis.yml for python code
  appveyor.yml: Add appveyor for python code
  tox: split py27-accel for windows
  unittests: split utils module
  unittests: Make skip less invasive
  unittests/core_tests: use mock instead of hand spun decorator
  unittests: replace set_env decorator with mock
  unittests: add utility context manager for changing directories
  unittests: use utils.nose.chdir
  unittests: fix dmesg test that could not work on non-posix platforms
  unittests: Skip xz shell compressor test if there is no xz binary
  unittests: fix compressor tests that fails on windows
  unittests: skip test that only works on POSIX platforms
  unittests: fix monitoring tests.
  unittests: reimplement utility function to get a unique file to be
    windows-safe
  unitttests: skip timeout test on windows
  framework: encode arguments to subprocess for python2 on windows
  unittests: make deqp tests work on windows by closing generator
  unittests: fix test that tries to unlink open file
  framework: guard POSIX specific code in monitoring module

 .travis.yml                             |  16 ++
 appveyor.yml                            |  55 +++++
 ci/appveyor/compiler.cmd                |  46 ++++
 framework/monitoring.py                 | 172 +++++++-------
 framework/test/base.py                  |  16 +-
 tox.ini                                 |  16 +-
 unittests/backends_tests.py             |  16 +-
 unittests/base_tests.py                 |  51 ++---
 unittests/compressed_backend_tests.py   | 101 +++++----
 unittests/core_tests.py                 | 111 +++-------
 unittests/deqp_tests.py                 |  30 +--
 unittests/dmesg_tests.py                |  31 +--
 unittests/exceptions_tests.py           |   2 +-
 unittests/generators/test_generators.py |   6 +-
 unittests/generators/test_glsl.py       |  12 +-
 unittests/gleantest_tests.py            |   6 +-
 unittests/glsl_parser_test_tests.py     |  44 ++--
 unittests/grouptools_tests.py           |   4 +-
 unittests/gtest_tests.py                |   2 +-
 unittests/json_backend_tests.py         |  54 ++---
 unittests/json_results_update_tests.py  |  32 +--
 unittests/json_tests.py                 |  18 +-
 unittests/junit_backends_tests.py       |  46 ++--
 unittests/log_tests.py                  |   8 +-
 unittests/monitoring_tests.py           |  56 +++--
 unittests/oglconform_tests.py           |   4 +-
 unittests/opencv_tests.py               |   2 +-
 unittests/opengl_tests.py               |  52 ++---
 unittests/options_tests.py              |   2 +-
 unittests/piglit_test_tests.py          |   8 +-
 unittests/profile_tests.py              |  72 +++---
 unittests/results_tests.py              |   8 +-
 unittests/run_parser_tests.py           |  14 +-
 unittests/shader_test_tests.py          |  10 +-
 unittests/status_tests.py               |  22 +-
 unittests/summary_common_tests.py       |   6 +-
 unittests/summary_console_tests.py      |   2 +-
 unittests/summary_html_tests.py         |   2 +-
 unittests/test_lists.py                 |   2 +-
 unittests/utils/__init__.py             |   1 +
 unittests/{utils.py => utils/nose.py}   | 381 ++++++++++----------------------
 unittests/utils/piglit.py               | 189 ++++++++++++++++
 42 files changed, 918 insertions(+), 810 deletions(-)
 create mode 100644 .travis.yml
 create mode 100644 appveyor.yml
 create mode 100644 ci/appveyor/compiler.cmd
 create mode 100644 unittests/utils/__init__.py
 rename unittests/{utils.py => utils/nose.py} (52%)
 create mode 100644 unittests/utils/piglit.py

-- 
2.8.3



More information about the Piglit mailing list