summaryrefslogtreecommitdiff
path: root/tests/testdisplay.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-10-30 15:54:02 +0000
committerThomas Wood <thomas.wood@intel.com>2014-11-06 13:24:30 +0000
commit895204fc6257f8ce2cae380f98cab4fd753251a1 (patch)
tree5f387a86a5fbb7c23a7e468495e04ee1acc25a24 /tests/testdisplay.c
parent98188b4b416fe066f8d7c8ea18b4186c3381223b (diff)
testdisplay: add a test description
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r--tests/testdisplay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index b7e15412..68bb21fc 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -72,6 +72,7 @@
#include <signal.h>
#define SUBTEST_OPTS 1
+#define HELP_DESCRIPTION 2
static int tio_fd;
struct termios saved_tio;
@@ -642,6 +643,7 @@ int main(int argc, char **argv)
struct option long_opts[] = {
{"list-subtests", 0, 0, SUBTEST_OPTS},
{"run-subtest", 1, 0, SUBTEST_OPTS},
+ {"help-description", 0, 0, HELP_DESCRIPTION},
{"help", 0, 0, 'h'},
{ 0, 0, 0, 0 }
};
@@ -705,6 +707,10 @@ int main(int argc, char **argv)
/* invalid subtest options */
exit(IGT_EXIT_INVALID);
break;
+ case HELP_DESCRIPTION:
+ printf("Tests display functionality.");
+ exit(0);
+ break;
default:
/* fall through */
case 'h':