[Tarantool-patches] [PATCH v3 0/2] test: cleanup tests code

Alexander V. Tikhonov avtikhon at tarantool.org
Fri Mar 20 15:50:42 MSK 2020


test: cleanup tests code
    
Cleaned up the tests code according to the Lua style guide:
- made scoped variables local
- added os.exit call at the end of the test chunk
- adjusted the messages in test:ok calls

Renamed test files in the following way:
<repo>-<number>-<comment>.test.lua
where "<repo>" is github repository:
  gh - tarantool/tarantool
  lj - LuaJIT/LuaJIT
  or - openresty/luajit2
    
Close #4655

---

Github: https://github.com/tarantool/luajit/tree/avtikhon/gh-4655-cleanup-tests
Issue: https://github.com/tarantool/tarantool/issues/4655

commit 1a00fc69881893cc376e78815fdfee12b9e038b3
Author: Alexander V. Tikhonov <avtikhon at tarantool.org>
Date:   Wed Dec 11 17:24:16 2019 +0300

Alexander V. Tikhonov (2):
  test: cleanup tests code
  test: rename test files

 ... gh-3196-incorrect-string-length.test.lua} |  8 +++----
 ...h-4476-fix-string-find-recording.test.lua} |  6 ++---
 ...lj-494-table-chain-infinite-loop.test.lua} | 23 ++++++++++---------
 ...j-505-fold-no-strref-for-ptrdiff.test.lua} |  7 +++---
 ...lj-524-fold-conv-respect-src-irt.test.lua} |  4 ++--
 ...est.lua => or-232-unsink-64-kptr.test.lua} |  7 +++---
 6 files changed, 29 insertions(+), 26 deletions(-)
 rename test/{gh.test.lua => gh-3196-incorrect-string-length.test.lua} (56%)
 rename test/{fix_string_find_recording.test.lua => gh-4476-fix-string-find-recording.test.lua} (95%)
 rename test/{table_chain_bug_LuaJIT_494.test.lua => lj-494-table-chain-infinite-loop.test.lua} (89%)
 rename test/{fold_bug_LuaJIT_505.test.lua => lj-505-fold-no-strref-for-ptrdiff.test.lua} (68%)
 rename test/{fold_bug_LuaJIT_524.test.lua => lj-524-fold-conv-respect-src-irt.test.lua} (85%)
 rename test/{unsink_64_kptr.test.lua => or-232-unsink-64-kptr.test.lua} (86%)

-- 
2.17.1



More information about the Tarantool-patches mailing list