[Tarantool-patches] [PATCH luajit 0/5] Tarantool tests enhancements

Igor Munkin imun at tarantool.org
Mon Feb 27 12:07:18 MSK 2023


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



More information about the Tarantool-patches mailing list