#!/bin/bash

# Fail on any error.
set -e
# Display commands being run.
set -x

cd git/SwiftShader

git submodule update --init

mkdir -p build && cd build

if [[ -z "${REACTOR_BACKEND}" ]]; then
  REACTOR_BACKEND="LLVM"
fi

cmake .. "-DREACTOR_BACKEND=${REACTOR_BACKEND}"
make --jobs=$(nproc)

# Run the reactor unit tests.
./ReactorUnitTests

cd .. # Tests must be run from project root

# Run the OpenGL ES and Vulkan unit tests.
build/gles-unittests

if [ "${REACTOR_BACKEND}" != "Subzero" ]; then
  # Currently vulkan does not work with Subzero.
  build/vk-unittests
fi

#!/bin/bash

# Fail on any error.
set -e
# Display commands being run.
set -x

cd git/SwiftShader

git submodule update --init

mkdir -p build && cd build

if [[ -z "${REACTOR_BACKEND}" ]]; then
  REACTOR_BACKEND="LLVM"
fi

cmake .. "-DREACTOR_BACKEND=${REACTOR_BACKEND}"
make --jobs=$(nproc)

# Run the reactor unit tests.
./ReactorUnitTests

cd .. # Tests must be run from project root

# Run the OpenGL ES and Vulkan unit tests.
build/gles-unittests
build/vk-unittests

--- 
+++ 
@@ -25,8 +25,4 @@
 
 # Run the OpenGL ES and Vulkan unit tests.
 build/gles-unittests
-
-if [ "${REACTOR_BACKEND}" != "Subzero" ]; then
-  # Currently vulkan does not work with Subzero.
-  build/vk-unittests
-fi
+build/vk-unittests
Kokoro: Disable Vulkan tests for Subzero.

These currently do not work.

Bug: b/130343040
Change-Id: Ia97b611f44a5a048f324daa236e84e933a2c6b67
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29033
Presubmit-Ready: Ben Clayton <1f693eb7158dc33015048c09d6712f74dabddf79@google.com>
Reviewed-by: Chris Forbes <c3279c50043e18e9442c1ae071cafa0e7a4ca967@google.com>
Tested-by: Ben Clayton <1f693eb7158dc33015048c09d6712f74dabddf79@google.com>
