Skip to content

Commit

Permalink
chore(code): Rename malachite-cli to malachite-test-cli (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
romac authored Dec 16, 2024
1 parent 08a19d8 commit 8d71152
Show file tree
Hide file tree
Showing 20 changed files with 37 additions and 37 deletions.
52 changes: 26 additions & 26 deletions code/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resolver = "2"
members = [
"crates/app",
"crates/app-channel",
"crates/cli",
"crates/codec",
"crates/config",
"crates/consensus",
Expand All @@ -26,6 +25,7 @@ members = [

# Test
"crates/test",
"crates/test/cli",
"crates/test/mbt",
"crates/test/mempool",
"crates/network/test",
Expand Down Expand Up @@ -62,7 +62,7 @@ debug = true
malachite-engine = { version = "0.1.0", path = "crates/engine" }
malachite-app = { version = "0.1.0", path = "crates/app" }
malachite-app-channel = { version = "0.1.0", path = "crates/app-channel" }
malachite-cli = { version = "0.1.0", path = "crates/cli" }
malachite-test-cli = { version = "0.1.0", path = "crates/test/cli" }
malachite-codec = { version = "0.1.0", path = "crates/codec" }
malachite-config = { version = "0.1.0", path = "crates/config" }
malachite-consensus = { version = "0.1.0", path = "crates/consensus" }
Expand Down
2 changes: 1 addition & 1 deletion code/crates/starknet/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
workspace = true

[dependencies]
malachite-cli = { workspace = true }
malachite-test-cli = { workspace = true }
malachite-config = { workspace = true }
malachite-starknet-host = { workspace = true }

Expand Down
8 changes: 4 additions & 4 deletions code/crates/starknet/app/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use color_eyre::eyre::eyre;
use malachite_cli::args::{Args, Commands};
use malachite_cli::{logging, runtime};
use malachite_starknet_host::node::StarknetNode;
use malachite_test_cli::args::{Args, Commands};
use malachite_test_cli::{logging, runtime};
use tracing::{error, info, trace};

// Use jemalloc on Linux
Expand Down Expand Up @@ -103,10 +103,10 @@ mod tests {
use clap::Parser;
use color_eyre::eyre;
use color_eyre::eyre::eyre;
use malachite_cli::args::{Args, Commands};
use malachite_cli::cmd::init::*;
use malachite_config::LoggingConfig;
use malachite_starknet_host::node::StarknetNode;
use malachite_test_cli::args::{Args, Commands};
use malachite_test_cli::cmd::init::*;

#[test]
fn running_init_creates_config_files() -> eyre::Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion code/crates/starknet/host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ workspace = true

[dev-dependencies]
tempfile.workspace = true
malachite-cli.workspace = true
malachite-test-cli.workspace = true
4 changes: 2 additions & 2 deletions code/crates/starknet/host/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fn test_starknet_node() {
};

// Create configuration files
use malachite_cli::*;
use malachite_test_cli::*;

let priv_keys = new::generate_private_keys(&node, 1, true);
let pub_keys = priv_keys.iter().map(|pk| node.get_public_key(pk)).collect();
Expand All @@ -197,7 +197,7 @@ fn test_starknet_node() {
// Run the node for a few seconds
const TIMEOUT: u64 = 3;
use tokio::time::{timeout, Duration};
let rt = malachite_cli::runtime::build_runtime(node.config.runtime).unwrap();
let rt = malachite_test_cli::runtime::build_runtime(node.config.runtime).unwrap();
let result = rt.block_on(async { timeout(Duration::from_secs(TIMEOUT), node.run()).await });

// Check that the node did not quit before the timeout.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "malachite-cli"
name = "malachite-test-cli"
version.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8d71152

Please sign in to comment.