upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/test_run_gpu_tests_python_assembler.py
diff options
context:
space:
mode:
authord7ommy <abnalstlll@gmail.com>2026-11-26 01:16:14 +0300
committerd7ommy <abnalstlll@gmail.com>2026-11-26 01:16:14 +0300
commit6d2b626281e27a3946fef2d4c828af476d83784e (patch)
tree9306eff74f6c926827a98e41d5d29434a17ad5dd /tests/test_run_gpu_tests_python_assembler.py
parentcb699500acb724f4ffa2873ee61b578e9d3e8627 (diff)
bvh_tri_probe: harden --oracle/--kernel, upfront atomic JSON writes, and oracle error handling (BVH-TRI-PROBE-JSON-AND-CLI)
- Validate --oracle tokens and reject empty or whitespace components upfront. - Add --hw-arch CLI option, validating and plumbing it to runner.open_oracle(). - Validate and split --kernel arguments with comma expansion, rejecting empty tokens. - Add validate_json_path() to reject invalid paths, directory paths, and non-directory parents upfront. - Add write_report() to write JSON atomically with LF line endings and proper file mode. - Robustly resolve oracle family (handling ValueError) and safely close oracle resources. - Guard against empty or missing hardware oracle results. - Add comprehensive test coverage in tests/test_bvh_tri_probe.py (27 tests passing). Tested: - python -I tests/test_bvh_tri_probe.py (27/27 passed) - python -I tools/bvh_tri_probe.py --self-test (passed) - python -I scripts/check_no_game_data.py tools/bvh_tri_probe.py tests/test_bvh_tri_probe.py (clean) AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions