Kokoro: add builds with REACTOR_EMIT_DEBUG_INFO and REACTOR_EMIT_PRINT_LOCATION This will help ensure we don't break these configs. Bug: b/159633249 Change-Id: Ida7074a649c10a1a5b35ce82b4f8438b65bdb3eb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/45970 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Nicolas Capens <nicolascapens@google.com> Tested-by: Antonio Maiorano <amaiorano@google.com>
diff --git a/tests/kokoro/gcp_ubuntu/continuous.sh b/tests/kokoro/gcp_ubuntu/continuous.sh index f721635..481ec8e 100755 --- a/tests/kokoro/gcp_ubuntu/continuous.sh +++ b/tests/kokoro/gcp_ubuntu/continuous.sh
@@ -52,3 +52,17 @@ cmake --build . --target ReactorUnitTests -- -j $(nproc) cd .. build/ReactorUnitTests --gtest_filter=ReactorUnitTests.Print* + +if [ "${LLVM_VERSION}" -ne "10.0" ]; then + # Incrementally build with REACTOR_EMIT_DEBUG_INFO to ensure it builds + cd build + cmake .. "-DREACTOR_EMIT_DEBUG_INFO=1" + cmake --build . --target ReactorUnitTests -- -j $(nproc) + cd .. + + # Incrementally build with REACTOR_EMIT_PRINT_LOCATION to ensure it builds + cd build + cmake .. "-DREACTOR_EMIT_PRINT_LOCATION=1" + cmake --build . --target ReactorUnitTests -- -j $(nproc) + cd .. +fi
diff --git a/tests/kokoro/gcp_windows/continuous.bat b/tests/kokoro/gcp_windows/continuous.bat index c8a96b2..c4098ed 100644 --- a/tests/kokoro/gcp_windows/continuous.bat +++ b/tests/kokoro/gcp_windows/continuous.bat
@@ -48,6 +48,18 @@ cd %SRC% || goto :error build\Debug\ReactorUnitTests.exe --gtest_filter=ReactorUnitTests.Print* || goto :error +IF NOT "%LLVM_VERSION%"=="10.0" ( + REM Incrementally build with REACTOR_EMIT_DEBUG_INFO to ensure it builds + cd %SRC%\build || goto :error + cmake "-DREACTOR_EMIT_DEBUG_INFO=1" .. || goto :error + cmake --build . --target ReactorUnitTests || goto :error + + REM Incrementally build with REACTOR_EMIT_PRINT_LOCATION to ensure it builds + cd %SRC%\build || goto :error + cmake "-REACTOR_EMIT_PRINT_LOCATION=1" .. || goto :error + cmake --build . --target ReactorUnitTests || goto :error +) + exit /b 0 :error