Skip to content

SR-7309: Add tests for -static-executable on Linux #69

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

Closed
Closed
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
6 changes: 6 additions & 0 deletions test-static-executable/dispatch-static-executable.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Dispatch

let queue = DispatchQueue(label: "queuename", attributes: .concurrent)
queue.sync {
print("Dispatch")
}
9 changes: 9 additions & 0 deletions test-static-executable/dispatch-static-executable.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
REQUIRES: platform=Linux
RUN: rm -rf %t
RUN: mkdir -p %t
RUN: %{swiftc} -static-executable -lDispatchStubs -lbsd -o %t/dispatch_test %S/dispatch-static-executable.swift
RUN: %t/dispatch_test | %{FileCheck} %s
RUN: file %t/dispatch_test | %{FileCheck} %s --check-prefix=FILE
CHECK: Dispatch
FILE: , statically linked,

1 change: 1 addition & 0 deletions test-static-executable/static-executable.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("OK")
8 changes: 8 additions & 0 deletions test-static-executable/static-executable.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
REQUIRES: platform=Linux
RUN: rm -rf %t
RUN: mkdir -p %t
RUN: %{swiftc} -static-executable -o %t/static_executable %S/static-executable.swift
RUN: %t/static_executable | %{FileCheck} %s
RUN: file %t/static_executable | %{FileCheck} %s --check-prefix=FILE
CHECK: OK
FILE: , statically linked,