Skip to content

Commit

Permalink
Ammend to previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 6, 2023
1 parent 00bb69a commit 6d721e2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tools/metacall-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ function Sub-Build {
echo "Running the tests..."
#ctest "-j$((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)" --timeout 5400 --output-on-failure -C $BUILD_TYPE

# TODO: Remove this, used for debugging
$currentPath="$(Get-Location)"
$env:LOADER_LIBRARY_PATH="$currentPath/$BUILD_TYPE"
$env:LOADER_SCRIPT_PATH="$currentPath/$BUILD_TYPE/scripts"
$env:CONFIGURATION_PATH="$currentPath/$BUILD_TYPE/configurations/global.json"
$env:SERIAL_LIBRARY_PATH="$currentPath/$BUILD_TYPE"
$env:DETOUR_LIBRARY_PATH="$currentPath/$BUILD_TYPE"
& 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe' -i .\$BUILD_TYPE\metacall-python-test.exe +sls

if (-not $?) {
$RecentExitCode = $LASTEXITCODE
echo "Failure in tests with exit code: $RecentExitCode"

# TODO: Remove this, used for debugging
$currentPath="$(Get-Location)"
$env:LOADER_LIBRARY_PATH="$currentPath/$BUILD_TYPE"
$env:LOADER_SCRIPT_PATH="$currentPath/$BUILD_TYPE/scripts"
$env:CONFIGURATION_PATH="$currentPath/$BUILD_TYPE/configurations/global.json"
$env:SERIAL_LIBRARY_PATH="$currentPath/$BUILD_TYPE"
$env:DETOUR_LIBRARY_PATH="$currentPath/$BUILD_TYPE"
& 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe' -i .\$BUILD_TYPE\metacall-python-test.exe +sls

$Global:ExitCode = $RecentExitCode
Exit $ExitCode
}
Expand Down

0 comments on commit 6d721e2

Please sign in to comment.