write engine logs, and also json report
also, RADV_PERFTEST=rt is no longer needed, mesa enables rt by default now
This commit is contained in:
parent
9d4dfa472a
commit
32acc7d835
@ -118,14 +118,15 @@ def render():
|
|||||||
print('Running xash3d...')
|
print('Running xash3d...')
|
||||||
mkdir_p(f'{args.xash_dir}/valve/rendertest')
|
mkdir_p(f'{args.xash_dir}/valve/rendertest')
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['RADV_PERFTEST'] = 'rt'
|
|
||||||
env['LD_LIBRARY_PATH'] = '.'
|
env['LD_LIBRARY_PATH'] = '.'
|
||||||
subprocess.run([f'{args.xash_dir}/xash3d', '-ref', 'vk',
|
|
||||||
'-nowriteconfig', '-nosound', '-log',
|
with open(f'{WORKDIR}/xash-stdout.log', 'wb') as stdout, open(f'{WORKDIR}/xash-stderr.log', 'wb') as stderr:
|
||||||
#'-dev', '2', '-vkverboselogs',
|
result = subprocess.run([f'{args.xash_dir}/xash3d', '-ref', 'vk',
|
||||||
'-width', '1280', '-height', '800',
|
'-nowriteconfig', '-nosound', '-log',
|
||||||
'+exec', 'rendertest.script'],
|
'-dev', '2',# '-vkverboselogs',
|
||||||
env=env, check=True)
|
'-width', '1280', '-height', '800',
|
||||||
|
'+exec', 'rendertest.script'],
|
||||||
|
env=env, check=True, stdout=stdout, stderr=stderr)
|
||||||
|
|
||||||
def compare_one(test: str, channel: str, image_base: str, image_gold: str, image_test: str, image_diff: str):
|
def compare_one(test: str, channel: str, image_base: str, image_gold: str, image_test: str, image_diff: str):
|
||||||
result = subprocess.run([imagecompare, image_gold, image_test, image_diff], text=True, capture_output=True)
|
result = subprocess.run([imagecompare, image_gold, image_test, image_diff], text=True, capture_output=True)
|
||||||
@ -163,7 +164,7 @@ def compare():
|
|||||||
diffs.append(executor.submit(compare_one, test, channel, image_base, image_gold, image_test, image_diff))
|
diffs.append(executor.submit(compare_one, test, channel, image_base, image_gold, image_test, image_diff))
|
||||||
|
|
||||||
results = [diff.result() for diff in diffs]
|
results = [diff.result() for diff in diffs]
|
||||||
# json.dump(results, open(f'{WORKDIR}/data.json', 'w'))
|
json.dump(results, open(f'{WORKDIR}/test_results.json', 'w'))
|
||||||
jsons = json.dumps(results)
|
jsons = json.dumps(results)
|
||||||
with open(f'{WORKDIR}/data.js', 'w') as js:
|
with open(f'{WORKDIR}/data.js', 'w') as js:
|
||||||
js.write(f'"use strict";\nconst data = {jsons};\n')
|
js.write(f'"use strict";\nconst data = {jsons};\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user