diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-20 00:51:17 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-20 00:51:44 +0800 |
| commit | 8749087c5035fbe4c0dce0893a39e0e2265fa130 (patch) | |
| tree | 7c759374f3dde5df40f0be17cf6abe18c12a3f07 | |
| parent | be586e42eadc1185e8bf0b1088bc978cec81b33e (diff) | |
Update test-all.sh
| -rw-r--r-- | dev_tools/scripts/test-all.ps1 | 8 | ||||
| -rw-r--r-- | dev_tools/scripts/test-all.sh | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/dev_tools/scripts/test-all.ps1 b/dev_tools/scripts/test-all.ps1 new file mode 100644 index 0000000..231698a --- /dev/null +++ b/dev_tools/scripts/test-all.ps1 @@ -0,0 +1,8 @@ +$starting_dir = Get-Location +Get-ChildItem -Recurse -Filter "Cargo.toml" | ForEach-Object { + $project_dir = $_.DirectoryName + Push-Location $project_dir + cargo test + Pop-Location +} +Set-Location $starting_dir diff --git a/dev_tools/scripts/test-all.sh b/dev_tools/scripts/test-all.sh new file mode 100644 index 0000000..b387463 --- /dev/null +++ b/dev_tools/scripts/test-all.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +find . -name "Cargo.toml" -type f | while read -r cargo_file; do + project_dir=$(dirname "$cargo_file") + (cd "$project_dir" && cargo test) +done |
