From 62b1e58a72773fad43e555d7de1bfeaa3f5c6762 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 26 Oct 2021 21:42:11 -0400 Subject: Runs all gfx unit tests through a 'test proxy' (#1981) * #include an absolute path didn't work - because paths were taken to always be relative. * Support for test proxy. * Turn on testing using proxy. * Don't pass sink into check of downstream compiler. * Small change to kick off build. * Remove register specification on transcendental. * Increase poll timeout. Small improvements to proxy. * Disable gfx unit tests. * Put test runner in shared library mode by default. * Change comment. Kick off another CI test. * Small edit to kick off builds. * Run unit tests on proxy. * Turn on using proxy for now. * Enable swift shader. * Fix typo. Add exception support. * Make the default spwan type SharedLibrary Use isolation for gfx unit tests. * Update slang-binaries. * Fix typo. * Report unit test output information. --- source/core/unix/slang-unix-process-util.cpp | 4 ++-- source/slang/slang-check.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/core/unix/slang-unix-process-util.cpp b/source/core/unix/slang-unix-process-util.cpp index 24107fab3..af49eec37 100644 --- a/source/core/unix/slang-unix-process-util.cpp +++ b/source/core/unix/slang-unix-process-util.cpp @@ -146,9 +146,9 @@ namespace Slang { return SLANG_FAIL; } - // Set a timeout of twenty seconds; + // Set a timeout of 100 seconds; // we really shouldn't wait too long... - int pollTimeout = 20000; + int pollTimeout = 100000; int pollResult = poll(pollInfos, pollInfoCount, pollTimeout); if (pollResult <= 0) { diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp index 74e30cf8d..e52baaa84 100644 --- a/source/slang/slang-check.cpp +++ b/source/slang/slang-check.cpp @@ -93,10 +93,10 @@ namespace Slang if (type == PassThroughMode::GenericCCpp) { // try testing for availability on all C/C++ compilers - getOrLoadDownstreamCompiler(PassThroughMode::Clang, sink); - getOrLoadDownstreamCompiler(PassThroughMode::Gcc, sink); - getOrLoadDownstreamCompiler(PassThroughMode::VisualStudio, sink); - getOrLoadDownstreamCompiler(PassThroughMode::LLVM, sink); + getOrLoadDownstreamCompiler(PassThroughMode::Clang, nullptr); + getOrLoadDownstreamCompiler(PassThroughMode::Gcc, nullptr); + getOrLoadDownstreamCompiler(PassThroughMode::VisualStudio, nullptr); + getOrLoadDownstreamCompiler(PassThroughMode::LLVM, nullptr); } // Mark that we have tried to load it -- cgit v1.2.3