diff --git a/src/tests/disk.rs b/src/benchmarks/disk.rs similarity index 100% rename from src/tests/disk.rs rename to src/benchmarks/disk.rs diff --git a/src/tests/mod.rs b/src/benchmarks/mod.rs similarity index 100% rename from src/tests/mod.rs rename to src/benchmarks/mod.rs diff --git a/src/tests/network.rs b/src/benchmarks/network.rs similarity index 100% rename from src/tests/network.rs rename to src/benchmarks/network.rs diff --git a/src/main.rs b/src/main.rs index b9adf71..663424a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -mod tests; +mod benchmarks; mod text; use clap::{Args, Parser, Subcommand}; @@ -16,10 +16,10 @@ struct Cli { #[derive(Subcommand)] enum Commands { - // disk tests subcommand + // disk benchmarks subcommand #[clap(name = "disk", about = "Hard drive and SSD benchmarks.")] Disk(Disk), - // network tests subcommand + // network benchmarks subcommand #[clap(name = "network", about = "Test various aspects of your network.")] Net(Net), } @@ -105,25 +105,25 @@ fn main() { DiskCommands::ReadSeqTest { tempfile, size } => { for i in 0..cli.loopcount { println!("Test run number {}.", i + 1); - tests::disk::disk_read_seq_test(tempfile, size); + benchmarks::disk::disk_read_seq_test(tempfile, size); } }, DiskCommands::ReadRandTest { tempfile, size } => { for i in 0..cli.loopcount { println!("Test run number {}.", i + 1); - tests::disk::disk_read_rand_test(tempfile, size); + benchmarks::disk::disk_read_rand_test(tempfile, size); } }, DiskCommands::WriteSeqTest { tempfile, size } => { for i in 0..cli.loopcount { println!("Test run number {}.", i + 1); - tests::disk::disk_write_seq_test(tempfile, size); + benchmarks::disk::disk_write_seq_test(tempfile, size); } }, DiskCommands::WriteRandTest { tempfile, size } => { for i in 0..cli.loopcount { println!("Test run number {}.", i + 1); - tests::disk::disk_write_rand_test(tempfile, size); + benchmarks::disk::disk_write_rand_test(tempfile, size); } }, } @@ -132,13 +132,13 @@ fn main() { NetCommands::Ping { host, count } => { for i in 0..cli.loopcount { println!("Test run number {}.", i + 1); - tests::network::ping_host(host, count); + benchmarks::network::ping_host(host, count); } }, NetCommands::Bandwidth { download, output } => { for i in 0..cli.loopcount { println!("Test run number {}.", i + 1); - tests::network::bandwidth_test(download, output); + benchmarks::network::bandwidth_test(download, output); } }, },