mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-10-31 13:20:42 +01:00 
			
		
		
		
	 41f48c75a2
			
		
	
	41f48c75a2
	
	
	
		
			
			BUG=b:157280555 BRANCH=none TEST=builds Change-Id: I47112952835ce2c4c773a9d90379ff8ceefaaf9a Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/41645 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
		
			
				
	
	
		
			31 lines
		
	
	
		
			652 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			652 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| root_includes = include_directories('../subprojects')
 | |
| 
 | |
| srcs = [
 | |
|   'tests.c',
 | |
|   'spi25.c',
 | |
| ]
 | |
| 
 | |
| mocks = [
 | |
|   '-Wl,--wrap=physunmap',
 | |
|   '-Wl,--wrap=physmap',
 | |
|   '-Wl,--wrap=spi_send_command',
 | |
|   '-Wl,--gc-sections',
 | |
| ]
 | |
| 
 | |
| flashrom_tests = executable('flashrom_unit_tests',
 | |
|   srcs,
 | |
|   include_directories : root_includes,
 | |
|   c_args : [
 | |
|     cargs,
 | |
|     '-ffunction-sections',
 | |
|     '-fdata-sections',
 | |
|     #    '-DSTANDALONE',
 | |
|     '-DCONFIG_DEFAULT_PROGRAMMER=PROGRAMMER_DUMMY',
 | |
|     '-DCONFIG_DEFAULT_PROGRAMMER_ARGS=""',
 | |
|   ],
 | |
|   export_dynamic : true,
 | |
|   link_args : mocks,
 | |
|   dependencies : [cmocka_dep, flashrom_test_dep],
 | |
| )
 | |
| test('cmocka test flashrom', flashrom_tests)
 |