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