From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 6042A9C8CCC; Thu, 1 Feb 2024 19:32:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6042A9C8CCC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1706805168; bh=iaNNjYEyAq6AzlaNTwaJw+euZaR8z+WVSayrTKYrDTQ=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=gjQpVXL++hkO2S0v6L+iP4tCG689Sxi35poB62f/ivg9yOwHsW1Swm4iWlQq/c1s6 1n0uxFKAgHFj2FKsWkQWqC4PuzavisBW4wDHe6PwolY1bpe+l4r7QLJssY2Uyo0j1Z om4+4VaCJscEYH/kURyBnSlgVRkAELE/52sfFhN8= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [95.163.41.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1FDDC9C8CC8 for ; Thu, 1 Feb 2024 19:32:47 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1FDDC9C8CC8 Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1rVZza-00000008VLG-0NaO; Thu, 01 Feb 2024 19:32:46 +0300 Message-ID: Date: Thu, 1 Feb 2024 19:32:45 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9010253A383FA2A7563362C6831DEBD0EDA99A95FFED92801182A05F538085040AF166013B041AE33C7A4B249DE6549FDCD1EF154105AEBF332EB9FE547BB4B06F0D203FE66146AB1 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7484B509D84968742EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006372B7E36617B0C54A78638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8CA5AC47F9B50AA393C6FF9419D3D9F8DC8C3FFA748CB29BDCC7F00164DA146DAFE8445B8C89999728AA50765F7900637F3E38EE449E3E2AE389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8D2DCF9CF1F528DBCF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947CB6FBD635917D924D9735652A29929C6C4AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C36F919A3A57F3677DBA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CFE478A468B35FE7671DD303D21008E298D5E8D9A59859A8B6D082881546D9349175ECD9A6C639B01B78DA827A17800CE74F0F518E68DBD4F843847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A5A0C95F60168121C05002B1117B3ED69644076A8A2510FE9CE20DC3F561CE4150823CB91A9FED034534781492E4B8EEAD1E02C13459908652BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF1F596C3205AEE20E89DB6C925176CAD30E4AA96951E1CB7842E7558D1F59FF88F61CD9246542D0C4BAF4CF3B87E910B1CF0FFEB7C5A1DDBB070FCEF5D88DF5171FAF98B92B9E47D75F4332CA8FE04980913E6812662D5F2AB9AF64DB4688768036DF5FE9C0001AF333F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojKdLLj0Q7SP+OTAJEXBmByQ== X-Mailru-Sender: C4F68CFF4024C8867DFDF7C7F2588458BDDA3C3CBC7225DF87A35C9C7BBE74BE949BA078C95E4986F72C6071B5BC7332645D15D82EE4B272BD6E4642A116CA93524AA66B5ACBE6721EF430B9A63E2A504198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 00/26] More tests from LuaJIT-tests, part 1 X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi, Sergey there is a problem with running under ASAN: cmake -S . -B build -DLUAJIT_USE_ASAN=ON cmake --build build/ -t LuaJIT-tests [100%] Linking C executable luajit [100%] Built target luajit_static Running LuaJIT-tests ==320737==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD. gmake[3]: *** [test/LuaJIT-tests/CMakeFiles/LuaJIT-tests.dir/build.make:74: LuaJIT-tests] Error 1 gmake[2]: *** [CMakeFiles/Makefile2:1193: test/LuaJIT-tests/CMakeFiles/LuaJIT-tests.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:1200: test/LuaJIT-tests/CMakeFiles/LuaJIT-tests.dir/rule] Error 2 gmake: *** [Makefile:455: LuaJIT-tests] Error 2 cannot reproduce on tarantool/master On 1/29/24 13:45, Sergey Kaplun wrote: > This patchset enables most of the LuaJIT-tests related to FFI and > testing of C libraries (cpptest, ctest). More tests (from the > directory) will be enabled in the future series. > > FFI tests from the directory aren't enabled because of their > inconsistency, see also [1]. > > This increases coverage up to 92.5%, see here [2]. > > Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-9398-more-luajit-tests > Tarantool PR: https://github.com/tarantool/tarantool/pull/9603 > Related issues: > * https://github.com/tarantool/tarantool/issues/9398 > * https://github.com/tarantool/tarantool/issues/7834 > > [1]: https://github.com/LuaJIT/LuaJIT/pull/415 > [2]: https://coveralls.io/github/tarantool/luajit?branch=skaplun/gh-9398-more-luajit-tests > > Changes in the v2: > * Introduce the AddTestLib macro to avoid copy-pasting. It only adds a > target with necessary flags without setting any variables. > * is renamed to for consistency with > > * Rename some tests with uninformative naming (like `call_10i` -> > `10 int args`) > * Add adjusments of arguments for long calls (~10 arguments) to make them > comparable without changing test semantics. > * Fix some typos > > Sergey Kaplun (26): > cmake: introduce AddTestLib macro > test: prepare lauxilarily libs for LuaJIT-tests > test: separate LuaJIT helpers from ffi_util.inc > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable in LuaJIT-tests > test: enable LuaJIT test > test: enable LuaJIT test > test: enable LuaJIT test > test: enable LuaJIT test > test: enable LuaJIT test > test: enable LuaJIT test > > test/CMakeLists.txt | 3 + > test/LuaJIT-tests/CMakeLists.txt | 45 ++- > test/LuaJIT-tests/common/fails.lua | 3 + > test/LuaJIT-tests/common/ffi/checkfail.lua | 14 + > test/LuaJIT-tests/common/ffi/checktypes.lua | 15 + > test/LuaJIT-tests/common/ffi_util.inc | 23 -- > test/LuaJIT-tests/{misc => lang}/api_call.lua | 32 +- > .../{sysdep => lang}/catch_cpp.lua | 36 +- > .../{misc => lang}/catch_wrap.lua | 29 +- > test/LuaJIT-tests/lang/index | 4 + > test/LuaJIT-tests/lang/lightud.lua | 89 +++++ > test/LuaJIT-tests/lib/ffi/ffi_arith_ptr.lua | 13 +- > test/LuaJIT-tests/lib/ffi/ffi_bitfield.lua | 4 +- > test/LuaJIT-tests/lib/ffi/ffi_call.lua | 185 +++++----- > test/LuaJIT-tests/lib/ffi/ffi_callback.lua | 45 +-- > test/LuaJIT-tests/lib/ffi/ffi_const.lua | 4 +- > test/LuaJIT-tests/lib/ffi/ffi_convert.lua | 35 +- > test/LuaJIT-tests/lib/ffi/ffi_enum.lua | 11 +- > .../lib/ffi/ffi_gcstep_recursive.lua | 27 +- > test/LuaJIT-tests/lib/ffi/ffi_jit_arith.lua | 22 +- > test/LuaJIT-tests/lib/ffi/ffi_jit_call.lua | 70 ++-- > test/LuaJIT-tests/lib/ffi/ffi_jit_conv.lua | 70 ++-- > test/LuaJIT-tests/lib/ffi/ffi_lex_number.lua | 72 ++-- > test/LuaJIT-tests/lib/ffi/ffi_metatype.lua | 16 +- > test/LuaJIT-tests/lib/ffi/ffi_new.lua | 50 +-- > test/LuaJIT-tests/lib/ffi/ffi_parse_array.lua | 106 +++--- > test/LuaJIT-tests/lib/ffi/ffi_parse_basic.lua | 251 ++++++------- > test/LuaJIT-tests/lib/ffi/ffi_parse_cdef.lua | 141 ++++---- > .../LuaJIT-tests/lib/ffi/ffi_parse_struct.lua | 335 +++++++++--------- > test/LuaJIT-tests/lib/ffi/ffi_tabov.lua | 12 - > test/LuaJIT-tests/lib/ffi/index | 18 + > test/LuaJIT-tests/misc/lightud.lua | 88 ----- > test/LuaJIT-tests/src/CMakeLists.txt | 17 + > .../src/{cpptest.cpp => libcpptest.cpp} | 4 +- > test/LuaJIT-tests/src/{ctest.c => libctest.c} | 4 +- > test/LuaJIT-tests/test.lua | 7 +- > .../PUC-Rio-Lua-5.1-tests/libs/CMakeLists.txt | 25 +- > test/cmake/AddTestLib.cmake | 28 ++ > test/tarantool-tests/CMakeLists.txt | 27 +- > test/tarantool-tests/ffi-tabov.test.lua | 27 ++ > 40 files changed, 1086 insertions(+), 921 deletions(-) > create mode 100644 test/LuaJIT-tests/common/fails.lua > create mode 100644 test/LuaJIT-tests/common/ffi/checkfail.lua > create mode 100644 test/LuaJIT-tests/common/ffi/checktypes.lua > rename test/LuaJIT-tests/{misc => lang}/api_call.lua (79%) > rename test/LuaJIT-tests/{sysdep => lang}/catch_cpp.lua (75%) > rename test/LuaJIT-tests/{misc => lang}/catch_wrap.lua (71%) > create mode 100644 test/LuaJIT-tests/lang/lightud.lua > delete mode 100644 test/LuaJIT-tests/lib/ffi/ffi_tabov.lua > delete mode 100644 test/LuaJIT-tests/misc/lightud.lua > create mode 100644 test/LuaJIT-tests/src/CMakeLists.txt > rename test/LuaJIT-tests/src/{cpptest.cpp => libcpptest.cpp} (96%) > rename test/LuaJIT-tests/src/{ctest.c => libctest.c} (99%) > create mode 100644 test/cmake/AddTestLib.cmake > create mode 100644 test/tarantool-tests/ffi-tabov.test.lua >