From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id CB9906C7D3; Thu, 4 Feb 2021 02:23:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CB9906C7D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1612394634; bh=f2mxUTYSjlR4oeBkmucMzqfoN5cuB8JEJHjWDxbv/z4=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Bj3ReCeySntLitEEbW7SrhGeBCamigiVFDVXWPQMvED5o1MR9MZSjY8TLJYGi0DMl 2pQ6XfNDU5qX/STz43HgB9SWV/XVLVLFt9kAmtju6OArSJAxf2DycP+B5hPcaiaa2+ ibUcMaUKHmY+J0CX8TU1lbJE7I4SmOnZQqE9LmK8= Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 014F36C7D3 for ; Thu, 4 Feb 2021 02:22:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 014F36C7D3 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1l7RTb-0008Pr-1B; Thu, 04 Feb 2021 02:22:23 +0300 To: Sergey Kaplun , "Alexander V. Tikhonov" Date: Thu, 4 Feb 2021 02:22:17 +0300 Message-Id: <2ac28542e4eac2031e5c30b279aabd3bcacbd7a1.1612390822.git.imun@tarantool.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD953AC099BC0052A9CAEF2BF42A2A7729330F8028A4C0D8125182A05F5380850409EE8E16FA36050463A3904B3519BD07CD48C8D06658AA000FFA8C51467FEFE7B X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78C6616F30072131EEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006375F0BD5CF353A411D8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC5A75D8C6D2262C882D924FFC4E5E1E71571AFCF150F87361389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0A29E2F051442AF778941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6D082881546D93491CC7F00164DA146DA6F5DAA56C3B73B23C77107234E2CFBA567F23339F89546C55F5C1EE8F4F765FC3BBA039523A4428275ECD9A6C639B01BBD4B6F7A4D31EC0BC0CAF46E325F83A522CA9DD8327EE4931B544F03EFBC4D5725A4AB119743A3B3C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C823F58AE0C7795A91422D11E54645BAD29601DB02DA88BC79C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF31C0090ACECF247D699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34C75F910DBB8BE898F95BE74414F8A06D2C1F4CCA8600E184049092050364A26EC7AB3617D622794C1D7E09C32AA3244CCAE5F88493575D70B1F8BD2B4BB5CD2F795D98D676DD64D0927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojSeaWuhK039J6R8PpxQGwtg== X-Mailru-Sender: 689FA8AB762F73936BC43F508A06382239C444BE423BADDD5204743F0B6BA2EAA7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH 3/3] ci: enable LuaJIT tests in CI X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patch adds LuaJIT tests to every CI job type except the one for static build testing routine on OSX: there is no way to run LuaJIT tests for out of source build on OSX due to SIP[1]. [1]: https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/FileSystemProtections/FileSystemProtections.html Follows up #4862 Signed-off-by: Igor Munkin --- .travis.mk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.travis.mk b/.travis.mk index 50524007c..c2b79a4e5 100644 --- a/.travis.mk +++ b/.travis.mk @@ -134,6 +134,7 @@ build_debian: configure_debian test_debian_no_deps: build_debian cd test && /usr/bin/python test-run.py --force $(TEST_RUN_EXTRA_PARAMS) + make LuaJIT-test test_debian: deps_debian test_debian_no_deps @@ -148,6 +149,7 @@ build_coverage_debian: test_coverage_debian_no_deps: build_coverage_debian # Enable --long tests for coverage cd test && /usr/bin/python test-run.py --force $(TEST_RUN_EXTRA_PARAMS) --long + make LuaJIT-test lcov --compat-libtool --directory src/ --capture --output-file coverage.info.tmp \ --rc lcov_branch_coverage=1 --rc lcov_function_coverage=1 lcov --compat-libtool --remove coverage.info.tmp 'tests/*' 'third_party/*' '/usr/*' \ @@ -213,6 +215,10 @@ test_asan_debian_no_deps: build_asan_debian LSAN_OPTIONS=suppressions=${PWD}/asan/lsan.supp \ ASAN_OPTIONS=heap_profile=0:unmap_shadow_on_exit=1:detect_invalid_pointer_pairs=1:symbolize=1:detect_leaks=1:dump_instruction_bytes=1:print_suppressions=0 \ ./test-run.py --force $(TEST_RUN_EXTRA_PARAMS) + ASAN=ON \ + LSAN_OPTIONS=suppressions=${PWD}/asan/lsan.supp \ + ASAN_OPTIONS=heap_profile=0:unmap_shadow_on_exit=1:detect_invalid_pointer_pairs=1:symbolize=1:detect_leaks=1:dump_instruction_bytes=1:print_suppressions=0 \ + make LuaJIT-test test_asan_debian: deps_debian deps_buster_clang_11 test_asan_debian_no_deps @@ -237,6 +243,7 @@ test_static_build_cmake_linux: make -j && ctest -V cd test && /usr/bin/python test-run.py --force \ --builddir ${PWD}/static-build/tarantool-prefix/src/tarantool-build $(TEST_RUN_EXTRA_PARAMS) + make -C ${PWD}/static-build/tarantool-prefix/src/tarantool-build LuaJIT-test # ################### # Static Analysis @@ -274,6 +281,7 @@ test_oos_no_deps: build_oos ${OOS_SRC_PATH}/test/test-run.py \ --builddir ${OOS_BUILD_PATH} \ --vardir ${OOS_BUILD_PATH}/test/var --force + make -C ${OOS_BUILD_PATH} LuaJIT-test test_oos: deps_debian test_oos_no_deps @@ -339,6 +347,7 @@ INIT_TEST_ENV_OSX=\ test_osx_no_deps: build_osx ${INIT_TEST_ENV_OSX}; \ cd test && ./test-run.py --vardir ${OSX_VARDIR} --force $(TEST_RUN_EXTRA_PARAMS) + make LuaJIT-test test_osx: deps_osx test_osx_no_deps @@ -362,6 +371,16 @@ test_static_build_cmake_osx: base_deps_osx cd test && ./test-run.py --vardir ${OSX_VARDIR} \ --builddir ${PWD}/static-build/tarantool-prefix/src/tarantool-build \ --force $(TEST_RUN_EXTRA_PARAMS) + # FIXME: Hell with SIP on OSX: Tarantool (and also LuaJIT) + # is built out of sources, so the test located in the + # source directory fails to load the shared library built + # in the binary directory via dlopen(3). + # For more info proceed the link below: + # https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/FileSystemProtections/FileSystemProtections.html + # Do not run LuaJIT related tests for this built until the + # issue is not resolved. + # + # make -C ${PWD}/static-build/tarantool-prefix/src/tarantool-build LuaJIT-test ########### @@ -378,6 +397,7 @@ build_freebsd: test_freebsd_no_deps: build_freebsd cd test && python2.7 test-run.py --force $(TEST_RUN_EXTRA_PARAMS) + make LuaJIT-test test_freebsd: deps_freebsd test_freebsd_no_deps -- 2.25.0