makefiles: Add intermediate test target to propagate test failures status properly.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-02-26 16:38:59 +01:00
parent f1c344bc62
commit 5aa0144ec6
1 changed files with 9 additions and 1 deletions

View File

@ -3494,7 +3494,7 @@ static void output_subdirs( struct makefile *make )
}
else if (submake->testdll)
{
output( "check test::\n" );
output( "%s/test: dummy\n", subdir );
output( "\t@cd %s && $(MAKE) test\n", subdir );
strarray_add( &winetest_deps, subdir );
strarray_add( &builddeps_deps, subdir );
@ -3536,6 +3536,14 @@ static void output_subdirs( struct makefile *make )
output( "programs/winetest:" );
output_filenames( winetest_deps );
output( "\n" );
output( "check test:" );
for (i = 0; i < winetest_deps.count; i++)
{
char *target = strmake( "%s/test", winetest_deps.str[i] );
output_filename( target );
strarray_add( &make->phony_targets, target );
}
output( "\n" );
strarray_add( &make->phony_targets, "check" );
strarray_add( &make->phony_targets, "test" );
}