tests = {} subdir('porthole') subdir('repo') foreach test, test_args : tests name = fs.name(test) test( f'test_@name@', executable( f'test_@name@', test, dependencies: [mon, itertools], link_with: [gentoo_utils], ), args: test_args, ) endforeach