From 37e458057e90d4acab6a27f638e6b8365940dda9 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Tue, 10 Oct 2023 12:56:38 +0200 Subject: [PATCH] fix, re-enable more test that were fixed in the meantime --- cmd/tools/modules/testing/common.v | 34 ++++++++++++++++-------------- cmd/tools/vtest-self.v | 9 ++++---- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index 1452931b311fa3..e1b6ee5a15161a 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -219,6 +219,24 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession { 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 == '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 linux { + if testing.github_job != 'tcc' { + skip_files << 'examples/c_interop_wkhtmltopdf.v' // needs installation of wkhtmltopdf from https://github.com/wkhtmltopdf/packaging/releases + skip_files << 'examples/call_v_from_python/test.v' // the example only makes sense to be compiled, when python is installed + skip_files << 'examples/call_v_from_ruby/test.v' // the example only makes sense to be compiled, when ruby is installed + // the ttf_test.v is not interactive, but needs X11 headers to be installed, which is done only on ubuntu-tcc for now + skip_files << 'vlib/x/ttf/ttf_test.v' + skip_files << 'vlib/vweb/vweb_app_test.v' // imports the `sqlite` module, which in turn includes sqlite3.h + } + } + $if !macos { + skip_files << 'examples/macos_tray/tray.v' } if testing.github_job == 'ubuntu-docker-musl' { skip_files << 'vlib/net/openssl/openssl_compiles_test.v' @@ -226,11 +244,6 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession { 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 != 'misc-tooling' { // 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 @@ -246,17 +259,6 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession { skip_files << 'examples/sokol/sounds/wav_player.v' skip_files << 'examples/sokol/sounds/simple_sin_tones.v' } - if testing.github_job != 'ubuntu-tcc' { - skip_files << 'examples/c_interop_wkhtmltopdf.v' // needs installation of wkhtmltopdf from https://github.com/wkhtmltopdf/packaging/releases - skip_files << 'examples/call_v_from_python/test.v' // the example only makes sense to be compiled, when python is installed - skip_files << 'examples/call_v_from_ruby/test.v' // the example only makes sense to be compiled, when ruby is installed - // the ttf_test.v is not interactive, but needs X11 headers to be installed, which is done only on ubuntu-tcc for now - skip_files << 'vlib/x/ttf/ttf_test.v' - skip_files << 'vlib/vweb/vweb_app_test.v' // imports the `sqlite` module, which in turn includes sqlite3.h - } - $if !macos { - skip_files << 'examples/macos_tray/tray.v' - } // examples/wasm/mandelbrot/mandelbrot.v requires special compilation flags: `-b wasm -os browser`, skip it for now: skip_files << 'examples/wasm/mandelbrot/mandelbrot.v' diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 36a1a40b2c38ec..c5151ddc8dfb68 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -350,11 +350,10 @@ fn main() { tsession.skip_files << 'vlib/db/pg/pg_orm_test.v' } - if github_job == 'windows-tcc' { - tsession.skip_files << 'vlib/v/tests/project_with_cpp_code/compiling_cpp_files_with_a_cplusplus_compiler_test.v' - // TODO: fix these ASAP - tsession.skip_files << 'vlib/net/tcp_test.v' - tsession.skip_files << 'vlib/net/udp_test.v' + $if windows { + if github_job == 'tcc' { + tsession.skip_files << 'vlib/v/tests/project_with_cpp_code/compiling_cpp_files_with_a_cplusplus_compiler_test.v' + } } if !os.exists('cmd/tools/builders/wasm_builder') {