aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/compiler/tests/unit_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r300/compiler/tests/unit_test.h')
-rw-r--r--src/gallium/drivers/r300/compiler/tests/unit_test.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/compiler/tests/unit_test.h b/src/gallium/drivers/r300/compiler/tests/unit_test.h
new file mode 100644
index 00000000000..441e8b655a5
--- /dev/null
+++ b/src/gallium/drivers/r300/compiler/tests/unit_test.h
@@ -0,0 +1,17 @@
+
+struct test_result {
+ unsigned int test_count;
+ unsigned int pass;
+ unsigned int fail;
+};
+
+struct test {
+ const char * name;
+ void (*test_func)(struct test_result * result);
+ struct test_result result;
+};
+
+void run_tests(struct test tests[]);
+
+void test_begin(struct test_result * result);
+void test_check(struct test_result * result, int cond);