mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-03 19:47:15 +00:00 
			
		
		
		
	lib: allow wildcard matching when specifying subtests
This allows multiple subtests to be specified using standard wildcard characters when using the --run-subtest command line option. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
		
							parent
							
								
									b883b30668
								
							
						
					
					
						commit
						982934625a
					
				@ -56,6 +56,7 @@
 | 
			
		||||
#include <ctype.h>
 | 
			
		||||
#include <limits.h>
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
#include <fnmatch.h>
 | 
			
		||||
 | 
			
		||||
#include "drmtest.h"
 | 
			
		||||
#include "intel_chipset.h"
 | 
			
		||||
@ -771,7 +772,7 @@ bool __igt_run_subtest(const char *subtest_name)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (run_single_subtest) {
 | 
			
		||||
		if (strcmp(subtest_name, run_single_subtest) != 0)
 | 
			
		||||
		if (fnmatch(run_single_subtest, subtest_name, 0) != 0)
 | 
			
		||||
			return false;
 | 
			
		||||
		else
 | 
			
		||||
			run_single_subtest_found = true;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user