diff mbox

[03/19] check-help: add some hint to run a single test

Message ID 20161201051433.17168-4-bobby.prani@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Pranith Kumar Dec. 1, 2016, 5:14 a.m. UTC
From: Marc-André Lureau <marcandre.lureau@redhat.com>

It's possible to run the test directly, tests/test-foo, but then
recompilation is not triggered and test environment variables aren't set
for you.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
 tests/Makefile.include | 1 +
 1 file changed, 1 insertion(+)

Comments

Alex Bennée Dec. 9, 2016, 5:14 p.m. UTC | #1
Pranith Kumar <bobby.prani@gmail.com> writes:

> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> It's possible to run the test directly, tests/test-foo, but then
> recompilation is not triggered and test environment variables aren't set
> for you.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

> ---
>  tests/Makefile.include | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index e98d3b6..2a2b78d 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -731,6 +731,7 @@ check-help:
>  	@echo " make check-qtest-TARGET   Run qtest tests for given target"
>  	@echo " make check-qtest          Run qtest tests"
>  	@echo " make check-unit           Run qobject tests"
> +	@echo " make check-tests/test-foo Run the tests/test-foo unit test only"
>  	@echo " make check-qapi-schema    Run QAPI schema tests"
>  	@echo " make check-block          Run block tests"
>  	@echo " make check-report.html    Generates an HTML test report"


--
Alex Bennée
diff mbox

Patch

diff --git a/tests/Makefile.include b/tests/Makefile.include
index e98d3b6..2a2b78d 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -731,6 +731,7 @@  check-help:
 	@echo " make check-qtest-TARGET   Run qtest tests for given target"
 	@echo " make check-qtest          Run qtest tests"
 	@echo " make check-unit           Run qobject tests"
+	@echo " make check-tests/test-foo Run the tests/test-foo unit test only"
 	@echo " make check-qapi-schema    Run QAPI schema tests"
 	@echo " make check-block          Run block tests"
 	@echo " make check-report.html    Generates an HTML test report"