Prechádzať zdrojové kódy

Add Binary Tests target

maxep 6 rokov pred
rodič
commit
e886958136
2 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  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)