From b6de9a0091ab6a7414b46c7eb50f25b9512fb455 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 15 Mar 2021 12:48:20 -0400 Subject: Test Doc System (#1754) * #include an absolute path didn't work - because paths were taken to always be relative. * Use capability system in docs. Simplify how requirements/availability is produced. * Small fixes in output of availablity. * Updated stdlib doc. * Small improvements. * Added doc test type. Improved readability of straight .md text Made -doc option output to diagnostic stream. * Add test for checking requirements info is correctly extracted. Co-authored-by: Tim Foley --- tests/doc/doc-req.slang.expected | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/doc/doc-req.slang.expected (limited to 'tests/doc/doc-req.slang.expected') diff --git a/tests/doc/doc-req.slang.expected b/tests/doc/doc-req.slang.expected new file mode 100644 index 000000000..51421cdc7 --- /dev/null +++ b/tests/doc/doc-req.slang.expected @@ -0,0 +1,18 @@ +result code = 0 +standard error = { +-------------------------------------------------------------------------------- +# `doThing` + +## Signature + +``` +void doThing(); +``` + +## Availability + +**GLSL** `GL_EXT_NiftyExtension`, `SPIR-V 1.3` **HLSL** `NVAPI` **CPP** **CUDA** `SM 2.0` + +} +standard output = { +} -- cgit v1.2.3