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 9
9
# RUN: touch %t.dir/tool/Package.swift
10
10
# RUN: echo 'let foo = "bar"' > %t.dir/tool/main.swift
11
11
# 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
13
13
14
14
# RUN: echo 'breakpoint set -f main.swift -l 2' > %t.dir/lldb.script
15
15
# RUN: echo 'run' >> %t.dir/lldb.script
Original file line number Diff line number Diff line change 10
10
# RUN: git clone https://github.com/apple/example-package-dealer %t.dir/dealer
11
11
12
12
# 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
14
14
15
15
# Check the build log.
16
16
#
38
38
39
39
# Verify that another 'swift build' does nothing.
40
40
#
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
42
42
# RUN: echo END-OF-INPUT >> %t.rebuild-log
43
43
# RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
44
44
#
Original file line number Diff line number Diff line change 12
12
# RUN: cp -R %{swiftpm_srcdir} %t.dir/swiftpm
13
13
14
14
# 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
16
16
17
17
# Check the build log.
18
18
#
Original file line number Diff line number Diff line change 5
5
// RUN: mkdir -p %t.dir/tool
6
6
// RUN: cp %s %t.dir/tool/Package.swift
7
7
// 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
9
9
//
10
10
// Check the build log.
11
11
//
Original file line number Diff line number Diff line change 5
5
```
6
6
RUN: rm -rf %t.dir
7
7
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
10
10
```
11
11
12
12
## Check the build log.
Original file line number Diff line number Diff line change 6
6
```
7
7
RUN: rm -rf %t.dir
8
8
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
12
12
```
13
13
14
14
## Check the build log.
Original file line number Diff line number Diff line change 6
6
// RUN: cp %s %t.dir/more\ spaces/special\ tool/Package.swift
7
7
// RUN: echo 'foo()' > %t.dir/more\ spaces/special\ tool/main.swift
8
8
// 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
10
10
//
11
11
// Check the build log.
12
12
//
Original file line number Diff line number Diff line change 21
21
# RUN: git -C %t.dir/z commit -m "Creating package"
22
22
# RUN: git -C %t.dir/z tag 1.0.0
23
23
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
25
25
26
26
# Check the build log.
27
27
#
41
41
42
42
# Verify that another 'swift build' does nothing.
43
43
#
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
45
45
# RUN: echo END-OF-INPUT >> %t.rebuild-log
46
46
# RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
47
47
#
Original file line number Diff line number Diff line change 4
4
// RUN: rm -rf %t.dir
5
5
// RUN: mkdir -p %t.dir
6
6
// 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
8
8
//
9
9
// Check the build log.
10
10
//
Original file line number Diff line number Diff line change 6
6
// RUN: mkdir -p %t.dir/tool
7
7
// RUN: cp %s %t.dir/tool/Package.swift
8
8
// 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
10
10
//
11
11
// Check the build log.
12
12
//
You can’t perform that action at this time.
0 commit comments