<div dir="ltr">Hi,<div><br></div><div>First of all make sure you have latest trunk snapshot from <a href="http://swift.org">swift.org</a> and are using it:</div><div>$ export TOOLCHAINS=swift<br></div><div>$ xcrun --find swift</div><div>/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-12-15-a.xctoolchain/usr/bin/swift</div><div><br></div><div>This will build and test swiftpm on command line:</div><div>$ Utilities/bootstrap test</div><div><br></div><div>If you prefer Xcode:</div><div>$ Utilities/bootstrap --generate-xcodeproj</div><div>$ open SwiftPM.xcodeproj</div><div>$ cmd + u</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 16, 2016 at 6:19 AM, Jose Cheyo Jimenez via swift-build-dev <span dir="ltr">&lt;<a href="mailto:swift-build-dev@swift.org" target="_blank">swift-build-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am having trouble figuring out how to run the xctests from the Swift Package Manager Package itself.<br>
<br>
Some of the tests succeed but the majority fail. Thanks!<br>
<br>
STEPS:<br>
<br>
Cloned SPM from github<br>
Downloaded latest Swift Tool chain<br>
Generated Xcode project file (Xcode 8.2)<br>
On each target I added a global flag:<br>
SWIFT_EXEC=/Library/Developer/<wbr>Toolchains/swift-DEVELOPMENT-<wbr>SNAPSHOT-2016-12-13-a.<wbr>xctoolchain/usr/bin/swift<br>
Run Tests for SwiftPM.<br>
<br>
177 Tests fail.<br>
<br>
Sample error:<br>
<br>
../swift-package-manager/<wbr>Tests/FunctionalTests/<wbr>ClangModuleTests.swift: test failure:<br>
-[ClangModulesTestCase testCUsingCDep()] failed: failed - `swift build -c Debug&#39; failed:<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
swift-build-dev mailing list<br>
<a href="mailto:swift-build-dev@swift.org">swift-build-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-build-<wbr>dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ankit<br><br></div>
</div>