Skip to content

Commit db6f71e

Browse files
authored
Merge pull request #22 from aciidb0mb3r/fix-chdir
Rename --chdir to --package-path
2 parents 641971a + 77f0507 commit db6f71e

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

debugging-flags-SR85.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# RUN: touch %t.dir/tool/Package.swift
1010
# RUN: echo 'let foo = "bar"' > %t.dir/tool/main.swift
1111
# RUN: echo 'print(foo)' >> %t.dir/tool/main.swift
12-
# RUN: %{swift} build --chdir %t.dir/tool -v 2>&1 | tee %t.build-log
12+
# RUN: %{swift} build --package-path %t.dir/tool -v 2>&1 | tee %t.build-log
1313

1414
# RUN: echo 'breakpoint set -f main.swift -l 2' > %t.dir/lldb.script
1515
# RUN: echo 'run' >> %t.dir/lldb.script

example-package-dealer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# RUN: git clone https://github.com/apple/example-package-dealer %t.dir/dealer
1111

1212
# RUN: rm -rf %t.dir/dealer/.build
13-
# RUN: %{swift} build --chdir %t.dir/dealer 2>&1 | tee %t.build-log
13+
# RUN: %{swift} build --package-path %t.dir/dealer 2>&1 | tee %t.build-log
1414

1515
# Check the build log.
1616
#
@@ -38,7 +38,7 @@
3838

3939
# Verify that another 'swift build' does nothing.
4040
#
41-
# RUN: %{swift} build --chdir %t.dir/dealer 2>&1 | tee %t.rebuild-log
41+
# RUN: %{swift} build --package-path %t.dir/dealer 2>&1 | tee %t.rebuild-log
4242
# RUN: echo END-OF-INPUT >> %t.rebuild-log
4343
# RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
4444
#

swift-build-self-host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# RUN: cp -R %{swiftpm_srcdir} %t.dir/swiftpm
1313

1414
# RUN: rm -rf %t.dir/swiftpm/.build
15-
# RUN: %{swift} build --chdir %t.dir/swiftpm 2>&1 | tee %t.build-log
15+
# RUN: %{swift} build --package-path %t.dir/swiftpm 2>&1 | tee %t.build-log
1616

1717
# Check the build log.
1818
#

swift-build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: mkdir -p %t.dir/tool
66
// RUN: cp %s %t.dir/tool/Package.swift
77
// RUN: echo 'print("HI")' > %t.dir/tool/main.swift
8-
// RUN: %{swift} build --chdir %t.dir/tool -v 2>&1 | tee %t.build-log
8+
// RUN: %{swift} build --package-path %t.dir/tool -v 2>&1 | tee %t.build-log
99
//
1010
// Check the build log.
1111
//

swift-package-init-exec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
```
66
RUN: rm -rf %t.dir
77
RUN: mkdir -p %t.dir/Project
8-
RUN: %{swift} package --chdir %t.dir/Project init --type executable
9-
RUN: %{swift} build --chdir %t.dir/Project 2>&1 | tee %t.build-log
8+
RUN: %{swift} package --package-path %t.dir/Project init --type executable
9+
RUN: %{swift} build --package-path %t.dir/Project 2>&1 | tee %t.build-log
1010
```
1111

1212
## Check the build log.

swift-package-init-lib.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
```
77
RUN: rm -rf %t.dir
88
RUN: mkdir -p %t.dir/Project
9-
RUN: %{swift} package --chdir %t.dir/Project init --type library
10-
RUN: %{swift} build --chdir %t.dir/Project 2>&1 | tee %t.build-log
11-
RUN: %{swift} test --chdir %t.dir/Project 2>&1 | tee %t.test-log
9+
RUN: %{swift} package --package-path %t.dir/Project init --type library
10+
RUN: %{swift} build --package-path %t.dir/Project 2>&1 | tee %t.build-log
11+
RUN: %{swift} test --package-path %t.dir/Project 2>&1 | tee %t.test-log
1212
```
1313

1414
## Check the build log.

swift-package-with-spaces.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: cp %s %t.dir/more\ spaces/special\ tool/Package.swift
77
// RUN: echo 'foo()' > %t.dir/more\ spaces/special\ tool/main.swift
88
// RUN: echo 'func foo() { print("HI") }' > %t.dir/more\ spaces/special\ tool/some\ file.swift
9-
// RUN: %{swift} build --chdir %t.dir/more\ spaces/special\ tool -v 2>&1 | tee %t.build-log
9+
// RUN: %{swift} build --package-path %t.dir/more\ spaces/special\ tool -v 2>&1 | tee %t.build-log
1010
//
1111
// Check the build log.
1212
//

test-c-library-swiftpm/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# RUN: git -C %t.dir/z commit -m "Creating package"
2222
# RUN: git -C %t.dir/z tag 1.0.0
2323

24-
# RUN: %{swift} build --chdir %t.dir/testApp 2>&1 | tee %t.build-log
24+
# RUN: %{swift} build --package-path %t.dir/testApp 2>&1 | tee %t.build-log
2525

2626
# Check the build log.
2727
#
@@ -41,7 +41,7 @@
4141

4242
# Verify that another 'swift build' does nothing.
4343
#
44-
# RUN: %{swift} build --chdir %t.dir/testApp 2>&1 | tee %t.rebuild-log
44+
# RUN: %{swift} build --package-path %t.dir/testApp 2>&1 | tee %t.rebuild-log
4545
# RUN: echo END-OF-INPUT >> %t.rebuild-log
4646
# RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
4747
#

test-complex-xctest-package/test-xctest-package.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: rm -rf %t.dir
55
// RUN: mkdir -p %t.dir
66
// RUN: cp -r %S/SwiftCMixed %t.dir/
7-
// RUN: %{swift} test --chdir %t.dir/SwiftCMixed -v 2>&1 | tee %t.build-log
7+
// RUN: %{swift} test --package-path %t.dir/SwiftCMixed -v 2>&1 | tee %t.build-log
88
//
99
// Check the build log.
1010
//

test-foundation-package/test-foundation-package.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: mkdir -p %t.dir/tool
77
// RUN: cp %s %t.dir/tool/Package.swift
88
// RUN: cp %S/main.swift %t.dir/tool/main.swift
9-
// RUN: %{swift} build --chdir %t.dir/tool -v 2>&1 | tee %t.build-log
9+
// RUN: %{swift} build --package-path %t.dir/tool -v 2>&1 | tee %t.build-log
1010
//
1111
// Check the build log.
1212
//

0 commit comments

Comments
 (0)