diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index cefda5d5d0..1fb1b23ae5 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -28,7 +28,16 @@ pub const test_only_fn = os.getenv('VTEST_ONLY_FN').split_any(',') pub const is_node_present = os.execute('node --version').exit_code == 0 -pub const all_processes = os.execute('ps ax').output.split_any('\r\n') +pub const all_processes = get_all_processes() + +fn get_all_processes() []string { + $if windows { + // TODO + return [] + } $else { + return os.execute('ps ax').output.split_any('\r\n') + } +} pub struct TestSession { pub mut: @@ -178,13 +187,24 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession { } } $if windows { - // TODO: remove when closures on windows are supported + // TODO: remove when closures on windows are supported... skip_files << 'examples/pendulum-simulation/animation.v' skip_files << 'examples/pendulum-simulation/full.v' skip_files << 'examples/pendulum-simulation/parallel.v' skip_files << 'examples/pendulum-simulation/parallel_with_iw.v' skip_files << 'examples/pendulum-simulation/sequential.v' } + if testing.github_job == 'ubuntu-docker-musl' { + skip_files << 'vlib/net/openssl/openssl_compiles_test.v' + } + if testing.github_job == 'tests-sanitize-memory-clang' { + skip_files << 'vlib/net/openssl/openssl_compiles_test.v' + } + if testing.github_job == 'windows-tcc' { + // TODO: fix these by adding declarations for the missing functions in the prebuilt tcc + skip_files << 'vlib/net/mbedtls/mbedtls_compiles_test.v' + skip_files << 'vlib/net/ssl/ssl_compiles_test.v' + } if testing.github_job != 'sokol-shaders-can-be-compiled' { // These examples need .h files that are produced from the supplied .glsl files, // using by the shader compiler tools in https://github.com/floooh/sokol-tools-bin/archive/pre-feb2021-api-changes.tar.gz