mirror of
https://github.com/actions/runner-images.git
synced 2026-01-04 01:03:18 +08:00
Update Ninja pester test (#12534)
This commit is contained in:
committed by
GitHub
parent
4bd4d1bbeb
commit
a4021ffba1
@@ -392,15 +392,16 @@ Describe "Kotlin" {
|
||||
}
|
||||
|
||||
Describe "Ninja" {
|
||||
New-item -Path "/tmp/ninjaproject" -ItemType Directory -Force
|
||||
Set-Location '/tmp/ninjaproject'
|
||||
BeforeAll {
|
||||
New-item -Path "/tmp/ninjaproject" -ItemType Directory -Force
|
||||
@'
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(NinjaTest NONE)
|
||||
'@ | Out-File -FilePath "./CMakeLists.txt"
|
||||
'@ | Out-File -FilePath "/tmp/ninjaproject/CMakeLists.txt"
|
||||
}
|
||||
|
||||
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" {
|
||||
@@ -411,4 +412,8 @@ project(NinjaTest NONE)
|
||||
It "Ninja" {
|
||||
"ninja --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
Remove-Item -Path "/tmp/ninjaproject" -Recurse -Force
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user