소스 검색

Add Binary Tests target

maxep 6 년 전
부모
커밋
e886958136
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Package.swift
  2. 1 0
      Tests/LinuxMain.swift

+ 4 - 0
Package.swift

@@ -5,6 +5,7 @@ import PackageDescription
 
 let package = Package(
     name: "KeePass",
+    platforms: [.iOS(.v13), .macOS(.v10_12)],
 
     products: [
         // The `Binary` manipulate bytes with ease.
@@ -46,6 +47,9 @@ let package = Package(
         .target(
             name: "Binary",
             dependencies: []),
+        .testTarget(
+            name: "BinaryTests",
+            dependencies: ["Binary"]),
 
         .target(
             name: "Crypto",

+ 1 - 0
Tests/LinuxMain.swift

@@ -4,5 +4,6 @@ import KeePassTests
 
 var tests = [XCTestCaseEntry]()
 tests += KeePassTests.allTests()
+tests += CryptoTests.allTests()
 tests += BinaryTests.allTests()
 XCTMain(tests)