Skip to content

Commit

Permalink
Yanked all libbcc.so tests out of test/lua/test_standalone.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Michael Przybylski committed Feb 9, 2017
1 parent 7fb7bfa commit f487c79
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/lua/test_standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f487c79

Please sign in to comment.