You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tools/slang-test/README.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,17 @@ The different APIs are
56
56
* DirectD3D11 -dx11,d3d11
57
57
58
58
59
-
It may also be necessary to have the working directory the root directory of the slang distribution - in the example above this would be "E:\slang\".
59
+
It may also be necessary to have the working directory the root directory of the slang distribution - in the example above this would be "E:\slang\".
60
+
61
+
## Unit tests
62
+
63
+
In addition to the above test tools, there is also `slang-unit-test-tool`, which is invoked as in the following example.
64
+
65
+
```
66
+
slang-test slang-unit-test-tool/byteEncode
67
+
```
68
+
69
+
This will run the `byteEncode` test. The unit tests are located in the https://github.com/shader-slang/slang/tree/master/tools/slang-unit-test directory, and defined with macros like `SLANG_UNIT_TEST(byteEncode)`.
0 commit comments