Compare commits

...

3 Commits

Author SHA1 Message Date
Ivan Avdeev
d62e8b0a3a render: update brush2 gold images
Supposedly fixing the dynamic polylight shifted polylight array a bit,
thus affecting random seed for samples.

The new gold images are stable, but different from the old ones
numerically.
2023-11-30 11:50:06 -05:00
Ivan Avdeev
f7a3134ed4 render: add test for dynamic func_water polygon lights
https://github.com/w23/xash3d-fwgs/issues/672
2023-11-30 11:42:40 -05:00
Ivan Avdeev
c40bfde9c7 render: determine available tests from present save files
also, filter tests to run by regular expressions
2023-11-30 11:40:53 -05:00
22 changed files with 60 additions and 30 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -5,6 +5,7 @@ import concurrent.futures
import json
import os
import pathlib
import re
import shutil
import subprocess
@@ -13,17 +14,11 @@ imagecompare = f'{ROOT}/imagecompare'
WORKDIR = f'{ROOT}/work'
REPORT_ROOT = f'{ROOT}' # FIXME should be workdir?
# TODO load all saves from the save/ dir
# TODO rename to <map>_<description>_<issue(opt)>
saves = [
'brush2_01',
'brush_01',
'brush_02',
'c0a0d_emissive',
'light_01',
'additive_cullback',
'c1a3_fan_material_669',
]
saves = []
for (_, _, files) in os.walk(os.path.join(ROOT, 'save')):
for file in files:
saves.append(file.removesuffix('.sav').removeprefix('rendertest_'))
channels = {
'full': '',
@@ -42,10 +37,12 @@ def test_list(arg: str) -> [str]:
items = arg.split(',')
tests = []
for item in items:
# TODO regex?
if not item in saves:
raise argparse.ArgumentTypeError(f'Test {item} is not available. Available tests are: {saves}')
tests.append(item)
r = re.compile(item)
for save in saves:
if r.match(save):
tests.append(save)
if not tests:
raise argparse.ArgumentTypeError(f'No tests match {item}. Available tests are: {saves}')
return tests
parser = argparse.ArgumentParser(description='Generate scripts and makefiles for rendertest')

Binary file not shown.