diff mbox

[i-g-t,4/5] testdisplay: Handle subtest documentation flags

Message ID 1502360811-31640-5-git-send-email-petri.latvala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Petri Latvala Aug. 10, 2017, 10:26 a.m. UTC
testdisplay has no subtests so hook them to existing subtest handling.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 tests/testdisplay.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Vinay Belgaumkar Aug. 10, 2017, 11:08 p.m. UTC | #1
On 8/10/2017 3:26 AM, Petri Latvala wrote:
> testdisplay has no subtests so hook them to existing subtest handling.
>
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> ---
>   tests/testdisplay.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tests/testdisplay.c b/tests/testdisplay.c
> index f2a41fa..85b118f 100644
> --- a/tests/testdisplay.c
> +++ b/tests/testdisplay.c
> @@ -623,6 +623,8 @@ int main(int argc, char **argv)
>   	struct option long_opts[] = {
>   		{"list-subtests", 0, 0, SUBTEST_OPTS},
>   		{"run-subtest", 1, 0, SUBTEST_OPTS},
> +		{"document-all-subtests", 0, 0, SUBTEST_OPTS},
> +		{"document-subtest", 1, 0, SUBTEST_OPTS},
>   		{"help-description", 0, 0, HELP_DESCRIPTION},
>   		{"help", 0, 0, 'h'},
>   		{"yb", 0, 0, Yb_OPT},

Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
diff mbox

Patch

diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index f2a41fa..85b118f 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -623,6 +623,8 @@  int main(int argc, char **argv)
 	struct option long_opts[] = {
 		{"list-subtests", 0, 0, SUBTEST_OPTS},
 		{"run-subtest", 1, 0, SUBTEST_OPTS},
+		{"document-all-subtests", 0, 0, SUBTEST_OPTS},
+		{"document-subtest", 1, 0, SUBTEST_OPTS},
 		{"help-description", 0, 0, HELP_DESCRIPTION},
 		{"help", 0, 0, 'h'},
 		{"yb", 0, 0, Yb_OPT},