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 485119C2029; Mon, 29 Jan 2024 13:49:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 485119C2029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1706525364; bh=pjDddmBrUkOBhENPu1goq79oECZJQ39chgUUbePPzIU=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=aU+h2zlsQucLuLhlfv9Gm3Caa+VAzyo7t71X4L+nWwuyhb6LFtRYqm84RFOtttIan 788TDoj3Y+elT+D15yOAB1UdBHQGN/wKTHngLERxWWxWwbqV56+nfT1pT3x5O27Q1y lfumqDH0Y0l8U3vJmvoetiQDXYOyYf7XpBu9XMAg= Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [95.163.41.73]) (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 0784F9C2029 for ; Mon, 29 Jan 2024 13:49:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0784F9C2029 Received: by smtp32.i.mail.ru with esmtpa (envelope-from ) id 1rUPCc-0000000BQ6r-0bli; Mon, 29 Jan 2024 13:49:22 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Mon, 29 Jan 2024 13:45:00 +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: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9A2BFDE4DD2630CDA8B2C79D93CB6D7A2ABE72CC87122F737182A05F5380850404C228DA9ACA6FE27EE46B7E9E85ADBF333594132A326AF8B54B49AE2E1548310DCA4176470581478D599AB4818251001 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE749E89BD568380EECC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE79CBBCC7DE3A5D56AEA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38B73AB1701401CD871BFEDB9B12D1D70C22BC13947D25D0DD474B2D13E976565DBA471835C12D1D9774AD6D5ED66289B5278DA827A17800CE77E7E81EEA8A9722B8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6F459A8243F1D1D44CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB8D32BA5DBAC0009BE9E8FC8737B5C2249A2438641345D8A9C76E601842F6C81A12EF20D2F80756B5FB606B96278B59C4276E601842F6C81A127C277FBC8AE2E8B85D57F7110FD95423AA81AA40904B5D99C9F4D5AE37F343AD1F44FA8B9022EA23BBE47FD9DD3FB595F5C1EE8F4F765FC60CDF180582EB8FBE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BE987C591F5696A4475ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A5D864FD01ECBEB91F5002B1117B3ED696A70ED9E16E878401B2920F75BA9A967F823CB91A9FED034534781492E4B8EEAD09F854029C6BD0DAC79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFBAD57ABA247A811F2783435CA4E93C0BD01B36CE91AA31CE50C90543ED128E47CCDF2CE9FE05F2E78FB01E7B8BF01A69BBC4750359A92D6AB718120DE96C5CC5538D6B60C88F22BCC226CC413062362A913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojmd9AG1X07oRYj/Hc+GptnA== X-Mailru-Sender: 11C2EC085EDE56FAC07928AF2646A7698D0B66CC06C7420933594132A326AF8B54B49AE2E1548310B7CBEF92542CD7C88B0A2698F12F5C9EC77752E0C033A69E86920BD37369036789A8C6A0E60D2BB63A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: Ok Subject: [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 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://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 -- 2.43.0