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 64FDC9885EC; Fri, 19 Jan 2024 14:37:04 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 64FDC9885EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1705664224; bh=9f3UR4Ubw3pAPALdASePHScX5HfNF99E91g04VjxKCM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Voe/7/04XQxoGVSV/d8eNO4BzlSbie7YhdseHAS9AFpo2rxjDSC5x9HsCnmqOUZou OzGqIwbBcGjY3ZIpBq9ejORp2yje2aH6VhLLxg5tNyklI6eLQPCCmEdAflbW2RvSHg 0/VO2ZPDylAUWsVn1PZ3iuBDN3p1tQqDrj5sA4kY= Received: from smtp16.i.mail.ru (smtp16.i.mail.ru [95.163.41.69]) (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 7159674D940 for ; Fri, 19 Jan 2024 14:37:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7159674D940 Received: by smtp16.i.mail.ru with esmtpa (envelope-from ) id 1rQnBF-00FDC7-1d; Fri, 19 Jan 2024 14:37:02 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Fri, 19 Jan 2024 14:32:23 +0300 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9AE5B4AFB3AE2A590AC49F3668DF3AF4BBF6B994171853288182A05F538085040D8F05042EABB023577CA480E2D39EF6F0D0458E0391944DA2A068038AE5DE123 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7F65C230EDDCD559EEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637A361B53D384D9D40EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38B73AB1701401CD87193954E913C9619EC8831C3ADDBF657F7CC7F00164DA146DAFE8445B8C89999728AA50765F7900637DCE3DBD6F8E38AFD389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC821E93C0F2A571C7BF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE33AC447995A7AD182315B90ADEC130413A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E735843AE0F20224B8D0C4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5540F868CCCE5D90D3DE3FD803DF40A2FC6CF5357FD83DF48F87CCE6106E1FC07E67D4AC08A07B9B0BFD98ABA943BD70B9C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A0997E3FB2386030E77 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFEA7CBA6F68608198C31365239B1E775E857E0DA1E15FC81DFB91447F750777A5D753EA1A396000B06197189FEE4B1C7AEC2646F50FD8E7915205D34B3DD7D7F3A74DFFEFA5DC0E7F02C26D483E81D6BE5EF9655DD6DEA7D65774BB76CC95456EEC5B5AD62611EEC62B5AFB4261A09AF0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXjl1jDR7uzGunZzgbn8PK3y X-DA7885C5: D576A38174999E7522358C9D20223E7B20A896E9F17651D042EB29350FCE586D262E2D401490A4A0DB037EFA58388B346E8BC1A9835FDE71 X-Mailru-Sender: 689FA8AB762F7393590D8C940224AE339BDBA051A048FD92E2F66D03BE5839530FBE9A32752B8C9C2AA642CC12EC09F1FB559BB5D741EB962F61BD320559CF1EFD657A8799238ED55FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 00/25] 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 Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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://coveralls.io/github/tarantool/luajit?branch=skaplun/gh-9398-more-luajit-tests [2]: https://github.com/LuaJIT/LuaJIT/pull/415 Sergey Kaplun (25): 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/LuaJIT-tests/CMakeLists.txt | 45 ++- test/LuaJIT-tests/common/fails.lua | 3 + test/LuaJIT-tests/common/ffi/checkfail.lua | 10 + test/LuaJIT-tests/common/ffi/checktypes.lua | 11 + 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 | 180 +++++----- test/LuaJIT-tests/lib/ffi/ffi_callback.lua | 33 +- 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 | 40 +++ test/LuaJIT-tests/src/ctest.c | 4 +- test/LuaJIT-tests/test.lua | 7 +- test/tarantool-tests/ffi-tabov.test.lua | 27 ++ 35 files changed, 1055 insertions(+), 863 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 (77%) rename test/LuaJIT-tests/{misc => lang}/catch_wrap.lua (74%) 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 create mode 100644 test/tarantool-tests/ffi-tabov.test.lua -- 2.43.0