in aws/sdk/test-services.py [0:0]
def main():
# change working directory to `aws/sdk`:
script_path = os.path.abspath(__file__)
os.chdir(os.path.dirname(script_path))
services = set()
for service in os.listdir('integration-tests'):
if os.path.isdir(Path('integration-tests') / service):
services.add(service)
for model in os.listdir('aws-models'):
if model.endswith('-tests.smithy'):
service = model[:-len('-tests.smithy')]
services.add(service)
services = sorted(list(services))
aws_packages = set()
for aws_package in os.listdir('../rust-runtime'):
if aws_package.startswith('aws-') and 'inlineable' not in aws_package:
aws_packages.add(aws_package)
as_arguments = [f'-p aws-sdk-{service}' for service in services]
as_arguments.extend([f'-p {aws_package}' for aws_package in aws_packages])
print(' '.join(as_arguments), end='')