Make test-run framework run tests successfully against installed tarantool packages
NickVolynkin opened this issue · comments
tarantool/test-run should be able to run tests successfully against an installed tarantool package, that is, with tarantool
binary in any path.
Actually, we don't need to make any changes in test-run. To make tests work against tarantool installed from a package we just need to build unit test binaries and libs for functional tests before starting test-run. Also, we need to fix some tests like test/app-tap/gh-1700-abort-recording-on-fiber-switch.test.lua
, test/app-tap/tarantoolctl.test.lua
, test/box-py/args.test.py
because they rely on some stuff from the tarantool build dir.
Unit tests and small tests can be built in such a way:
cmake .
make -j -C test/unit
make -j -C test/small
and run by cd test && ./test-run.py unit/ small/
.
For building all tests (unit, small, and functional):
cmake .
make -j -C test