-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: rs-sdk tests refactoring (#1566)
- Loading branch information
Showing
14 changed files
with
239 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
#! /bin/bash -ex | ||
|
||
# This script generates test vectors for offline testing of the SDK. | ||
# Test vectors will be generated in the `tests/vectors` directory. | ||
# | ||
# Existing test vectors are removed before generating new ones. | ||
# | ||
# Generation of test vectors is done by running the SDK tests with the | ||
# `generate-test-vectors` feature enabled. | ||
|
||
CARGO_DIR="$(realpath "$(dirname "$0")/..")" | ||
|
||
pushd "$CARGO_DIR" | ||
|
||
rm -f "${CARGO_DIR}"/tests/vectors/* | ||
|
||
cargo test -p rs-sdk \ | ||
--no-default-features \ | ||
--features generate-test-vectors | ||
|
||
popd |
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,8 @@ | ||
# Configuration of tests and examples | ||
|
||
RS_SDK_PLATFORM_HOST="127.0.0.1" | ||
RS_SDK_PLATFORM_PORT=2443 | ||
|
||
RS_SDK_CORE_PORT=20002 | ||
RS_SDK_CORE_USER="someuser" | ||
RS_SDK_CORE_PASSWORD="verysecretpassword" |
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
Oops, something went wrong.