Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jul 2, 2024
1 parent a9d9895 commit 9a2177e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions JAMTests/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ let package = Package(
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "JAMTests",
resources: [.copy("../../jamtestvectors")]
name: "JAMTests"
// resources: [.copy("../../jamtestvectors")]
),
.testTarget(
name: "JAMTestsTests",
Expand Down
4 changes: 2 additions & 2 deletions JAMTests/Sources/JAMTests/TestLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import Foundation
#endif

enum TestLoader {
static func discover(forPath path: String) throws {
static func getTestFiles(forPath path: String) throws -> [String] {
let prefix = Bundle.module.bundlePath + "/jamtestvectors/\(path)"
print("Discovering tests in \(prefix)")
let files = try FileManager.default.contentsOfDirectory(atPath: prefix)
var scaleFiles = files.filter { $0.hasSuffix(".scale") }
scaleFiles.sort()
print(scaleFiles)
return scaleFiles.map { prefix + "/" + $0 }
}
}

0 comments on commit 9a2177e

Please sign in to comment.