We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run_all.ps1
run_all_headless.ps1
1 parent 89765f8 commit 96d7b7fCopy full SHA for 96d7b7f
examples/run_all.ps1
@@ -0,0 +1,3 @@
1
+cargo build --bins
2
+@(Get-ChildItem -Directory -Name) | %{cargo run --bin $_}
3
+rm pipeline-caching\pipeline_cache.bin
examples/run_all_headless.ps1
@@ -0,0 +1,13 @@
+foreach ($example in Get-ChildItem -Directory -Name) {
+ $proc = Start-Process -FilePath "cargo" -ArgumentList "run --bin $example" -NoNewWindow -PassThru
+
4
+ $timeouted = $null
5
6
+ Wait-Process -InputObject $proc -Timeout 15 -ErrorAction SilentlyContinue -ErrorVariable timeouted
7
8
+ if ($timeouted) {
9
+ kill $proc
10
+ } elseif ($proc.ExitCode -ne 0) {
11
+ Exit $proc.ExitCode
12
+ }
13
+}
0 commit comments