From f487c79f3d857611d81017750863f5e554bff9a5 Mon Sep 17 00:00:00 2001 From: Michael Przybylski Date: Fri, 20 Jan 2017 01:10:27 -0800 Subject: [PATCH] Yanked all libbcc.so tests out of test/lua/test_standalone.sh On 30 April 2016 Vicent Marti modified src/lua/CMakeLists.txt to statically link libbcc into bcc-lua. This causes one of the tests in test/lua/test_standalone.sh to fail, and renders all of the tests related to libbcc.so obsolete. --- tests/lua/test_standalone.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/lua/test_standalone.sh b/tests/lua/test_standalone.sh index 4e45a77..7786ac9 100755 --- a/tests/lua/test_standalone.sh +++ b/tests/lua/test_standalone.sh @@ -19,23 +19,9 @@ if ldd bcc-lua | grep -q luajit; then fail "bcc-lua depends on libluajit" fi -rm -f libbcc.so probe.lua +rm -f probe.lua echo "return function(BPF) print(\"Hello world\") end" > probe.lua -if ./bcc-lua "probe.lua"; then - fail "bcc-lua runs without libbcc.so" -fi - -if ! env LIBBCC_SO_PATH=../cc/libbcc.so ./bcc-lua "probe.lua"; then - fail "bcc-lua cannot load libbcc.so through the environment" -fi - -ln -s ../cc/libbcc.so - -if ! ./bcc-lua "probe.lua"; then - fail "bcc-lua cannot find local libbcc.so" -fi - PROBE="../../../examples/lua/offcputime.lua" if ! sudo ./bcc-lua "$PROBE" -d 1 >/dev/null 2>/dev/null; then -- 2.7.4