Phase 29: add project benchmarks, endurance stress and callback safety checks
This commit is contained in:
parent
ca6c869b0b
commit
afc049e2c8
14 changed files with 1032 additions and 43 deletions
|
|
@ -10,13 +10,26 @@ def main():
|
|||
p = argparse.ArgumentParser(description=__doc__)
|
||||
p.add_argument('--build-dir', type=Path, required=True)
|
||||
p.add_argument('--gui', action='store_true')
|
||||
p.add_argument('--plugin', type=Path, help='optional original test LADSPA fixture')
|
||||
p.add_argument('--rounds', type=int, default=1)
|
||||
a = p.parse_args()
|
||||
if not 1 <= a.rounds <= 1000:
|
||||
p.error('rounds must be 1..1000')
|
||||
workers = []
|
||||
try:
|
||||
for _ in range(2):
|
||||
workers.append(subprocess.Popen([sys.executable, '-c', 'x=1\nwhile True: x=(x*1664525+1013904223)&0xffffffff']))
|
||||
for name in ('test_realtime', 'test_reliability', 'test_scale'):
|
||||
subprocess.run([str((a.build_dir / name).resolve())], check=True, timeout=120)
|
||||
names = ['test_realtime', 'test_reliability', 'test_scale', 'test_portability',
|
||||
'test_project_diagnostics', 'test_soak']
|
||||
if (a.build_dir / 'test_backend').exists():
|
||||
names.append('test_backend')
|
||||
for iteration in range(a.rounds):
|
||||
for name in names:
|
||||
subprocess.run([str((a.build_dir / name).resolve())], check=True, timeout=120)
|
||||
if a.plugin:
|
||||
subprocess.run([str((a.build_dir / 'test_plugins').resolve()),
|
||||
str(a.plugin.resolve()), 'fixture'], check=True, timeout=120)
|
||||
print(f'Stress round {iteration + 1}/{a.rounds} passed.', flush=True)
|
||||
if a.gui:
|
||||
# The GUI suite pumps timers and forces redraw during engine/edit tests.
|
||||
subprocess.run(['xvfb-run', '-a', '-s', '-screen 0 1280x800x24',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue