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 825D5257FF1; Mon, 13 Feb 2023 20:03:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 825D5257FF1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1676307810; bh=3EY5QMIZcLj9ONkVsAil1PB8fqyMPT4Xa3YGjWwZg2c=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Fh/uRWRTiOP1OTaHIJ5/GtQsIcfRP3enW1NBkOS2ti/rRaMAahrOE7xK/Vk5+pEVH Dy8rQq0woieExtQGMDC9v4bkRrLWSS6P24MPvBsnABuE/H863w230ooeC9KEqVoYS5 Z7vX8pqsh6Ss1Ota8paaK+HjH/J22TdYIv+Be2Ok= Received: from smtp46.i.mail.ru (smtp46.i.mail.ru [95.163.41.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id C5A40209901 for ; Mon, 13 Feb 2023 20:03:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C5A40209901 Received: by smtp46.i.mail.ru with esmtpa (envelope-from ) id 1pRcEh-00Ft6R-NL; Mon, 13 Feb 2023 20:03:28 +0300 To: Sergey Kaplun , Maxim Kokryashkin Date: Mon, 13 Feb 2023 17:02:42 +0000 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9D95CB639AA8C08F8F243B0CF85050B97FBBE3BAC8A20D10C182A05F538085040C77B680FAF2333004CDBFB222EF5A6385E8AD65708697ECDBC87646F6F246008 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7922D113DFDC6D5A3EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063757B4903363AB6D598638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8E8204ADF53FD078E7EE30EBDA63E7BC1117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCCF01C05423B8DB1BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735204B6963042765DA4B2CC0D3CB04F14752D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE9647ADFADE5905B1CFA063A519E5965DD8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE36089696B24BB1D192D242C3BD2E3F4C6C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637FB177F6A8366F17BEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A52FCC63FB229D8C3CA59A189A3A238BDCE78ED8BAF04FC3594EAF44D9B582CE87C8A4C02DF684249CC203C45FEA855C8F X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34C264B329661203DA0B10DFDB515C803B8F60611662C0DCACAB9691AAFB11EC8F0583763D963541E61D7E09C32AA3244C6E1DB92428CD9C047C5C24DA2A90D94524AF4FAF06DA24FD927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXjM8gFDnjjK8l2oD6okK/p+ X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531626392C2CE6982C6AB24DC6102B33549332C412ACEE59CE62326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 0/7] Adjust tests to be run when JIT is disabled 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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This series make LuaJIT tests work when JIT is either disabled or turned off. It looks large a bit, but it's not complex at all. The first patch is a backport of a tiny change fixing header dependencies for the build with -DLUAJIT_DISABLE_JIT=ON and whitespace inconsistency (that is a bit irrelevant, but IMHO still OK). The second patch is quite similar to the first one, but relates to the changes made in our fork (sysprof, memprof, etc). The third one is epic one: unfortunately, is too complex to be maintained, so the corresponding tests are split into two files: the test itself and the script to be run by the test. There is a new helper introduced within this patch, and three tests are refactored. The fourth patch makes skipcond helper more convenient: it becomes multi-conditional and it yields the test object, so we can organize more readable chains of skip conditions. The fifth patch disables all JIT-related tests in tarantool-tests suite via skipcond introduced in the previous patch. The sixth patch fixes condition according to its usage in lua-Harness suite. The last patch introduces a new flavor to exotic builds matrix to test builds with JIT disabled. Issue: https://github.com/tarantool/tarantool/issues/8252 Branch: https://github.com/tarantool/luajit/commits/imun/jit-off-ci Tarantool PR: https://github.com/tarantool/tarantool/pull/8288 CI: https://github.com/tarantool/luajit/commit/7f01b6a Igor Munkin (6): build: fix build with JIT disabled test: stop using utils.selfrun in tests test: make skipcond helper more convenient test: add skipcond for all JIT-related tests test: fix lua-Harness JIT-related tests ci: add nojit flavor for exotic builds Mike Pall (1): Minor fixes. .github/workflows/exotic-builds-testing.yml | 4 +- src/lib_base.c | 2 +- src/lj_gc.c | 1 + src/lj_memprof.c | 9 +-- src/lj_symtab.c | 13 +--- src/lj_symtab.h | 2 + test/lua-Harness-tests/403-jit.t | 2 +- test/lua-Harness-tests/411-luajit.t | 2 +- .../bc-jit-unpatching.test.lua | 6 +- .../fix-fold-simplify-conv-sext.test.lua | 7 +- .../fix-slot-check-for-mm-record.test.lua | 4 +- .../gh-4199-gc64-fuse.test.lua | 12 +-- .../gh-4427-ffi-sandwich.test.lua | 75 ++++++++----------- .../gh-4427-ffi-sandwich/script.lua | 25 +++++++ ...gh-4476-fix-string-find-recording.test.lua | 4 +- .../gh-5813-resolving-of-c-symbols.test.lua | 23 +++--- .../gh-6065-jit-library-smoke-tests.test.lua | 4 +- ...8-fix-side-exit-patching-on-arm64.test.lua | 5 +- test/tarantool-tests/gh-6189-cur_L.test.lua | 7 +- ...ytecode-allocator-for-comparisons.test.lua | 5 +- .../gh-6371-string-char-no-arg.test.lua | 5 +- ...6782-stitching-in-vmevent-handler.test.lua | 6 +- .../gh-6976-narrowing-of-unary-minus.test.lua | 5 +- ...4-add-proto-trace-sysprof-default.test.lua | 15 ++-- .../lj-350-sload-typecheck.test.lua | 8 +- .../lj-351-print-tostring-number.test.lua | 34 +++------ .../lj-351-print-tostring-number/script.lua | 9 +++ .../lj-356-ir-khash-non-string-obj.test.lua | 11 ++- .../lj-357-arm64-hrefk.test.lua | 6 +- .../lj-375-ir-bufput-signed-char.test.lua | 4 +- .../lj-408-tonumber-cdata-record.test.lua | 11 +-- .../lj-416-xor-before-jcc.test.lua | 6 +- .../lj-430-maxirconst.test.lua | 11 +-- ...lj-505-fold-no-strref-for-ptrdiff.test.lua | 4 +- .../lj-524-fold-conv-respect-src-irt.test.lua | 6 +- .../lj-556-fix-loop-realignment.test.lua | 4 +- ...j-584-bad-renames-for-sunk-values.test.lua | 4 +- .../lj-586-debug-non-string-error.test.lua | 2 +- .../lj-603-err-snap-restore.test.lua | 19 +++-- ...lj-672-cdata-allocation-recording.test.lua | 13 ++-- .../lj-864-varg-rec-base-offset.test.lua | 6 +- .../lj-906-fix-err-mem.test.lua | 12 +-- .../lj-flush-on-trace.test.lua | 74 ++++++++---------- .../lj-flush-on-trace/script.lua | 23 ++++++ .../misclib-getmetrics-capi.test.lua | 18 ++--- .../misclib-getmetrics-lapi.test.lua | 14 ++-- .../misclib-memprof-lapi.test.lua | 42 +++++------ .../misclib-sysprof-capi.test.lua | 18 ++--- .../misclib-sysprof-lapi.test.lua | 24 +++--- test/tarantool-tests/tap.lua | 12 +++ test/tarantool-tests/utils.lua | 74 +++++------------- 51 files changed, 371 insertions(+), 341 deletions(-) create mode 100644 test/tarantool-tests/gh-4427-ffi-sandwich/script.lua create mode 100644 test/tarantool-tests/lj-351-print-tostring-number/script.lua create mode 100644 test/tarantool-tests/lj-flush-on-trace/script.lua -- 2.30.2