Update test-runner api (#9302)

* better apis

* ....

* ...

* Genensis -> UnimportedGenesis

* adds rpc for runtime upgrades

* simplify test-runner

* clean up test-runner api

* remove unused imports

* fix doc-test

* fix line width

* correct Node::clean

* correct Node::clean

* add deny rules

* remove unused extern crates

* remove mutex from node

* Update test-utils/test-runner/Cargo.toml

Co-authored-by: Andronik Ordian <write@reusable.software>

* adds docs, removes Node::clean

Co-authored-by: Andronik Ordian <write@reusable.software>
Co-authored-by: Seun Lanlege <seun@parity.io>
This commit is contained in:
Seun Lanlege
2021-07-12 16:56:12 +01:00
committed by GitHub
parent 47b7edde68
commit 2f31602896
11 changed files with 550 additions and 539 deletions
@@ -16,6 +16,20 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
/// Use this to override host functions.
/// eg
/// ```rust
/// use test_runner::override_host_functions;
/// pub struct SignatureVerificationOverride;
///
/// impl sp_wasm_interface::HostFunctions for SignatureVerificationOverride {
/// fn host_functions() -> Vec<&'static dyn sp_wasm_interface::Function> {
/// override_host_functions!(
/// "ext_crypto_ecdsa_verify_version_1", EcdsaVerify,
/// )
/// }
/// }
/// ```
#[macro_export]
macro_rules! override_host_functions {
($($fn_name:expr, $name:ident,)*) => {{