Convert CodeQL Windows test to a Pester test.

This commit is contained in:
Chris Gavin
2020-09-09 15:50:49 +01:00
parent ff346a80bd
commit 81942c8299
2 changed files with 9 additions and 1 deletions

View File

@@ -19,4 +19,5 @@ $UnGzipedCodeQLBundlePath = Join-Path $DownloadDirectoryPath "codeql-bundle.tar"
Extract-7Zip -Path $UnGzipedCodeQLBundlePath -DestinationPath $ExtractionDirectory
# Test that the tool has been extracted successfully.
& (Join-Path $ExtractionDirectory "codeql" "codeql.exe") version
$Env:CODEQL_EXTRACTION_DIRECTORY = $ExtractionDirectory
Invoke-PesterTests -TestFile "Tools" -TestName "CodeQLBundle"

View File

@@ -41,6 +41,13 @@ Describe "CMake" {
}
}
Describe "CodeQLBundle" {
It "CodeQLBundle" {
$CodeQLPath = Join-Path $Env:CODEQL_EXTRACTION_DIRECTORY -ChildPath "codeql" | Join-Path -ChildPath "codeql.exe"
"$CodeQLPath version" | Should -ReturnZeroExitCode
}
}
Describe "R" {
It "Rscript" {
"Rscript --version" | Should -ReturnZeroExitCode