mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-09 03:49:21 -06:00
added Unix support for InvokeXTimes
This commit is contained in:
9
tools/InvokeXTimes.ps1
Normal file → Executable file
9
tools/InvokeXTimes.ps1
Normal file → Executable file
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Param(
|
||||
[Parameter(Position = 0, Mandatory = $false,
|
||||
HelpMessage = 'Specifies how many times all AutoTests should be invoked.')]
|
||||
@@ -69,7 +71,12 @@ function Write-HighlightedOutput {
|
||||
Write-Host "$($elapsed)ms" -ForegroundColor DarkGreen
|
||||
}
|
||||
|
||||
$tests = Get-ChildItem -Path *.exe -Recurse
|
||||
if ($PSVersionTable.Platform -ceq 'Unix') {
|
||||
$tests = find . -type f -and -executable -and -not -name '*.sh' -and -not -name 'lib*.so*'
|
||||
}
|
||||
else {
|
||||
$tests = Get-ChildItem -Path *.exe -Recurse
|
||||
}
|
||||
|
||||
for ($i = 1; $i -le $Count; $i++) {
|
||||
if ($i -gt 1) {
|
||||
|
||||
Reference in New Issue
Block a user