Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
348 changes: 0 additions & 348 deletions Sources/lit-test-helper/main.swift

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions build-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
LLVM_DIR = os.path.join(WORKSPACE_DIR, "llvm-project", "llvm")
SWIFT_DIR = os.path.join(WORKSPACE_DIR, "swift")

INCR_TRANSFER_ROUNDTRIP_EXEC = os.path.join(
PACKAGE_DIR, "utils", "incrparse", "incr_transfer_round_trip.py"
)

LIT_EXEC = os.path.join(LLVM_DIR, "utils", "lit", "lit.py")

GROUP_INFO_PATH = os.path.join(PACKAGE_DIR, "utils", "group.json")
Expand Down Expand Up @@ -337,19 +333,6 @@ def check_lit_exec() -> None:
)


def check_incr_transfer_roundtrip_exec() -> None:
if not os.path.exists(INCR_TRANSFER_ROUNDTRIP_EXEC):
fatal_error(
"""
Error: Could not find incr_transfer_round_trip.py.

Make sure you have the main swift repo checked out next to the swift-syntax
repo.
Refer to README.md for more information.
"""
)


def find_swiftpm_bin_path(
package_dir: str, toolchain: str, build_dir: Optional[str], release: bool
) -> str:
Expand Down Expand Up @@ -384,7 +367,6 @@ def run_lit_tests(toolchain: str, build_dir: Optional[str], release: bool,
print("** Running lit-based tests **")

check_lit_exec()
check_incr_transfer_roundtrip_exec()

product_bin_path = find_product_bin_path(
toolchain=toolchain, build_dir=build_dir, release=release)
Expand All @@ -400,9 +382,6 @@ def run_lit_tests(toolchain: str, build_dir: Optional[str], release: bool,
lit_call.extend(["--param", "FILECHECK=" + filecheck_exec])
if lit_test_helper_exec:
lit_call.extend(["--param", "LIT_TEST_HELPER=" + lit_test_helper_exec])
lit_call.extend(
["--param", "INCR_TRANSFER_ROUND_TRIP.PY=" + INCR_TRANSFER_ROUNDTRIP_EXEC]
)
lit_call.extend(["--param", "EXAMPLES_BIN_PATH=" + examples_bin_path])
lit_call.extend(["--param", "TOOLCHAIN=" + toolchain])

Expand Down
7 changes: 0 additions & 7 deletions lit_tests/incrParse/add-else-to-ifconfig.swift

This file was deleted.

10 changes: 0 additions & 10 deletions lit_tests/incrParse/add-space-at-missing-brace.swift

This file was deleted.

40 changes: 0 additions & 40 deletions lit_tests/incrParse/funcs.swift

This file was deleted.

6 changes: 0 additions & 6 deletions lit_tests/incrParse/inserted_text_starts_identifier.swift

This file was deleted.

17 changes: 0 additions & 17 deletions lit_tests/incrParse/invalid.swift

This file was deleted.

7 changes: 0 additions & 7 deletions lit_tests/incrParse/multi-edit-mapping.swift

This file was deleted.

49 changes: 0 additions & 49 deletions lit_tests/incrParse/reuse.swift

This file was deleted.

60 changes: 0 additions & 60 deletions lit_tests/incrParse/simple.swift

This file was deleted.

8 changes: 0 additions & 8 deletions lit_tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ config.test_exec_root = tempfile.gettempdir()

config.examples_bin_path = lit_config.params.get("EXAMPLES_BIN_PATH")
config.filecheck = inferSwiftBinary("FileCheck")
config.incr_transfer_round_trip = inferSwiftBinary("incr_transfer_round_trip.py")
config.lit_test_helper = inferSwiftBinary("lit-test-helper")
config.swift = inferSwiftBinary("swift")
config.swiftc = inferSwiftBinary("swiftc")
Expand All @@ -78,13 +77,6 @@ config.substitutions.append(
("%empty-directory\(([^)]+)\)", 'rm -rf "\\1" && mkdir -p "\\1"')
)
config.substitutions.append(("%FileCheck", config.filecheck))
config.substitutions.append(
(
"%validate-incrparse",
"%s --temp-dir %%t --swiftsyntax-lit-test-helper %s"
% (config.incr_transfer_round_trip, config.lit_test_helper),
)
)
config.substitutions.append(("%lit-test-helper", config.lit_test_helper))
config.substitutions.append(("%swiftc", config.swiftc))
config.substitutions.append(("%swift", config.swift))
Expand Down
118 changes: 0 additions & 118 deletions utils/incrparse/incr_transfer_round_trip.py

This file was deleted.

Loading