File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,7 @@ If your install of Swift is located at `/swift` and you wish to install XCTest i
45
45
To run the tests on Linux, use the ` --test ` option:
46
46
47
47
``` sh
48
- ./build_script.py \
49
- --swiftc=" /swift/usr/bin/swiftc" \
50
- --build-dir=" /tmp/XCTest_build" \
51
- --test
48
+ ./build_script.py --swiftc=" /swift/usr/bin/swiftc" --test
52
49
```
53
50
54
51
To run the tests on OS X, build and run the ` SwiftXCTestFunctionalTests ` target in the Xcode project. You may also run them via the command line:
Original file line number Diff line number Diff line change 9
9
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
#
11
11
12
- import os , subprocess , argparse
12
+ import argparse
13
+ import os
14
+ import subprocess
15
+ import tempfile
13
16
14
17
SOURCE_DIR = os .path .dirname (os .path .abspath (__file__ ))
15
18
@@ -28,9 +31,10 @@ def main():
28
31
metavar = "PATH" ,
29
32
required = True )
30
33
parser .add_argument ("--build-dir" ,
31
- help = "path to the output build directory" ,
34
+ help = "path to the output build directory. If not "
35
+ "specified, a temporary directory is used" ,
32
36
metavar = "PATH" ,
33
- required = True )
37
+ default = tempfile . mkdtemp () )
34
38
parser .add_argument ("--swift-build-dir" , help = "deprecated, do not use" )
35
39
parser .add_argument ("--arch" , help = "deprecated, do not use" )
36
40
parser .add_argument ("--module-install-path" ,
You can’t perform that action at this time.
0 commit comments