Skip to content

Commit

Permalink
Test new compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden authored Mar 3, 2024
1 parent 14b81bc commit fafc231
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/msw-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,47 @@ jobs:
Write-Host "Failure count is: " + $failures.Value
exit 1
}
cd ..
cd ..
cmake --build . --target clean
cmake -DTE_LONG_DOUBLE = 1 ./
msbuild ${{ env.testrunner }}.sln
cd bin\Debug
./${{ env.testrunner }} --reporter JUnit::out=${{ env.outfile }}
cat ${{ env.outfile }}
$FileContent = Get-Content ${{ env.outfile }}
$errors = (Select-String -InputObject $FileContent -Pattern 'errors="([0-9]+)"' | % { $($_.matches.groups[1]) } )
$failures = (Select-String -InputObject $FileContent -Pattern 'failures="([0-9]+)"' | % { $($_.matches.groups[1]) } )
if ($errors.Value -gt 0)
{
Write-Host "Error count is: " + $errors.Value
exit 1
}
if ($failures.Value -gt 0)
{
Write-Host "Failure count is: " + $failures.Value
exit 1
}
cd ..
cd ..
cmake --build . --target clean
cmake -DTE_BITWISE_OPERATORS = 1 ./
msbuild ${{ env.testrunner }}.sln
cd bin\Debug
./${{ env.testrunner }} --reporter JUnit::out=${{ env.outfile }}
cat ${{ env.outfile }}
$FileContent = Get-Content ${{ env.outfile }}
$errors = (Select-String -InputObject $FileContent -Pattern 'errors="([0-9]+)"' | % { $($_.matches.groups[1]) } )
$failures = (Select-String -InputObject $FileContent -Pattern 'failures="([0-9]+)"' | % { $($_.matches.groups[1]) } )
if ($errors.Value -gt 0)
{
Write-Host "Error count is: " + $errors.Value
exit 1
}
if ($failures.Value -gt 0)
{
Write-Host "Failure count is: " + $failures.Value
exit 1
}

0 comments on commit fafc231

Please sign in to comment.