diff options
Diffstat (limited to 'source/compiler-core/slang-test-server-protocol.h')
| -rw-r--r-- | source/compiler-core/slang-test-server-protocol.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/source/compiler-core/slang-test-server-protocol.h b/source/compiler-core/slang-test-server-protocol.h new file mode 100644 index 000000000..8b61c4b39 --- /dev/null +++ b/source/compiler-core/slang-test-server-protocol.h @@ -0,0 +1,51 @@ +#ifndef SLANG_COMPILER_CORE_TEST_PROTOCOL_H +#define SLANG_COMPILER_CORE_TEST_PROTOCOL_H + +#include "../../slang.h" +#include "../../slang-com-helper.h" +#include "../../slang-com-ptr.h" + +#include "../core/slang-rtti-info.h" +#include "slang-json-value.h" + +namespace TestServerProtocol { + +using namespace Slang; + +struct ExecuteUnitTestArgs +{ + String moduleName; + String testName; + uint32_t enabledApis; + + static const UnownedStringSlice g_methodName; + static const StructRttiInfo g_rttiInfo; +}; + +struct ExecuteToolTestArgs +{ + String toolName; ///< The name of the tool (will be a shared library typically - like render-test). Doesn't need -tool suffix. + List<String> args; ///< Arguments passed to the tool during exectution + + static const UnownedStringSlice g_methodName; + static const StructRttiInfo g_rttiInfo; +}; + +struct QuitArgs +{ + static const UnownedStringSlice g_methodName; +}; + +struct ExecutionResult +{ + String stdOut; + String stdError; + int32_t result = SLANG_OK; + int32_t returnCode = 0; ///< As returned if invoked as command line + + static const StructRttiInfo g_rttiInfo; +}; + +} // namespace Slang + +#endif // SLANG_COMPILER_CORE_TEST_PROTOCOL_H |
