summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/target-helpers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-02-01 12:59:27 +0100
committerMarek Olšák <[email protected]>2015-02-06 22:27:06 +0100
commitdcf996c31eb818a85adb0187cdb4df0b9f14d1d9 (patch)
tree73b7dba3271788d3444e146cd6b6316b9d19bf25 /src/gallium/auxiliary/target-helpers
parent0271ac72d192c0cc092a3f6f47dab88923be1bdb (diff)
gallium: run gallium tests if GALLIUM_TESTS=1 is set
Reviewed-by: Glenn Kennard <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r--src/gallium/auxiliary/target-helpers/inline_debug_helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_debug_helper.h b/src/gallium/auxiliary/target-helpers/inline_debug_helper.h
index 6fe667d3fbd..faae1800e72 100644
--- a/src/gallium/auxiliary/target-helpers/inline_debug_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_debug_helper.h
@@ -4,6 +4,7 @@
#include "pipe/p_compiler.h"
#include "util/u_debug.h"
+#include "util/u_tests.h"
/* Helper function to wrap a screen with
@@ -49,6 +50,9 @@ debug_screen_wrap(struct pipe_screen *screen)
screen = noop_screen_create(screen);
#endif
+ if (debug_get_bool_option("GALLIUM_TESTS", FALSE))
+ util_run_tests(screen);
+
return screen;
}