Skip to content

make swiftpm integration tests less brittle #96

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
merged 1 commit into from
Feb 17, 2022
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
4 changes: 3 additions & 1 deletion swift-package-init-exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
RUN: rm -rf %t.dir
RUN: mkdir -p %t.dir/Project
RUN: %{swift-package} --package-path %t.dir/Project init --type executable
RUN: rm -rf %t.dir/Project/Sources/Project/*
RUN: echo "print(\"Hello, World!\")" >%t.dir/Project/Sources/Project/main.swift
RUN: %{swift-build} --package-path %t.dir/Project 2>&1 | tee %t.build-log
```

Expand All @@ -29,7 +31,7 @@ RUN: %{FileCheck} --check-prefix CHECK-TOOL-OUTPUT --input-file %t.out %s
```

```
CHECK-TOOL-OUTPUT: Hello, world!
CHECK-TOOL-OUTPUT: Hello, World!
```

## Check there were no compile errors or warnings.
Expand Down
1 change: 1 addition & 0 deletions swift-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
RUN: rm -rf %t.dir
RUN: mkdir -p %t.dir/secho
RUN: %{swift-package} --package-path %t.dir/secho init --type executable
RUN: rm -rf %t.dir/secho/Sources/secho/*
RUN: echo "import Foundation; print(CommandLine.arguments.dropFirst().joined(separator: \" \"))" >%t.dir/secho/Sources/secho/main.swift
RUN: %{swift-run} --package-path %t.dir/secho secho 1 "two" 2>&1 | tee %t.run-log
```
Expand Down