summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-10-30 17:00:22 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-10-30 17:02:29 +0900
commitd11a13079001e94e0e7aa4ab92e60f9b70dd8e8e (patch)
tree66c8973510a81a13c65a8b901ce9d7c3001b6dde
parent91db0da8849b16d7889629be169b6bdd696b928f (diff)
elementary_test: support --help command line.
-rw-r--r--src/bin/test.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bin/test.c b/src/bin/test.c
index 96ebff7e1..2a21d91f5 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -908,7 +908,19 @@ elm_main(int argc, char **argv)
908 * the same name as the given param 908 * the same name as the given param
909 * ex: elementary_test "Box Vert 2" */ 909 * ex: elementary_test "Box Vert 2" */
910 if (argc == 2) 910 if (argc == 2)
911 autorun = argv[1]; 911 {
912 if (!strcmp(argv[1], "--help"))
913 {
914 printf("Usages:\n"
915 "$ elementary_test\n"
916 "$ elementary_test --test-win-only [TEST_NAME]\n"
917 "$ elementary_test -to [TEST_NAME]\n\n"
918 "Examples:\n"
919 "$ elementary_test -to Button\n\n");
920 exit(EXIT_SUCCESS);
921 }
922 autorun = argv[1];
923 }
912 else if (argc == 3) 924 else if (argc == 3)
913 { 925 {
914 /* Just a workaround to make the shot module more 926 /* Just a workaround to make the shot module more