diff --git a/Cargo.lock b/Cargo.lock index 717be5c..18c27a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2371,6 +2371,30 @@ dependencies = [ "generic-array", ] +[[package]] +name = "integration_tests" +version = "0.1.0" +dependencies = [ + "accounts", + "actix", + "actix-web", + "anyhow", + "clap", + "common", + "env_logger", + "log", + "node_core", + "node_rpc", + "node_runner", + "sequencer_core", + "sequencer_rpc", + "sequencer_runner", + "serde", + "serde_json", + "tokio", + "toml 0.7.8", +] + [[package]] name = "inventory" version = "0.3.20" diff --git a/Cargo.toml b/Cargo.toml index f2bcab8..47fcb98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ members = [ "sequencer_core", "common", "sc_core", + "integration_tests", ] [workspace.dependencies] diff --git a/integration_tests/Cargo.toml b/integration_tests/Cargo.toml new file mode 100644 index 0000000..fcc7cc6 --- /dev/null +++ b/integration_tests/Cargo.toml @@ -0,0 +1,44 @@ +[package] +name = "integration_tests" +version = "0.1.0" +edition = "2024" + +[dependencies] +anyhow.workspace = true +serde_json.workspace = true +env_logger.workspace = true +log.workspace = true +serde.workspace = true +actix.workspace = true + +actix-web.workspace = true +tokio.workspace = true +toml.workspace = true + +[dependencies.clap] +features = ["derive", "env"] +workspace = true + +[dependencies.sequencer_rpc] +path = "../sequencer_rpc" + +[dependencies.sequencer_core] +path = "../sequencer_core" + +[dependencies.sequencer_runner] +path = "../sequencer_runner" + +[dependencies.node_rpc] +path = "../node_rpc" + +[dependencies.node_core] +path = "../node_core" + +[dependencies.node_runner] +path = "../node_runner" + +[dependencies.common] +path = "../common" + +[dependencies.accounts] +path = "../accounts" diff --git a/integration_tests/src/lib.rs b/integration_tests/src/lib.rs new file mode 100644 index 0000000..c539bd4 --- /dev/null +++ b/integration_tests/src/lib.rs @@ -0,0 +1,5 @@ +use anyhow::Result; + +pub async fn main_tests_runner() -> Result<()> { + Ok(()) +} diff --git a/integration_tests/src/main.rs b/integration_tests/src/main.rs new file mode 100644 index 0000000..5df600a --- /dev/null +++ b/integration_tests/src/main.rs @@ -0,0 +1,16 @@ +use anyhow::Result; + +use integration_tests::main_tests_runner; + +pub const NUM_THREADS: usize = 8; + +fn main() -> Result<()> { + actix::System::with_tokio_rt(|| { + tokio::runtime::Builder::new_multi_thread() + .worker_threads(NUM_THREADS) + .enable_all() + .build() + .unwrap() + }) + .block_on(main_tests_runner()) +}