mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-14 20:15:44 +00:00
Introduce test runner biolerplate (#2609)
* adds test-runner boilerplate * revert to master * Update node/test/runtime/Cargo.toml Co-authored-by: Andronik Ordian <write@reusable.software> * fix warning * use polkadot_development_config * remove vestigial code * ... * remove unused dependencies * adds simnet binary * adds simnet binary * merged with remote * dummy to check pipeline * add 2 docker files and a build cmd * adds logging * atempt to use binary from build host * fix simnet-binary * fix docker commands * switch branches * ... * update docker file * update the dockerfile 2 * add some message in the cheatsheet * add repo to chaches stage also * update paths * do only 1 stage build * add time when build cmd started * remove debugg commands * polkadot-simnet-substrate-working-version-v1 * reduce size of polkadot-simnet image * update test runner api * update test-runner * ... * revert to master * Merge branch 'master' of github.com:paritytech/polkadot into substrate-test-runner * bump impl version * remove unused imports, fix test * was_binary.to_vec() * Apply suggestions from code review Co-authored-by: Andronik Ordian <write@reusable.software> * ... * remove unused import * remove unused import * adds post upgrade test * dry code * revert spec_version * update Cargo.lock * tested and it works * compare runtime spec version * fix spaces, remove docker files * replace spaces with tabs * Update runtime/polkadot/src/lib.rs Co-authored-by: Andronik Ordian <write@reusable.software> * ... * revert Cargo.lock * bump cargo.lock Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: radupopa2010 <radupopa2010@yahoo.com> Co-authored-by: CI system <>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "polkadot-simnet-node"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
polkadot-simnet = { path = "../common" }
|
||||
@@ -0,0 +1,30 @@
|
||||
// Copyright 2020 Parity Technologies (UK) Ltd.
|
||||
// This file is part of Polkadot.
|
||||
|
||||
// Polkadot is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
|
||||
// Polkadot is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//! Binary used for simnet nodes, supports all runtimes, although only polkadot is implemented currently.
|
||||
//! This binary accepts all the cli args the polkadot binary does, Only difference is it uses
|
||||
//! manual-seal™ and babe for block authorship, it has a no-op verifier, so all blocks received over the network
|
||||
//! are imported and executed straight away. Block authorship/Finalization maybe done by calling the
|
||||
//! `engine_createBlock` & `engine_FinalizeBlock` rpc methods respectively.
|
||||
|
||||
use std::error::Error;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
polkadot_simnet::run(|node| async {
|
||||
node.until_shutdown().await;
|
||||
Ok(())
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user