Skip to content

[Test] Fix the wrong subsitution of swift-frontend-target in tests #70530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
2 changes: 1 addition & 1 deletion test/IRGen/enum_large.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %swift-target-frontend -emit-irgen %s | %FileCheck %s
// RUN: %target-swift-frontend -emit-irgen %s | %FileCheck %s

// REQUIRES: PTRSIZE=64

Expand Down
4 changes: 2 additions & 2 deletions test/IRGen/static-serialization.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %swift-target-frontend -static -emit-module -emit-module-path %t/StaticLibrary.swiftmodule -module-name StaticLibrary -DSTATIC_LIBRARY %s
// RUN: %swift-target-frontend -I%t -S %s -emit-ir -o - | %FileCheck %s
// RUN: %target-swift-frontend -static -emit-module -emit-module-path %t/StaticLibrary.swiftmodule -module-name StaticLibrary -DSTATIC_LIBRARY %s
// RUN: %target-swift-frontend -I%t -S %s -emit-ir -o - | %FileCheck %s

#if STATIC_LIBRARY
public final class S {
Expand Down
4 changes: 2 additions & 2 deletions test/IRGen/static-vtable-stubs.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %empty-directory(%t)
// RUN: split-file --leading-lines %s %t
// RUN: %swift-target-frontend -disable-availability-checking -parse-as-library -static -O -module-name M -c -primary-file %t/A.swift %t/B.swift -S -emit-ir -o - | %FileCheck %t/A.swift -check-prefix CHECK
// RUN: %swift-target-frontend -disable-availability-checking -parse-as-library -static -O -module-name M -c %t/A.swift -primary-file %t/B.swift -S -emit-ir -o - | %FileCheck %t/B.swift -check-prefix CHECK
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -static -O -module-name M -c -primary-file %t/A.swift %t/B.swift -S -emit-ir -o - | %FileCheck %t/A.swift -check-prefix CHECK
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -static -O -module-name M -c %t/A.swift -primary-file %t/B.swift -S -emit-ir -o - | %FileCheck %t/B.swift -check-prefix CHECK

// Verify that we can link successfully.
// RUN: %target-build-swift -Xfrontend -disable-availability-checking -O %t/A.swift %t/B.swift -o %t/a.out
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/extension_macro_plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// RUN: %S/Inputs/syntax_macro_definitions.swift \
// RUN: -g -no-toolchain-stdlib-rpath

// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %target-swift-frontend \
// RUN: -typecheck -verify \
// RUN: -swift-version 5 \
// RUN: -external-plugin-path %t/plugins#%swift-plugin-server \
Expand Down
4 changes: 2 additions & 2 deletions test/Macros/macro_plugin_basic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// RUN: %swift-build-c-plugin -o %t/mock-plugin %t/plugin.c

// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %target-swift-frontend \
// RUN: -typecheck -verify \
// RUN: -swift-version 5 \
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \
Expand All @@ -15,7 +15,7 @@

// RUN: %FileCheck -strict-whitespace %s < %t/macro-expansions.txt

// RUN: not %swift-target-frontend \
// RUN: not %target-swift-frontend \
// RUN: -typecheck \
// RUN: -swift-version 5 \
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/macro_plugin_broken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// RUN: -module-name=TestPlugin \
// RUN: %t/broken_plugin.swift

// RUN: not %swift-target-frontend \
// RUN: not %target-swift-frontend \
// RUN: -typecheck \
// RUN: -swift-version 5 -enable-experimental-feature Macros \
// RUN: -load-plugin-executable %t/broken-plugin#TestPlugin \
Expand Down
4 changes: 2 additions & 2 deletions test/Macros/macro_plugin_broken_shlib.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// RUN: touch %t/plugins/libTestPlugin.dylib

// RUN: not %swift-target-frontend \
// RUN: not %target-swift-frontend \
// RUN: -typecheck \
// RUN: -swift-version 5 \
// RUN: -external-plugin-path %t/plugins#%swift-plugin-server \
Expand All @@ -23,7 +23,7 @@
// SERVER: test.swift:1:33: note: 'fooMacro' declared here
// SERVER-NOT: {{error|warning}}

// RUN: not %swift-target-frontend \
// RUN: not %target-swift-frontend \
// RUN: -typecheck \
// RUN: -swift-version 5 \
// RUN: -plugin-path %t/plugins \
Expand Down
4 changes: 2 additions & 2 deletions test/Macros/macro_plugin_disable_sandbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

//== Nested sandbox. Expected to fail because sandbox-exec doesn't support nested sandboxing.
// RUN: not sandbox-exec -p '(version 1)(allow default)' \
// RUN: %swift-target-frontend \
// RUN: %target-swift-frontend \
// RUN: -typecheck -verify \
// RUN: -swift-version 5 \
// RUN: -external-plugin-path %t/plugins#%swift-plugin-server \
Expand All @@ -31,7 +31,7 @@

//== Avoid nested sandbox by -disable-sandbox
// RUN: sandbox-exec -p '(version 1)(allow default)' \
// RUN: %swift-target-frontend \
// RUN: %target-swift-frontend \
// RUN: -disable-sandbox \
// RUN: -typecheck -verify \
// RUN: -swift-version 5 \
Expand Down
2 changes: 1 addition & 1 deletion test/Macros/macro_plugin_error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// RUN: %swift-build-c-plugin -o %t/mock-plugin %t/plugin.c

// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %target-swift-frontend \
// RUN: -typecheck -verify \
// RUN: -swift-version 5 -enable-experimental-feature Macros \
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \
Expand Down
4 changes: 2 additions & 2 deletions test/Macros/macro_plugin_server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// RUN: %S/Inputs/evil_macro_definitions.swift \
// RUN: -g -no-toolchain-stdlib-rpath

// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %target-swift-frontend \
// RUN: -typecheck -verify \
// RUN: -swift-version 5 -enable-experimental-feature Macros \
// RUN: -external-plugin-path %t/plugins#%swift-plugin-server \
Expand All @@ -31,7 +31,7 @@

// RUN: %FileCheck -strict-whitespace %s < %t/macro-expansions.txt

// RUN: not %swift-target-frontend \
// RUN: not %target-swift-frontend \
// RUN: -typecheck \
// RUN: -swift-version 5 \
// RUN: -external-plugin-path %t/plugins#%swift-plugin-server \
Expand Down