Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit e08b72f

Browse files
committed
SPM
1 parent 56a9862 commit e08b72f

File tree

5 files changed

+63
-3
lines changed

5 files changed

+63
-3
lines changed

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.0.1
1+
5.0.0

Crypto.xcodeproj/project.pbxproj

-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
219E0C5D1FC55E8000F80DF1 /* Tests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
110110
219E0C5E1FC55E8000F80DF1 /* Crypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Crypto.h; sourceTree = "<group>"; };
111111
219E0C5F1FC55E8000F80DF1 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
112-
219E0C611FC55E8000F80DF1 /* LinuxMain.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LinuxMain.swift; sourceTree = "<group>"; };
113112
219E0C631FC55E8000F80DF1 /* HMACTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HMACTests.swift; sourceTree = "<group>"; };
114113
219E0C641FC55E8000F80DF1 /* DigestTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DigestTests.swift; sourceTree = "<group>"; };
115114
21FD8C5B1AE6B03F008DCDBA /* Crypto.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Crypto.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -276,7 +275,6 @@
276275
219E0C601FC55E8000F80DF1 /* Tests */ = {
277276
isa = PBXGroup;
278277
children = (
279-
219E0C611FC55E8000F80DF1 /* LinuxMain.swift */,
280278
219E0C621FC55E8000F80DF1 /* CryptoTests */,
281279
);
282280
path = Tests;

Package.swift

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// swift-tools-version:5.0.0
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "Crypto",
7+
products: [
8+
.library(name: "Crypto", targets: ["Crypto"])
9+
],
10+
targets: [
11+
.target(name: "Crypto"),
12+
.testTarget(name: "CryptoTests", dependencies: ["Crypto"])
13+
]
14+
)
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#if !canImport(ObjectiveC)
2+
import XCTest
3+
4+
extension DigestTests {
5+
// DO NOT MODIFY: This is autogenerated, use:
6+
// `swift test --generate-linuxmain`
7+
// to regenerate.
8+
static let __allTests__DigestTests = [
9+
("testMD2", testMD2),
10+
("testMD4", testMD4),
11+
("testMD5", testMD5),
12+
("testSHA1", testSHA1),
13+
("testSHA224", testSHA224),
14+
("testSHA256", testSHA256),
15+
("testSHA384", testSHA384),
16+
("testSHA512", testSHA512),
17+
]
18+
}
19+
20+
extension HMACTests {
21+
// DO NOT MODIFY: This is autogenerated, use:
22+
// `swift test --generate-linuxmain`
23+
// to regenerate.
24+
static let __allTests__HMACTests = [
25+
("testMD5", testMD5),
26+
("testSHA1", testSHA1),
27+
("testSHA224", testSHA224),
28+
("testSHA256", testSHA256),
29+
("testSHA384", testSHA384),
30+
("testSHA512", testSHA512),
31+
]
32+
}
33+
34+
public func __allTests() -> [XCTestCaseEntry] {
35+
return [
36+
testCase(DigestTests.__allTests__DigestTests),
37+
testCase(HMACTests.__allTests__HMACTests),
38+
]
39+
}
40+
#endif

Tests/LinuxMain.swift

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import XCTest
2+
3+
import CryptoTests
4+
5+
var tests = [XCTestCaseEntry]()
6+
tests += CryptoTests.__allTests()
7+
8+
XCTMain(tests)

0 commit comments

Comments
 (0)