summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index f7a92ce9..846f5991 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -38,6 +38,18 @@
#include <stdarg.h>
#include <getopt.h>
+extern const char* __igt_test_description __attribute__((weak));
+
+/**
+ * IGT_TEST_DESCRIPTION:
+ * @str: description string
+ *
+ * Defines a description for a test. This is used as the output for the
+ * "--help-description" option and is also included in the generated
+ * documentation.
+ */
+#define IGT_TEST_DESCRIPTION(str) const char* __igt_test_description = str
+
/**
* IGT_EXIT_TIMEOUT:
*