Mesa (master): mesa/st/tests: unify MockCodeLine* classes

Brian Paul brianp at kemper.freedesktop.org
Wed Jan 24 17:34:36 UTC 2018


Module: Mesa
Branch: master
Commit: 6569b33b6eed94aa8722287344f9f06a9390e0e5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6569b33b6eed94aa8722287344f9f06a9390e0e5

Author: Gert Wollny <gw.fossdev at gmail.com>
Date:   Wed Oct 11 19:56:46 2017 +0200

mesa/st/tests: unify MockCodeLine* classes

 * Merge the classes MockCodeLine and MockCodelineWithSwizzle into
   one, and  refactor tests accordingly.
 * Change memory allocations to use ralloc* interface.

 v2:
 * move the test classes into a conveniance library
 * rename the Mock* classes to Fake* since they are not really
   Mocks
 * Base assertion of correct number of src and dst registers in tests
   on what the operatand actually expects
 * Fix number of destinations in one test

 v6:
 * fix local includes using "..." insteadof <...>

Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>

---

 src/mesa/state_tracker/tests/Makefile.am           |   6 +
 src/mesa/state_tracker/tests/st_tests_common.cpp   | 394 +++++++++++
 src/mesa/state_tracker/tests/st_tests_common.h     | 163 +++++
 .../tests/test_glsl_to_tgsi_lifetime.cpp           | 719 +++++----------------
 4 files changed, 735 insertions(+), 547 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=6569b33b6eed94aa8722287344f9f06a9390e0e5



More information about the mesa-commit mailing list