Files
boost-versions/tests/Common.Tests.ps1
2020-05-27 09:24:57 +03:00

16 lines
525 B
PowerShell

Describe "Common Tests" {
$BOOST_HEADERS = Join-Path -Path ${env:BOOST_ROOT} -ChildPath "boost"
It "Check that symlinks points to existing files" {
Get-ChildItem $BOOST_HEADERS -File -Recurse | Where-Object { $_.Target } | ForEach-Object {
$_.Target | Should -Exist
}
}
It "Check if there is no invalid symlinks" {
Get-ChildItem $BOOST_HEADERS -Recurse -File | ForEach-Object {
Get-Content $_.FullName -Raw | Should -Not -BeNullOrEmpty
}
}
}