From 6d3d052a5786f6f4b35a2c0062c5ea26c63f794c Mon Sep 17 00:00:00 2001 From: Yun-Ting Date: Mon, 7 Aug 2023 16:44:40 -0700 Subject: [PATCH] rename --- .github/workflows/ci-aot.yml | 2 +- ...sert-publish-aot-testApp-warning-count.ps1 | 39 ------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 build/assert-publish-aot-testApp-warning-count.ps1 diff --git a/.github/workflows/ci-aot.yml b/.github/workflows/ci-aot.yml index 0630b5b3c74..c773d54552c 100644 --- a/.github/workflows/ci-aot.yml +++ b/.github/workflows/ci-aot.yml @@ -26,4 +26,4 @@ jobs: - name: publish AOT testApp, assert static analysis warning count, and run the app shell: pwsh - run: .\build\assert-publish-aot-testApp-warning-count.ps1 + run: .\build\test-aot-compatibility.ps1 diff --git a/build/assert-publish-aot-testApp-warning-count.ps1 b/build/assert-publish-aot-testApp-warning-count.ps1 deleted file mode 100644 index dc2cd7406fe..00000000000 --- a/build/assert-publish-aot-testApp-warning-count.ps1 +++ /dev/null @@ -1,39 +0,0 @@ -$rootDirectory = Split-Path $PSScriptRoot -Parent -$publishOutput = dotnet publish $rootDirectory\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj -nodeReuse:false /p:UseSharedCompilation=false - -$actualWarningCount = 0 - -foreach ($line in $($publishOutput -split "`r`n")) -{ - if ($line -like "*analysis warning IL*") - { - Write-Host $line - $actualWarningCount += 1 - } -} - -pushd $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/bin/Debug/net7.0/linux-x64 - - -Write-Host "Executing test App..." -./OpenTelemetry.AotCompatibility.TestApp -Write-Host "Finished executing test App" - -if ($LastExitCode -ne 0) -{ - Write-Host "There was an error while executing AotCompatibility Test App. LastExitCode is:", $LastExitCode -} - -popd - -Write-Host "Actual warning count is:", $actualWarningCount -$expectedWarningCount = 28 - -$testPassed = 0 -if ($actualWarningCount -ne $expectedWarningCount) -{ - $testPassed = 1 - Write-Host "Actual warning count:", actualWarningCount, "is not as expected. Expected warning count is:", $expectedWarningCount -} - -Exit $testPassed