Renamed the 'tests' module to 'benchmarks' to better reflect what's in that module
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2022-08-07 09:39:26 -04:00
parent d967fc0920
commit 983b1cbeef
4 changed files with 9 additions and 9 deletions

View File

@ -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);
}
},
},