SPIRV-Cross-Vulnerable/update_test_shaders.sh
Hans-Kristian Arntzen 6157bf3cae Add Windows support in Travis CI.
- Add new Windows support
- Use CMake/CTest instead of Make + shell scripts
- Use --parallel in CTest
- Fix CTest on Windows
- Cleanups in test_shaders.py
- Force specific commit for SPIRV-Headers
- Fix Inf/NaN odd-ball case by moving to ASM
2018-10-27 00:22:30 +02:00

22 lines
844 B
Bash
Executable File

#!/bin/bash
echo "Building spirv-cross"
make -j$(nproc)
export PATH="./external/glslang-build/output/bin:./external/spirv-tools-build/output/bin:.:$PATH"
echo "Using glslangValidation in: $(which glslangValidator)."
echo "Using spirv-opt in: $(which spirv-opt)."
./test_shaders.py shaders --update || exit 1
./test_shaders.py shaders --update --opt || exit 1
./test_shaders.py shaders-no-opt --update || exit 1
./test_shaders.py shaders-msl --update --msl || exit 1
./test_shaders.py shaders-msl --update --msl --opt || exit 1
./test_shaders.py shaders-msl-no-opt --update --msl || exit 1
./test_shaders.py shaders-hlsl --update --hlsl || exit 1
./test_shaders.py shaders-hlsl --update --hlsl --opt || exit 1
./test_shaders.py shaders-hlsl-no-opt --update --hlsl || exit 1
./test_shaders.py shaders-reflection --reflect --update || exit 1