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 ADEC8E6C243; Mon, 9 Dec 2024 13:18:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org ADEC8E6C243 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1733739500; bh=0i8i8JihDaD9j2Uwlt1MVJ+nClNrhc71Zy8U72vpa10=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ZA3fYXaShpE825fbUOBZ2PL9n6jjWSLRg1XLcORRGIchcRMjIa3CFqIX9kmiuj4lc A+yMxT3YWvfk+QXRIiiosGPOvbynTv552LAzLs2+74rmuGinBbPtn19/jqThk4Fsa/ tLe8+aB8t5wo/1PBwUcTJ9Fo6T64WM6mx6E7999s= Received: from send172.i.mail.ru (send172.i.mail.ru [95.163.59.11]) (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 47199E6C243 for ; Mon, 9 Dec 2024 13:17:50 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 47199E6C243 Received: by exim-smtp-fb95f984f-hjgj4 with esmtpa (envelope-from ) id 1tKapp-000000006NW-1ZYc; Mon, 09 Dec 2024 13:17:49 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Mon, 9 Dec 2024 13:16:53 +0300 Message-ID: <6ff7e9ab8ba9441cc6c47be08f713838969c0e39.1733739230.git.skaplun@tarantool.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9008082F162C50007D325713A74BF3A1384DB9F88DFABA395182A05F53808504093556D7EEDF829C93DE06ABAFEAF67051EC36368B46BBF8667A8EC0B997EF9A97A43E2483F2A4E25 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78E8764B5BC580342EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637BEEB0D1ADA650026EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BC08E230531AC9C904B5A85DAB2E9F8DA80714BD584BFF36C2FF8EB3DBDF25179A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE73AFA331E307B52169FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3A79578C5CF9A9009117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947CD2DCF9CF1F528DBC2E808ACE2090B5E1725E5C173C3A84C3E478A468B35FE767089D37D7C0E48F6C8AA50765F790063762EFFBA1C158ADAAEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A58DB12F6389C13CA85002B1117B3ED6965DC9F14E939AD671C89B063BDC7FAC35823CB91A9FED034534781492E4B8EEADADEF88395FA75C5FC79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFB5E507DFFE7CF6E70085940E4DA80F0D4DE6AF5F5DDD49403A63D4A514B48C133B77A83432DF81E45C69F0120C2109DF1C8DE4C4C9C873A01AF4D3FCB6219F7D12F80E324300EFB4C226CC413062362A913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojBv0bg8QSzYTTbPq8B4cbgA== X-DA7885C5: 5A07DB683D7DBF46F255D290C0D534F9DED75AA916E764BFF2346BB1F45E3A203C927305B3FCDF365B1A4C17EAA7BC4BEF2421ABFA55128DAF83EF9164C44C7E X-Mailru-Sender: 689FA8AB762F739381B31377CF4CA2193382633D6461244062C2911B6B55F59A5D7F2B01F9B17A4AE49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 1/2] test: support number value of tag in LuaJIT-tests 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" The LuaJIT-tests suite lacks the ability to specify tags with custom values. This patch adds the ability to specify number tags in the format `+tag=number`. It is useful for version specification of system libraries (like libc). Required for the next patch. --- test/LuaJIT-tests/test.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/LuaJIT-tests/test.lua b/test/LuaJIT-tests/test.lua index ab178331..2a535605 100644 --- a/test/LuaJIT-tests/test.lua +++ b/test/LuaJIT-tests/test.lua @@ -161,7 +161,12 @@ local function parse_args(t) error(arg .." does not expect an argument") end elseif arg:find"^[-+]" then - opts.tags[arg:sub(2)] = (arg:sub(1, 1) == "+") + local tagval = arg:find"=" + if tagval then + opts.tags[arg:sub(2, tagval - 1)] = tonumber(arg:sub(tagval + 1)) + else + opts.tags[arg:sub(2)] = (arg:sub(1, 1) == "+") + end elseif arg:find"^%d+$" then if not opts.numbers_to_run then opts.numbers_to_run = {} -- 2.47.0