xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / Tests / XToolTests / XcodeTests.swift
XcodeTests.swift11 lines · 378 BRaw
| 1 | import Testing |
| 2 | import Foundation |
| 3 | |
| 4 | @Test(.requiresXcode) func validateXcode() { |
| 5 | let xcode = TestXcode.current() |
| 6 | let swift = xcode.appending(path: "Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift") |
| 7 | #expect( |
| 8 | FileManager.default.fileExists(atPath: swift.path), |
| 9 | "Invalid or unrecognized layout for Xcode.app at \(xcode.path)" |
| 10 | ) |
| 11 | } |