Disable xcrun validation on Travis for now.
This commit is contained in:
parent
5dd7c04195
commit
70743b9be4
@ -24,5 +24,5 @@ script:
|
||||
- make -j2
|
||||
- PATH=./glslang/StandAlone:./SPIRV-Tools/tools:$PATH
|
||||
- ./test_shaders.py shaders
|
||||
- ./test_shaders.py --metal shaders-msl
|
||||
- ./test_shaders.py --metal shaders-msl --force-no-external-validation
|
||||
- ./test_shaders.py --hlsl shaders-hlsl
|
||||
|
@ -12,6 +12,7 @@ import shutil
|
||||
import argparse
|
||||
import codecs
|
||||
|
||||
force_no_external_validation = False
|
||||
|
||||
def parse_stats(stats):
|
||||
m = re.search('([0-9]+) work registers', stats)
|
||||
@ -276,6 +277,8 @@ def test_shader_msl(stats, shader, update, keep):
|
||||
spirv, msl = cross_compile_msl(joined_path)
|
||||
regression_check(shader, msl, update, keep)
|
||||
os.remove(spirv)
|
||||
|
||||
if not force_no_external_validation:
|
||||
validate_shader_msl(shader)
|
||||
|
||||
def test_shader_hlsl(stats, shader, update, keep):
|
||||
@ -325,6 +328,9 @@ def main():
|
||||
parser.add_argument('--hlsl',
|
||||
action = 'store_true',
|
||||
help = 'Test HLSL backend.')
|
||||
parser.add_argument('--force-no-external-validation',
|
||||
action = 'store_true',
|
||||
help = 'Disable all external validation.')
|
||||
args = parser.parse_args()
|
||||
|
||||
if not args.folder:
|
||||
@ -334,6 +340,9 @@ def main():
|
||||
if args.metal:
|
||||
print_msl_compiler_version()
|
||||
|
||||
global force_no_external_validation
|
||||
force_no_external_validation = args.force_no_external_validation
|
||||
|
||||
test_shaders(args.folder, args.update, args.malisc, args.keep, 'metal' if args.metal else ('hlsl' if args.hlsl else 'glsl'))
|
||||
if args.malisc:
|
||||
print('Stats in stats.csv!')
|
||||
|
Loading…
Reference in New Issue
Block a user