def METHOD_NAME(test, run, packages, swiftc_options):
    # Process the package directories. Each directory in `packages` that has a
    # `Package.swift` file is built using the `swiftc` command.
    results = ()
    num_packages_found = 0
    for dir in packages:
        if dir.exists() and dir.is_dir():
            path = dir.expanduser().resolve()
            output, is_package = build_package(test, run, path, swiftc_options)
            if is_package:
                num_packages_found = num_packages_found + 1
                results = results + ((path, output),)
    # Display a table of build results.
    if num_packages_found != 0:
        print("{0: <65} {1}".format("Example", "Status"))
        print("-"*65, "-"*6)
    fails = 0
    for result in results:
        outcome_str = "OK"
        (path, value) = result
        if value != 0:
            fails = fails + 1
            outcome_str = "Fail"
        num_parts = len(path.parts)
        if num_parts > 1:
            parent = path.parts[num_parts - 2]
        else:
            parent = ""
        short_path = f"{parent}{os.sep}{path.name}"
        short_path = str(short_path)
        short_path_len = len(short_path)
        if short_path_len > 64:
            short_path = f"...{short_path[-61:]}"
        print("{0:.<65} {1}".format(f"{short_path} ", outcome_str))
    print(f"\nBuilt {num_packages_found} project(s) with {fails} failure(s).")
    print_configuration(test, swiftc_options)