Skip to content

Commit a90c4aa

Browse files
Another diagnostic run
1 parent 19f8b8b commit a90c4aa

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/tests/Asx-AsxSecurities-Ntp-Itch-v1-05-Test.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,29 @@ tail -20 /usr/share/wireshark/init.lua 2>/dev/null || echo "init.lua not at expe
1515
echo "--- root/superuser refs in init.lua ---"
1616
grep -n -E 'running_superuser|disable_lua|superuser' /usr/share/wireshark/init.lua 2>/dev/null || echo "no matches"
1717

18+
echo "--- minimal lua script test ---"
19+
cat > /tmp/probe.lua <<'EOF'
20+
local f = io.open("/tmp/probe-touched.log", "w")
21+
if f then f:write("trivial script ran\n"); f:close() end
22+
io.stderr:write("[probe] trivial script ran (stderr)\n")
23+
print("[probe] trivial script ran (print)")
24+
EOF
25+
rm -f /tmp/probe-touched.log
26+
tshark -r "omi-data-packets/Asx/Ntp.Itch.v1.05/AddOrderMessage.pcap" -X "lua_script:/tmp/probe.lua" -T json > /dev/null 2> /tmp/probe.stderr || true
27+
echo "trivial script stderr:"
28+
cat /tmp/probe.stderr
29+
if [ -f /tmp/probe-touched.log ]; then
30+
echo "TRIVIAL PROBE RAN — Lua scripting works in this container"
31+
cat /tmp/probe-touched.log
32+
else
33+
echo "TRIVIAL PROBE DID NOT RUN — Lua scripts are completely disabled in this tshark"
34+
fi
35+
36+
echo "--- tshark log-level debug for Lua ---"
37+
tshark -r "omi-data-packets/Asx/Ntp.Itch.v1.05/AddOrderMessage.pcap" --log-level=debug --log-domain=Lua -X "lua_script:/tmp/probe.lua" -T json > /dev/null 2> /tmp/probe-debug.stderr || true
38+
echo "lua-debug stderr (first 50 lines):"
39+
head -n 50 /tmp/probe-debug.stderr || true
40+
1841
rm -f /tmp/asx-itch-load.log
1942

2043
tshark \

0 commit comments

Comments
 (0)