Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann committed Oct 1, 2023
1 parent 9fe2c6b commit 2134e15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/end-to-end/package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func fileExists(atPath path: String) -> Bool {
print("Creating project...")
let cargoSwiftInit = Process()
let projectName = "swift-project"
let libName = "swift_project"
let packageName = "SwiftProject"
cargoSwiftInit.executableURL = URL(fileURLWithPath: "/usr/bin/env")
cargoSwiftInit.arguments = ["cargo", "swift", "init", projectName, "-y", "--silent"]
Expand Down Expand Up @@ -52,7 +53,7 @@ guard dirExists(atPath: "\(projectName)/\(packageName)/Sources/\(packageName)")
error("No \"\(packageName)/\" directory found in sources directory")
exit(1)
}
guard fileExists(atPath: "\(projectName)/\(packageName)/Sources/\(packageName)/lib.swift") else {
guard fileExists(atPath: "\(projectName)/\(packageName)/Sources/\(packageName)/\(libName).swift") else {
error("No lib.swift file found in module")
exit(1)
}
Expand Down

0 comments on commit 2134e15

Please sign in to comment.