Skip to content

Commit 01b3a7c

Browse files
committed
Fixes tests for vcpkg
1 parent 39314ef commit 01b3a7c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ci/do_ci.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,13 @@ switch ($action) {
401401
exit $exit
402402
}
403403

404+
$ALL_DLL_FILES = Get-ChildItem -Path "./*.dll" -Recurse
405+
$ALL_DLL_DIRS = $(foreach ($dll_file in $ALL_DLL_FILES) {
406+
$dll_file.Directory.FullName
407+
}) | Sort-Object | Get-Unique
408+
$env:PATH = ($ALL_DLL_DIRS -Join [IO.Path]::PathSeparator) + [IO.Path]::PathSeparator + $env:PATH
409+
Write-Output "PATH=$env:PATH"
410+
404411
ctest -C Debug
405412
$exit = $LASTEXITCODE
406413
if ($exit -ne 0) {
@@ -501,6 +508,13 @@ switch ($action) {
501508
exit $exit
502509
}
503510

511+
$ALL_DLL_FILES = Get-ChildItem -Path "./*.dll" -Recurse
512+
$ALL_DLL_DIRS = $(foreach ($dll_file in $ALL_DLL_FILES) {
513+
$dll_file.Directory.FullName
514+
}) | Sort-Object | Get-Unique
515+
$env:PATH = ($ALL_DLL_DIRS -Join [IO.Path]::PathSeparator) + [IO.Path]::PathSeparator + $env:PATH
516+
Write-Output "PATH=$env:PATH"
517+
504518
ctest -C Debug
505519
$exit = $LASTEXITCODE
506520
if ($exit -ne 0) {

0 commit comments

Comments
 (0)