Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>,
	Maxim Kokryashkin <m.kokryashkin@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v2 luajit 1/2] test: support number value of tag in LuaJIT-tests
Date: Mon, 9 Dec 2024 14:12:22 +0300	[thread overview]
Message-ID: <beebff53-4873-4eac-8c99-39b692194ff3@tarantool.org> (raw)
In-Reply-To: <6ff7e9ab8ba9441cc6c47be08f713838969c0e39.1733739230.git.skaplun@tarantool.org>

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

Hi, Sergey,

thanks for the pacth! LGTM

On 09.12.2024 13:16, Sergey Kaplun wrote:
> 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 = {}

[-- Attachment #2: Type: text/html, Size: 1613 bytes --]

  reply	other threads:[~2024-12-09 11:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-09 10:16 [Tarantool-patches] [PATCH v2 luajit 0/2] Fix LuaJIT tests for old libc versions Sergey Kaplun via Tarantool-patches
2024-12-09 10:16 ` [Tarantool-patches] [PATCH v2 luajit 1/2] test: support number value of tag in LuaJIT-tests Sergey Kaplun via Tarantool-patches
2024-12-09 11:12   ` Sergey Bronnikov via Tarantool-patches [this message]
2024-12-09 10:16 ` [Tarantool-patches] [PATCH v2 luajit 2/2] test: fix LuaJIT-tests for old libc version Sergey Kaplun via Tarantool-patches
2024-12-09 11:17   ` Sergey Bronnikov via Tarantool-patches
2024-12-09 14:40     ` Sergey Kaplun via Tarantool-patches
2024-12-10  7:37       ` Sergey Bronnikov via Tarantool-patches
2024-12-17 12:30 ` [Tarantool-patches] [PATCH v2 luajit 0/2] Fix LuaJIT tests for old libc versions Sergey Kaplun via Tarantool-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=beebff53-4873-4eac-8c99-39b692194ff3@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=m.kokryashkin@tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2 luajit 1/2] test: support number value of tag in LuaJIT-tests' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox