From ace4e334bc5fb299d2890b5e3f35dfd84ea32606 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 30 Nov 2021 16:34:52 -0500 Subject: Use test-server on CI (#2034) * #include an absolute path didn't work - because paths were taken to always be relative. * Vary what SpawnType is used, if one isn't explicitly set. * Terminate on linux if exec fails. * Use a more sophisticated sleeping mechanism. * Attempt to make CI tests to work on aarch64 debug. Small fixes. --- tools/slang-test/options.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/slang-test/options.h') diff --git a/tools/slang-test/options.h b/tools/slang-test/options.h index 3b62c903b..cf86bc901 100644 --- a/tools/slang-test/options.h +++ b/tools/slang-test/options.h @@ -38,7 +38,8 @@ protected: enum class SpawnType { - UseExe, + Default, ///< Default - typically uses shared library, on CI may use TestServer + UseExe, ///< Tests using executable (for example slangc) UseSharedLibrary, ///< Runs testing in process (a crash tan take down the UseTestServer, ///< Use the test server to isolate testing UseFullyIsolatedTestServer, ///< Uses a test server for each test (slow!) @@ -78,11 +79,9 @@ struct Options bool dumpOutputOnFailure = false; // Set the default spawn type to use - // Set to SpawnType::UseProxy, if isolation of test execution is desired. // Having tests isolated, slows down testing considerably, so using UseSharedLibrary is the most // desirable default usually. - SpawnType defaultSpawnType = SpawnType::UseSharedLibrary; - //SpawnType defaultSpawnType = SpawnType::UseProxy; + SpawnType defaultSpawnType = SpawnType::Default; // kind of output to generate TestOutputMode outputMode = TestOutputMode::Default; -- cgit v1.2.3