Commit 7715a1aa authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Don't run tests for disabled dlls.

parent b7b61f0e
...@@ -3247,6 +3247,7 @@ static void output_test_module( struct makefile *make ) ...@@ -3247,6 +3247,7 @@ static void output_test_module( struct makefile *make )
char *testres = replace_extension( make->testdll, ".dll", "_test.res" ); char *testres = replace_extension( make->testdll, ".dll", "_test.res" );
struct strarray dep_libs = empty_strarray; struct strarray dep_libs = empty_strarray;
struct strarray all_libs = add_import_libs( make, &dep_libs, make->imports, 0 ); struct strarray all_libs = add_import_libs( make, &dep_libs, make->imports, 0 );
int parent_disabled = 0;
add_import_libs( make, &dep_libs, get_default_imports( make ), 0 ); /* dependencies only */ add_import_libs( make, &dep_libs, get_default_imports( make ), 0 ); /* dependencies only */
strarray_addall( &all_libs, libs ); strarray_addall( &all_libs, libs );
...@@ -3321,16 +3322,19 @@ static void output_test_module( struct makefile *make ) ...@@ -3321,16 +3322,19 @@ static void output_test_module( struct makefile *make )
} }
} }
output_filenames_obj_dir( make, make->ok_files ); if (strendswith( make->base_dir, "/tests" ))
output( ": %s%s ../%s%s\n", testmodule, dll_ext, make->testdll, dll_ext );
if (!make->disabled)
{ {
output( "check test:" ); char *dir = xstrdup( make->base_dir );
output_filenames_obj_dir( make, make->ok_files ); dir[strlen( dir ) - 6] = 0;
output( "\n" ); parent_disabled = strarray_exists( &disabled_dirs, dir );
strarray_add( &make->phony_targets, "check" );
strarray_add( &make->phony_targets, "test" );
} }
output_filenames_obj_dir( make, make->ok_files );
output( ": %s%s ../%s%s\n", testmodule, dll_ext, make->testdll, dll_ext );
output( "check test:" );
if (!make->disabled && !parent_disabled) output_filenames_obj_dir( make, make->ok_files );
output( "\n" );
strarray_add( &make->phony_targets, "check" );
strarray_add( &make->phony_targets, "test" );
output( "testclean::\n" ); output( "testclean::\n" );
output( "\trm -f" ); output( "\trm -f" );
output_filenames_obj_dir( make, make->ok_files ); output_filenames_obj_dir( make, make->ok_files );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment