AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.09k stars 356 forks source link

Add testminimal and a new testsuite case. #1832

Open johnfea opened 3 months ago

johnfea commented 3 months ago

Description

This PR adds a new testsuite case that seemed more convenient to add with a new test program instead of modifying testshade. However, if testshade can be easily modified to add this testsuite case then this PR might not be needed, however as is testshade doesn't even call "closure->as_comp()". Also, testrender doesn't support batched mode so that one can't be used for this testsuite case either without major modifications.

Additionally, OSL has no minimal sample and this PR adds one. I needed a minimal sample when I started using OSL.

Also, #1800 and #1801 need new testsuite cases that would be easy to add with testminimal but not necessarily so with testshade.

Tests

I added a new testsuite case "closure-string" that fails in AVX2 batched mode and also with non-batched icc/icx.

1831 should fix the failed test cases so this would need to be accepted after that one.

Checklist: