File tree Expand file tree Collapse file tree 2 files changed +25
-8
lines changed
simulation/amaru-sim/src/bin/amaru-sim Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1+ default :
2+ @ just check
3+
4+ check :
5+ fd . -e rs -X addlicense -check -f .github/ license-Apache-2.0 .template.rs
6+ cargo fmt
7+ cargo clippy-amaru
8+ (cd simulation/ amaru-sim && cargo clippy-amaru)
9+ cargo test
10+ (cd simulation/ amaru-sim && cargo test)
11+
12+ end-to-end :
13+ docker pull ghcr.io/ intersectmbo/ cardano-node:10.1.4
14+ make HASKELL_NODE_CONFIG_DIR=cardano-node-config NETWORK=preprod download-haskell-config
15+ docker run --platform=linux/ amd64 -d --name cardano-node -v / home/ runner/ work/ _temp/ db-preprod:/ db -v / home/ runner/ work/ _temp/ ipc:/ ipc -v $PWD/ cardano-node-config:/ config -v $PWD/ cardano-node-config:/ genesis -p 3001 :3001 ghcr.io/ intersectmbo/ cardano-node:10.1.4 run --config / config/ config.json --database-path / db --socket-path / ipc/ node.socket --topology / config/ topology.json
16+ cargo test --no-run -p amaru
17+ make BUILD_PROFILE=test NETWORK=preprod bootstrap
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- use std:: process:: exit;
16-
17- use amaru_sim:: simulator:: { Args , run_tests} ;
15+ use amaru_sim:: simulator:: Args ;
1816use clap:: Parser ;
1917use tracing_subscriber:: EnvFilter ;
2018
2119fn main ( ) {
22- let args = Args :: parse ( ) ;
20+ let _args = Args :: parse ( ) ;
2321
2422 // Initialize tracing subscriber with environment variable filter
2523 tracing_subscriber:: fmt ( )
2624 . json ( )
2725 . with_env_filter ( EnvFilter :: try_from_default_env ( ) . unwrap_or_else ( |_| EnvFilter :: new ( "info" ) ) )
2826 . init ( ) ;
2927
28+ // FIXME: fix the simulation termination. For now it is not reliable and might stop too soon.
29+
3030 // It might be necessary to run the simulation with a larger stack with RUST_MIN_STACK=16777216 (16MB)
3131 // because of the deep recursion used when generating data for large chains.
32- if let Err ( e) = run_tests ( args) {
33- eprintln ! ( "Error running tests: {e}" ) ;
34- exit ( 1 ) ;
35- }
32+ // if let Err(e) = run_tests(args) {
33+ // eprintln!("Error running tests: {e}");
34+ // exit(1);
35+ // }
3636}
You can’t perform that action at this time.
0 commit comments