mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	meson: prefix the names of the tests so that they are unique in the tree
meson < 0.46 does not allow two targets to share the same name; meson >= 0.46 relaxes that requirement, but I see no reason to require a new version of meson just for this
This commit is contained in:
		
							parent
							
								
									99e1bb1068
								
							
						
					
					
						commit
						71eb538fba
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
					@ -5,8 +5,8 @@ test_apps = [
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
foreach a : test_apps
 | 
					foreach a : test_apps
 | 
				
			||||||
  test(a,
 | 
					  test('spa-' + a,
 | 
				
			||||||
	executable(a, a + '.c',
 | 
						executable('spa-' + a, a + '.c',
 | 
				
			||||||
		dependencies : [dl_lib, pthread_lib, mathlib ],
 | 
							dependencies : [dl_lib, pthread_lib, mathlib ],
 | 
				
			||||||
		include_directories : [spa_inc ],
 | 
							include_directories : [spa_inc ],
 | 
				
			||||||
		c_args : [ '-D_GNU_SOURCE' ],
 | 
							c_args : [ '-D_GNU_SOURCE' ],
 | 
				
			||||||
| 
						 | 
					@ -17,11 +17,11 @@ foreach a : test_apps
 | 
				
			||||||
endforeach
 | 
					endforeach
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if have_cpp
 | 
					if have_cpp
 | 
				
			||||||
test_cpp = executable('test-cpp', 'test-cpp.cpp',
 | 
					test_cpp = executable('spa-test-cpp', 'test-cpp.cpp',
 | 
				
			||||||
                        include_directories : [spa_inc ],
 | 
					                        include_directories : [spa_inc ],
 | 
				
			||||||
                        dependencies : [],
 | 
					                        dependencies : [],
 | 
				
			||||||
                        install : false)
 | 
					                        install : false)
 | 
				
			||||||
test('test-cpp', test_cpp)
 | 
					test('spa-test-cpp', test_cpp)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
benchmark_apps = [
 | 
					benchmark_apps = [
 | 
				
			||||||
| 
						 | 
					@ -30,8 +30,8 @@ benchmark_apps = [
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
foreach a : benchmark_apps
 | 
					foreach a : benchmark_apps
 | 
				
			||||||
  benchmark(a,
 | 
					  benchmark('spa-' + a,
 | 
				
			||||||
	executable(a, a + '.c',
 | 
						executable('spa-' + a, a + '.c',
 | 
				
			||||||
		dependencies : [dl_lib, pthread_lib, mathlib ],
 | 
							dependencies : [dl_lib, pthread_lib, mathlib ],
 | 
				
			||||||
		include_directories : [spa_inc ],
 | 
							include_directories : [spa_inc ],
 | 
				
			||||||
		c_args : [ '-D_GNU_SOURCE' ],
 | 
							c_args : [ '-D_GNU_SOURCE' ],
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,8 +10,8 @@ test_apps = [
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
foreach a : test_apps
 | 
					foreach a : test_apps
 | 
				
			||||||
  test(a,
 | 
					  test('pw-' + a,
 | 
				
			||||||
	executable(a, a + '.c',
 | 
						executable('pw-' + a, a + '.c',
 | 
				
			||||||
		dependencies : [pipewire_dep],
 | 
							dependencies : [pipewire_dep],
 | 
				
			||||||
		c_args : [ '-D_GNU_SOURCE' ],
 | 
							c_args : [ '-D_GNU_SOURCE' ],
 | 
				
			||||||
		install : false),
 | 
							install : false),
 | 
				
			||||||
| 
						 | 
					@ -23,8 +23,8 @@ endforeach
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if have_cpp
 | 
					if have_cpp
 | 
				
			||||||
test_cpp = executable('test-cpp', 'test-cpp.cpp',
 | 
					test_cpp = executable('pw-test-cpp', 'test-cpp.cpp',
 | 
				
			||||||
                        dependencies : [pipewire_dep],
 | 
					                        dependencies : [pipewire_dep],
 | 
				
			||||||
                        install : false)
 | 
					                        install : false)
 | 
				
			||||||
test('test-cpp', test_cpp)
 | 
					test('pw-test-cpp', test_cpp)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue