[Tarantool-patches] [PATCH luajit v3 00/29] Adapt PUC-Rio Lua 5.1 test suite

Sergey Kaplun skaplun at tarantool.org
Tue Apr 13 16:27:00 MSK 2021


Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-5845-adapt-puc-rio-test-suite-v2
Test branch: https://github.com/tarantool/tarantool/tree/skaplun/gh-5845-adapt-puc-rio-test-suite-v2

Side note: CI is red due to
https://github.com/tarantool/tarantool/issues/5986.

Issues:
* https://github.com/tarantool/tarantool/issues/5845
* https://github.com/tarantool/tarantool/issues/4473

Suite is taken intact exept trailing whitespaces.
Command to check:
| $ diff -ruZ --color ../test/PUC-Lua-5.1-tests/ ~/Downloads/lua5.1-tests/
| Only in ../test/PUC-Lua-5.1-tests/: CMakeLists.txt
| Only in ../test/PUC-Lua-5.1-tests/libs: CMakeLists.txt
| Only in ~/Downloads/lua5.1-tests/libs: makefile
| Only in ~/Downloads/lua5.1-tests/libs: P1

Changes in the v2:
* split commits to atomic changes
* more verbose comments for some tests
* some test fixed instead commenting

Changes in the v3:
* more verbose comments and commit messages
* PUC-Lua-5.1-tests -> PUC-Rio-Lua-5.1-tests
* squash commits for vararg functions
* move "LuaJIT:" tag to the top of comments
* introduce _dofile and _loadfile functions for PUC-Rio-Lua-5.1 suite
  and create <luajit-tests-init.lua> test prerunner to set up them
  correctly for out-of-source build.


Sergey Kaplun (29):
  test: add PUC-Rio Lua 5.1 test suite
  test: build auxiliary C libs from PUC-Rio Lua 5.1
  test: adapt PUC-Rio suite for out-of-source build
  test: remove quotes in progname from PUC-Rio
  test: adapt PUC-Rio test for arg presence
  test: disable PUC-Rio tests confused by -v output
  test: disable PUC-Rio tests for bytecode header
  test: adapt PUC-Rio tests counting GC steps
  test: disable PUC-Rio suite tests for line hook
  test: adapt PUC-Rio tests with vararg functions
  test: adapt PUC-Rio test for debug in vararg func
  test: adapt PUC-Rio test with count hooks
  test: disable PUC-Rio test for tail call info
  test: adapt PUC-Rio test with activeline check
  test: disable PUC-Rio test for per-coroutine hooks
  test: adapt PUC-Rio test for %q in string.format
  test: disable locale-dependent PUC-Rio tests
  test: use math.fmod in PUC-Rio tests
  test: remove string.gfind assert in PUC-Rio test
  test: disable PUC-Rio test for getfenv in tailcall
  test: disable PUC-Rio test for variables in error
  test: disable PUC-Rio test for fast function name
  test: disable PUC-Rio test for non-asci identifier
  test: disable PUC-Rio test for syntax level error
  test: disable PUC-RIO tests for several -l options
  test: disable PUC-Rio test for checking arg layout
  test: disable PUC-Rio test checking -h option
  test: disable PUC-Rio hanging GC test
  test: disable too deep recursive PUC-Rio test

 .luacheckrc                                   |    5 +-
 CMakeLists.txt                                |    4 +-
 test/CMakeLists.txt                           |    2 +
 test/PUC-Rio-Lua-5.1-tests/CMakeLists.txt     |   46 +
 test/PUC-Rio-Lua-5.1-tests/README             |   41 +
 test/PUC-Rio-Lua-5.1-tests/all.lua            |  144 +++
 test/PUC-Rio-Lua-5.1-tests/api.lua            |  711 ++++++++++
 test/PUC-Rio-Lua-5.1-tests/attrib.lua         |  339 +++++
 test/PUC-Rio-Lua-5.1-tests/big.lua            |  381 ++++++
 test/PUC-Rio-Lua-5.1-tests/calls.lua          |  294 +++++
 test/PUC-Rio-Lua-5.1-tests/checktable.lua     |   77 ++
 test/PUC-Rio-Lua-5.1-tests/closure.lua        |  432 +++++++
 test/PUC-Rio-Lua-5.1-tests/code.lua           |  143 ++
 test/PUC-Rio-Lua-5.1-tests/constructs.lua     |  242 ++++
 test/PUC-Rio-Lua-5.1-tests/db.lua             |  581 +++++++++
 test/PUC-Rio-Lua-5.1-tests/errors.lua         |  276 ++++
 test/PUC-Rio-Lua-5.1-tests/etc/ltests.c       | 1147 +++++++++++++++++
 test/PUC-Rio-Lua-5.1-tests/etc/ltests.h       |   92 ++
 test/PUC-Rio-Lua-5.1-tests/events.lua         |  360 ++++++
 test/PUC-Rio-Lua-5.1-tests/files.lua          |  324 +++++
 test/PUC-Rio-Lua-5.1-tests/gc.lua             |  325 +++++
 .../PUC-Rio-Lua-5.1-tests/libs/CMakeLists.txt |   65 +
 test/PUC-Rio-Lua-5.1-tests/libs/lib1.c        |   40 +
 test/PUC-Rio-Lua-5.1-tests/libs/lib11.c       |   18 +
 test/PUC-Rio-Lua-5.1-tests/libs/lib2.c        |   28 +
 test/PUC-Rio-Lua-5.1-tests/libs/lib21.c       |   18 +
 test/PUC-Rio-Lua-5.1-tests/literals.lua       |  181 +++
 test/PUC-Rio-Lua-5.1-tests/locals.lua         |  127 ++
 test/PUC-Rio-Lua-5.1-tests/main.lua           |  212 +++
 test/PUC-Rio-Lua-5.1-tests/math.lua           |  209 +++
 test/PUC-Rio-Lua-5.1-tests/nextvar.lua        |  397 ++++++
 test/PUC-Rio-Lua-5.1-tests/pm.lua             |  276 ++++
 test/PUC-Rio-Lua-5.1-tests/sort.lua           |   74 ++
 test/PUC-Rio-Lua-5.1-tests/strings.lua        |  217 ++++
 test/PUC-Rio-Lua-5.1-tests/vararg.lua         |  135 ++
 test/PUC-Rio-Lua-5.1-tests/verybig.lua        |  100 ++
 test/luajit-test-init.lua                     |   18 +
 37 files changed, 8077 insertions(+), 4 deletions(-)
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/CMakeLists.txt
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/README
 create mode 100755 test/PUC-Rio-Lua-5.1-tests/all.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/api.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/attrib.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/big.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/calls.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/checktable.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/closure.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/code.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/constructs.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/db.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/errors.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/etc/ltests.c
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/etc/ltests.h
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/events.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/files.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/gc.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/libs/CMakeLists.txt
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/libs/lib1.c
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/libs/lib11.c
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/libs/lib2.c
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/libs/lib21.c
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/literals.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/locals.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/main.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/math.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/nextvar.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/pm.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/sort.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/strings.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/vararg.lua
 create mode 100644 test/PUC-Rio-Lua-5.1-tests/verybig.lua
 create mode 100644 test/luajit-test-init.lua

-- 
2.31.0



More information about the Tarantool-patches mailing list