[PATCH i-g-t v2 5/6] testdisplay: add a test description

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Thomas Wood <thomas.wood@xxxxxxxxx>
---
 tests/testdisplay.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 09e07f0..d00d64a 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},
 		{ 0, 0, 0, 0 }
 	};
 
@@ -704,6 +706,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':
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux