Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions simulation/amaru-sim/src/bin/amaru-sim/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::process::exit;

use amaru_sim::simulator::{Args, run_tests};
use amaru_sim::simulator::Args;
use clap::Parser;
use tracing_subscriber::EnvFilter;

fn main() {
let args = Args::parse();
let _args = Args::parse();

// Initialize tracing subscriber with environment variable filter
tracing_subscriber::fmt()
.json()
.with_env_filter(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")))
.init();

// FIXME: fix the simulation termination. For now it is not reliable and might stop too soon.

// It might be necessary to run the simulation with a larger stack with RUST_MIN_STACK=16777216 (16MB)
// because of the deep recursion used when generating data for large chains.
if let Err(e) = run_tests(args) {
eprintln!("Error running tests: {e}");
exit(1);
}
// if let Err(e) = run_tests(args) {
// eprintln!("Error running tests: {e}");
// exit(1);
// }
}
Loading