<HTML><BODY><div>Hi!</div><div>Are you sure that issues tarantool/tarantool#781 is related?</div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Best regards,</div><div>Maxim Kokryashkin</div></div></div><div> </div><div> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Среда, 15 марта 2023, 19:14 +03:00 от Sergey Kaplun <skaplun@tarantool.org>:<br> <div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16788968880277267610_BODY">The whole idea of the patch-set introduce module for LuaJIT C tests. It<br>also, can be used for unit tests.<br>* The first patch is the prerequisite for the patch-set. It fixes<br> LD_LIBRARY_PATH definition.<br>* The 2nd and 3d patches provides an API and helper for writing the tests.<br>* The last 2 patches rewrite existing tests that should be written in C in<br> the proper way.<br><br>I'll be glad to hear some suggestions and ideas to improving the test<br>module:).<br><br>Branch: <a href="https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-tarantool-c-tests" target="_blank">https://github.com/tarantool/luajit/tree/skaplun/gh-noticket-tarantool-c-tests</a><br>PR: <a href="https://github.com/tarantool/tarantool/pull/8444" target="_blank">https://github.com/tarantool/tarantool/pull/8444</a><br>Related Issue:<br>* <a href="https://github.com/tarantool/tarantool/issues/7900" target="_blank">https://github.com/tarantool/tarantool/issues/7900</a><br>* <a href="https://github.com/tarantool/tarantool/issues/781" target="_blank">https://github.com/tarantool/tarantool/issues/781</a><br><br>Sergey Kaplun (5):<br> test: fix setting of {DY}LD_LIBRARY_PATH variables<br> test: introduce module for C tests<br> test: introduce utils.h helper for C tests<br> test: rewrite misclib-getmetrics-capi test in C<br> test: rewrite misclib-sysprof-capi test in C<br><br> .gitignore | 1 +<br> src/CMakeLists.txt | 2 +<br> test/CMakeLists.txt | 2 +<br> test/tarantool-c-tests/CMakeLists.txt | 67 ++++<br> .../misclib-getmetrics-capi-script.lua} | 82 ++---<br> .../misclib-getmetrics-capi.test.c | 341 ++++++++++++++++++<br> .../misclib-sysprof-capi-script.lua | 35 ++<br> .../misclib-sysprof-capi.test.c | 317 ++++++++++++++++<br> test/tarantool-c-tests/test.c | 251 +++++++++++++<br> test/tarantool-c-tests/test.h | 251 +++++++++++++<br> test/tarantool-c-tests/utils.h | 63 ++++<br> test/tarantool-tests/CMakeLists.txt | 11 +-<br> .../misclib-getmetrics-capi/CMakeLists.txt | 1 -<br> .../misclib-getmetrics-capi/testgetmetrics.c | 270 --------------<br> .../misclib-sysprof-capi.test.lua | 54 ---<br> .../misclib-sysprof-capi/CMakeLists.txt | 1 -<br> .../misclib-sysprof-capi/testsysprof.c | 260 -------------<br> 17 files changed, 1374 insertions(+), 635 deletions(-)<br> create mode 100644 test/tarantool-c-tests/CMakeLists.txt<br> rename test/{tarantool-tests/misclib-getmetrics-capi.test.lua => tarantool-c-tests/misclib-getmetrics-capi-script.lua} (68%)<br> create mode 100644 test/tarantool-c-tests/misclib-getmetrics-capi.test.c<br> create mode 100644 test/tarantool-c-tests/misclib-sysprof-capi-script.lua<br> create mode 100644 test/tarantool-c-tests/misclib-sysprof-capi.test.c<br> create mode 100644 test/tarantool-c-tests/test.c<br> create mode 100644 test/tarantool-c-tests/test.h<br> create mode 100644 test/tarantool-c-tests/utils.h<br> delete mode 100644 test/tarantool-tests/misclib-getmetrics-capi/CMakeLists.txt<br> delete mode 100644 test/tarantool-tests/misclib-getmetrics-capi/testgetmetrics.c<br> delete mode 100644 test/tarantool-tests/misclib-sysprof-capi.test.lua<br> delete mode 100644 test/tarantool-tests/misclib-sysprof-capi/CMakeLists.txt<br> delete mode 100644 test/tarantool-tests/misclib-sysprof-capi/testsysprof.c<br><br>--<br>2.34.1</div></div></div></div></blockquote><div> </div></BODY></HTML>