Yanked all libbcc.so tests out of test/lua/test_standalone.sh
authorMichael Przybylski <mike.przybylski@appdynamics.com>
Fri, 20 Jan 2017 09:10:27 +0000 (01:10 -0800)
committerMichael Przybylski <mike.przybylski@appdynamics.com>
Thu, 9 Feb 2017 14:57:57 +0000 (06:57 -0800)
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

index 4e45a77..7786ac9 100755 (executable)
@@ -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