Skip to content

Commit 3a1bc79

Browse files
New diagnostics
1 parent 9bc2e08 commit 3a1bc79

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ ls -la "omi-data-packets/Asx/Ntp.Itch.v1.05/AddOrderMessage.pcap" || echo "PCAP
88
echo "tshark Lua build flag:"
99
tshark -v 2>&1 | grep -i -E 'with lua|without lua' || echo "no lua mention in tshark -v output"
1010

11+
rm -f /tmp/asx-itch-load.log
12+
1113
tshark \
1214
-r "omi-data-packets/Asx/Ntp.Itch.v1.05/AddOrderMessage.pcap" \
1315
-X "lua_script:Asx/Asx_AsxSecurities_Ntp_Itch_v1_05_Dissector.lua" \
1416
-T json \
1517
> Asx.AsxSecurities.Ntp.Itch.v1.05.AddOrderMessage.json 2> Asx.AsxSecurities.Ntp.Itch.v1.05.AddOrderMessage.json.stderr \
1618
|| { echo "--- tshark FAILED (AddOrderMessage) ---"; cat Asx.AsxSecurities.Ntp.Itch.v1.05.AddOrderMessage.json.stderr; exit 1; }
19+
20+
echo "--- script load file probe ---"
21+
if [ -f /tmp/asx-itch-load.log ]; then
22+
echo "PROBE FILE EXISTS — script chunk executed:"
23+
cat /tmp/asx-itch-load.log
24+
else
25+
echo "PROBE FILE MISSING — script chunk never ran"
26+
fi
1727
if [ -s Asx.AsxSecurities.Ntp.Itch.v1.05.AddOrderMessage.json.stderr ]; then echo "--- tshark stderr (AddOrderMessage) ---"; cat Asx.AsxSecurities.Ntp.Itch.v1.05.AddOrderMessage.json.stderr; fi
1828
echo "--- tshark diagnostic (AddOrderMessage) ---"
1929
tshark -v | head -n 1

Asx/Asx_AsxSecurities_Ntp_Itch_v1_05_Dissector.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
-- Please see end of file for rules and regulations
55
-----------------------------------------------------------------------
66

7-
-- Diagnostic: confirms script started loading
7+
-- Diagnostic: writes to a file so we can check after tshark runs
8+
do
9+
local f = io.open("/tmp/asx-itch-load.log", "a")
10+
if f then
11+
f:write("script load started at " .. os.date() .. "\n")
12+
f:close()
13+
end
14+
end
815
io.stderr:write("[asx-itch] script load started\n")
16+
print("[asx-itch] script load started (print)")
917

1018
-- Asx AsxSecurities Ntp Itch 1.05 Protocol
1119
local omi_asx_asxsecurities_ntp_itch_v1_05 = Proto("Asx.AsxSecurities.Ntp.Itch.v1.05.Lua", "Asx AsxSecurities Ntp Itch 1.05")

0 commit comments

Comments
 (0)