generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web5 test vectors setup & integration (#5)
- Loading branch information
Showing
18 changed files
with
91 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "web5-spec"] | ||
path = Tests/Web5TestVectors/web5-spec | ||
url = https://github.com/TBD54566975/web5-spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
bootstrap: | ||
# Initialize submodules | ||
git submodule update --init | ||
# Initialize sparse checkout in the `web5-spec` submodule | ||
git -C Tests/Web5TestVectors/web5-spec config core.sparseCheckout true | ||
# Sparse checkout only the `test-vectors` directory from `web5-spec` | ||
git -C Tests/Web5TestVectors/web5-spec sparse-checkout set test-vectors | ||
# Update submodules so they sparse checkout takes effect | ||
git submodule update | ||
format: | ||
swift format --in-place --recursive . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
# web5-swift | ||
|
||
WIP! | ||
WIP! | ||
|
||
# Prerequisites | ||
|
||
## Cloning | ||
|
||
After cloning this repository, run: | ||
``` | ||
make bootstrap | ||
``` | ||
|
||
This will configure the repository's submodules properly, and ensure you're all set to go! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import SwiftTestReporter | ||
import XCTest | ||
|
||
@testable import Web5 | ||
|
||
/// This test class must be executed first. The `AAA_` prefix helps ensure this, | ||
/// but it is not guaranteed. Make sure that this is alphabetically the first test | ||
/// class in the `Web5TestVectors` target! | ||
/// | ||
/// This is necessary to allow `SwiftTestReporterInit` to create a `tests.xml`. | ||
/// See https://github.com/allegro/swift-junit/issues/12#issuecomment-725264315 | ||
class AAA_JUnitReportInitializer: XCTestCase { | ||
override class func setUp() { | ||
_ = TestObserver() | ||
super.setUp() | ||
} | ||
|
||
// No-op test function to be interpreted as a test case | ||
func testInit() {} | ||
} |
This file was deleted.
Oops, something went wrong.
125 changes: 0 additions & 125 deletions
125
Tests/Web5TestVectors/Resources/crypto_ed25519/verify.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.