Update Ninja pester test (#12534)
This commit is contained in:
@@ -392,15 +392,16 @@ Describe "Kotlin" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Describe "Ninja" {
|
Describe "Ninja" {
|
||||||
|
BeforeAll {
|
||||||
New-item -Path "/tmp/ninjaproject" -ItemType Directory -Force
|
New-item -Path "/tmp/ninjaproject" -ItemType Directory -Force
|
||||||
Set-Location '/tmp/ninjaproject'
|
|
||||||
@'
|
@'
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(NinjaTest NONE)
|
project(NinjaTest NONE)
|
||||||
'@ | Out-File -FilePath "./CMakeLists.txt"
|
'@ | Out-File -FilePath "/tmp/ninjaproject/CMakeLists.txt"
|
||||||
|
}
|
||||||
|
|
||||||
It "Make a simple ninja project" {
|
It "Make a simple ninja project" {
|
||||||
"cmake -GNinja /tmp/ninjaproject" | Should -ReturnZeroExitCode
|
"cmake -GNinja -S /tmp/ninjaproject -B /tmp/ninjaproject" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "build.ninja file should exist" {
|
It "build.ninja file should exist" {
|
||||||
@@ -411,4 +412,8 @@ project(NinjaTest NONE)
|
|||||||
It "Ninja" {
|
It "Ninja" {
|
||||||
"ninja --version" | Should -ReturnZeroExitCode
|
"ninja --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AfterAll {
|
||||||
|
Remove-Item -Path "/tmp/ninjaproject" -Recurse -Force
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user