File tree Expand file tree Collapse file tree 12 files changed +17
-17
lines changed
test-complex-xctest-package Expand file tree Collapse file tree 12 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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#
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#
Original file line number Diff line number Diff line change 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#
Original file line number Diff line number Diff line change 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//
Original file line number Diff line number Diff line change 55```
66RUN: rm -rf %t.dir
77RUN: 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.
Original file line number Diff line number Diff line change 66```
77RUN: rm -rf %t.dir
88RUN: 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.
Original file line number Diff line number Diff line change 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//
Original file line number Diff line number Diff line change 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#
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#
Original file line number Diff line number Diff line change 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//
Original file line number Diff line number Diff line change 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//
You can’t perform that action at this time.
0 commit comments