File tree Expand file tree Collapse file tree 9 files changed +33
-22
lines changed Expand file tree Collapse file tree 9 files changed +33
-22
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ jobs:
3131 python-version : ${{ matrix.python-version }}
3232 - name : display python version
3333 run : python -c "import sys; print(sys.version)"
34+ - name : setup tt
35+ run : |
36+ curl -L https://tarantool.io/release/2/installer.sh | sudo bash
37+ sudo apt install -y tt
38+ tt version
3439 - name : setup dependencies
3540 run : |
36- sudo apt update -y
37- sudo apt-get -y install lua5.1 luarocks
38- sudo luarocks install luacheck
41+ tt rocks install luatest
42+ tt rocks install luacheck
3943 - name : setup python dependencies
4044 run : |
4145 pip install -r requirements.txt
Original file line number Diff line number Diff line change 44[submodule "lib/tarantool-python "]
55 path = lib/tarantool-python
66 url = https://github.com/tarantool/tarantool-python.git
7- [submodule "lib/checks "]
8- path = lib/checks
9- url = https://github.com/tarantool/checks.git
10- [submodule "lib/luatest "]
11- path = lib/luatest
12- url = https://github.com/tarantool/luatest.git
Original file line number Diff line number Diff line change @@ -27,6 +27,5 @@ include_files = {
2727exclude_files = {
2828 " lib/tarantool-python" ,
2929 " test/test-tarantool/*.test.lua" ,
30- " lib/luatest/**" ,
31- " lib/checks/**" ,
30+ " .rocks/**/*.lua" ,
3231}
Original file line number Diff line number Diff line change 1+ export PATH := .rocks/bin:$(PATH )
2+
13MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST ) ) )
24PROJECT_DIR := $(patsubst % /,% ,$(dir $(MAKEFILE_PATH ) ) )
35TEST_RUN_EXTRA_PARAMS? =
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env tarantool
2+
3+ --
4+ -- Add the luatest module to LUA_PATH so that it can be used in processes
5+ -- spawned by tests.
6+ --
7+ local fio = require('fio')
8+ local path = package.search('luatest')
9+ if path == nil then
10+ error('luatest not found')
11+ end
12+ path = fio.dirname(path) -- strip init.lua
13+ path = fio.dirname(path) -- strip luatest
14+ os.setenv('LUA_PATH',
15+ path .. '/?.lua;' .. path .. '/?/init.lua;' ..
16+ (os.getenv('LUA_PATH') or ';'))
17+
18+ print(('Tarantool version is %s'):format(require('tarantool').version))
19+
20+ require('luatest.cli_entrypoint')()
Original file line number Diff line number Diff line change @@ -70,18 +70,12 @@ def module_init():
7070 os .environ ["BUILDDIR" ] = BUILDDIR
7171 soext = sys .platform == 'darwin' and 'dylib' or 'so'
7272
73- os .environ ['LUA_PATH' ] = (
74- SOURCEDIR + '/?.lua;' + SOURCEDIR + '/?/init.lua;'
75- + os .environ ['TEST_RUN_DIR' ] + '/lib/checks/?.lua;'
76- + os .environ ['TEST_RUN_DIR' ] + '/lib/luatest/?/init.lua;'
77- + os .environ ['TEST_RUN_DIR' ] + '/lib/luatest/?.lua;;'
78- )
79-
73+ os .environ ["LUA_PATH" ] = SOURCEDIR + "/?.lua;" + SOURCEDIR + "/?/init.lua;;"
8074 os .environ ["LUA_CPATH" ] = BUILDDIR + "/?." + soext + ";;"
8175 os .environ ["REPLICATION_SYNC_TIMEOUT" ] = str (args .replication_sync_timeout )
8276 os .environ ['MEMTX_ALLOCATOR' ] = args .memtx_allocator
8377
84- prepend_path (os .path .join (os .environ ['TEST_RUN_DIR' ], 'lib/luatest/ bin' ))
78+ prepend_path (os .path .join (os .environ ['TEST_RUN_DIR' ], 'bin' ))
8579
8680 TarantoolServer .find_exe (args .builddir , executable = args .executable )
8781 UnittestServer .find_exe (args .builddir )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def find_exe(cls, builddir):
125125 cls .binary = TarantoolServer .binary
126126 cls .debug = bool (re .findall (r'^Target:.*-Debug$' , str (cls .version ()),
127127 re .M ))
128- cls .luatest = os .environ ['TEST_RUN_DIR' ] + '/lib/luatest/ bin/luatest'
128+ cls .luatest = os .environ ['TEST_RUN_DIR' ] + '/bin/luatest'
129129
130130 @classmethod
131131 def verify_luatest_exe (cls ):
You can’t perform that action at this time.
0 commit comments