summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim@hulthe.net>2024-04-09 15:41:53 +0200
committerJoakim Hulthe <joakim@hulthe.net>2024-04-10 10:30:48 +0200
commit8f4aa580012e2a3f54415e03900515e39cf3d500 (patch)
tree283073510a08a1da2d149ed0e58a9d40f1f6505d
parent506389afbc0d4458e42a02a9e63035178eae45b9 (diff)
downloadmullvadvpn-8f4aa580012e2a3f54415e03900515e39cf3d500.tar.xz
mullvadvpn-8f4aa580012e2a3f54415e03900515e39cf3d500.zip
Add list-tests command to test-manager
-rw-r--r--test/test-manager/src/main.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test-manager/src/main.rs b/test/test-manager/src/main.rs
index a708c3fe29..37d7227967 100644
--- a/test/test-manager/src/main.rs
+++ b/test/test-manager/src/main.rs
@@ -59,6 +59,9 @@ enum Commands {
keep_changes: bool,
},
+ /// List all tests and their priority.
+ ListTests,
+
/// Spawn a runner instance and run tests
RunTests {
/// Name of the runner config
@@ -198,6 +201,17 @@ async fn main() -> Result<()> {
Ok(())
}
+ Commands::ListTests => {
+ println!("priority\tname");
+ for test in tests::get_tests() {
+ println!(
+ "{priority:8}\t{name}",
+ name = test.name,
+ priority = test.priority.unwrap_or(0),
+ );
+ }
+ Ok(())
+ }
Commands::RunTests {
name,
display,