Skip to content

Commit 9b31e9a

Browse files
authored
Merge pull request swiftlang#68595 from ahoppen/ahoppen/batch-completion
[tests] Add a `%batch-code-completion` lit substitution
2 parents 71cb84b + a5a17aa commit 9b31e9a

File tree

74 files changed

+78
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+78
-136
lines changed

test/IDE/complete_accessor.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
32

43
// WITH_GETSET: Keyword/None: get; name=get
54
// WITH_GETSET: Keyword/None: set; name=set

test/IDE/complete_after_self.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
32

43
//===---
54
//===--- Tests for code completion after 'self'.

test/IDE/complete_after_super.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// RUN: sed -n -e '/VERIFY_BEGIN/,/VERIFY_END$/ p' %s > %t_no_errors.swift
22
// RUN: %target-swift-frontend -verify -typecheck %t_no_errors.swift
33

4-
// RUN: %empty-directory(%t)
5-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
4+
// RUN: %batch-code-completion
65

76
// NO_CONSTRUCTORS-NOT: init(
87

test/IDE/complete_ambiguous.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
32

43
struct A {
54
func doAThings() -> A { return self }

test/IDE/complete_async_context.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
22

33
// REQUIRES: concurrency
44

test/IDE/complete_asyncannotation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
22

33
// REQUIRES: concurrency
44

test/IDE/complete_at_top_level.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
32

43
// NORESULT: Token
54

test/IDE/complete_call_arg.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
32

43
var i1 = 1
54
var i2 = 2

test/IDE/complete_concurrency_specifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
22

33
// REQUIRES: concurrency
44

test/IDE/complete_constructor.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t
1+
// RUN: %batch-code-completion
32

43
func freeFunc() {}
54

0 commit comments

Comments
 (0)