Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit 0/5] Tarantool tests enhancements
@ 2023-02-27  9:07 Igor Munkin via Tarantool-patches
  2023-02-27  9:07 ` [Tarantool-patches] [PATCH luajit 1/5] ci: use LuaJIT-test target in testing workflows Igor Munkin via Tarantool-patches
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Igor Munkin via Tarantool-patches @ 2023-02-27  9:07 UTC (permalink / raw)
  To: Sergey Kaplun, Maxim Kokryashkin; +Cc: tarantool-patches

I decided to split the original series[1], adjusting JIT-related tests
in tarantool-tests suite into two separate patchsets: one with
enhancements for test suite and another one for JIT-related tweaks.

This series consists of the following changes:

1. The first one is a simple tiny maintenance patch to remove excess
   checks in testing workflows.
2. The second one is epic one: unfortunately, <utils.selfrun> 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.
3. The third and the fourth patches introduce <tap.skipall> and
   <tap.skiprest> helpers.
4. 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.

[1]: https://lists.tarantool.org/tarantool-patches/cover.1676304797.git.imun@tarantool.org/T/#t

Branch: https://github.com/tarantool/luajit/tree/imun/tap-enhancements
CI: https://github.com/tarantool/luajit/commit/4e6d8b4
Tarantool PR: https://github.com/tarantool/tarantool/pull/8288

Igor Munkin (5):
  ci: use LuaJIT-test target in testing workflows
  test: stop using utils.selfrun in tests
  test: introduce test:skipall TAP helper
  test: introduce test:skiprest TAP helper
  test: make skipcond helper more convenient

 .github/workflows/exotic-builds-testing.yml   |  2 +-
 .github/workflows/testing.yml                 |  2 +-
 .../gh-4199-gc64-fuse.test.lua                | 11 ++-
 .../gh-4427-ffi-sandwich.test.lua             | 95 ++++++++++---------
 .../gh-4427-ffi-sandwich/script.lua           | 25 +++++
 .../gh-5813-resolving-of-c-symbols.test.lua   | 19 ++--
 ...4-add-proto-trace-sysprof-default.test.lua | 15 ++-
 .../lj-351-print-tostring-number.test.lua     | 34 +++----
 .../lj-351-print-tostring-number/script.lua   |  9 ++
 .../lj-430-maxirconst.test.lua                | 10 +-
 .../lj-586-debug-non-string-error.test.lua    |  2 +-
 .../lj-603-err-snap-restore.test.lua          | 19 ++--
 ...lj-672-cdata-allocation-recording.test.lua | 12 +--
 .../lj-906-fix-err-mem.test.lua               | 12 +--
 .../lj-flush-on-trace.test.lua                | 94 +++++++++---------
 .../lj-flush-on-trace/script.lua              | 23 +++++
 .../misclib-getmetrics-capi.test.lua          | 17 ++--
 .../misclib-getmetrics-lapi.test.lua          | 13 +--
 .../misclib-memprof-lapi.test.lua             | 28 +++---
 .../misclib-sysprof-capi.test.lua             | 19 ++--
 .../misclib-sysprof-lapi.test.lua             | 19 ++--
 test/tarantool-tests/tap.lua                  | 42 +++++++-
 test/tarantool-tests/utils.lua                | 88 +++++++----------
 23 files changed, 333 insertions(+), 277 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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-03-02 17:11 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27  9:07 [Tarantool-patches] [PATCH luajit 0/5] Tarantool tests enhancements Igor Munkin via Tarantool-patches
2023-02-27  9:07 ` [Tarantool-patches] [PATCH luajit 1/5] ci: use LuaJIT-test target in testing workflows Igor Munkin via Tarantool-patches
2023-02-27  9:41   ` Sergey Kaplun via Tarantool-patches
2023-02-28  7:42   ` Maxim Kokryashkin via Tarantool-patches
2023-02-27  9:07 ` [Tarantool-patches] [PATCH luajit 2/5] test: stop using utils.selfrun in tests Igor Munkin via Tarantool-patches
2023-02-27 10:08   ` Sergey Kaplun via Tarantool-patches
2023-02-27 18:04     ` Igor Munkin via Tarantool-patches
2023-02-28  7:46       ` Maxim Kokryashkin via Tarantool-patches
2023-02-27  9:07 ` [Tarantool-patches] [PATCH luajit 3/5] test: introduce test:skipall TAP helper Igor Munkin via Tarantool-patches
2023-02-27  9:51   ` Sergey Kaplun via Tarantool-patches
2023-02-27 18:04     ` Igor Munkin via Tarantool-patches
2023-02-28  7:51   ` Maxim Kokryashkin via Tarantool-patches
2023-02-28 16:26     ` Igor Munkin via Tarantool-patches
2023-02-27  9:07 ` [Tarantool-patches] [PATCH luajit 4/5] test: introduce test:skiprest " Igor Munkin via Tarantool-patches
2023-02-27  9:56   ` Sergey Kaplun via Tarantool-patches
2023-02-27 18:04     ` Igor Munkin via Tarantool-patches
2023-02-28  7:55   ` Maxim Kokryashkin via Tarantool-patches
2023-02-28 16:26     ` Igor Munkin via Tarantool-patches
2023-02-27  9:07 ` [Tarantool-patches] [PATCH luajit 5/5] test: make skipcond helper more convenient Igor Munkin via Tarantool-patches
2023-02-27 10:01   ` Sergey Kaplun via Tarantool-patches
2023-02-28  8:10   ` Maxim Kokryashkin via Tarantool-patches
2023-03-02 17:07 ` [Tarantool-patches] [PATCH luajit 0/5] Tarantool tests enhancements Igor Munkin via Tarantool-patches

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