got c11_sanity.c working (both segregated and single-header)

from now on I'm assuming both will work.
This commit is contained in:
ed
2025-02-11 20:26:03 -05:00
parent f41658efd8
commit 90836817e9
4 changed files with 24 additions and 5 deletions
+17 -1
View File
@@ -217,7 +217,7 @@ if ($tests)
Push-Location $path_root
if ( Test-Path( $executable ) ) {
write-host "`nRunning tests/c11_sanity.exe"
write-host "`nRunning tests/c11_sanity_segregated.exe (segregated)"
$time_taken = Measure-Command { & $executable
| ForEach-Object {
write-host `t $_ -ForegroundColor Green
@@ -226,6 +226,22 @@ if ($tests)
write-host "`ntest/code_sanity completed in $($time_taken.TotalMilliseconds) ms"
}
Pop-Location
$compiler_args += ($flag_define + "TEST_SINGLEHEADER")
$result = build-simple $path_build $includes $compiler_args $linker_args $unit $executable
Push-Location $path_root
if ( Test-Path( $executable ) ) {
write-host "`nRunning tests/c11_sanity.exe (single header)"
$time_taken = Measure-Command { & $executable
| ForEach-Object {
write-host `t $_ -ForegroundColor Green
}
}
write-host "`ntest/code_sanity completed in $($time_taken.TotalMilliseconds) ms"
}
Pop-Location
}
Pop-Location # $path_root