diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /packaging/debian/tests | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/debian/tests')
-rw-r--r-- | packaging/debian/tests/control | 5 | ||||
-rw-r--r-- | packaging/debian/tests/frame-count.lua | 17 | ||||
-rwxr-xr-x | packaging/debian/tests/gui | 9 | ||||
-rwxr-xr-x | packaging/debian/tests/tshark | 8 |
4 files changed, 39 insertions, 0 deletions
diff --git a/packaging/debian/tests/control b/packaging/debian/tests/control new file mode 100644 index 00000000..889d49c9 --- /dev/null +++ b/packaging/debian/tests/control @@ -0,0 +1,5 @@ +Tests: tshark +Depends: tshark + +Tests: gui +Depends: wireshark-qt, xvfb, xauth, at-spi2-core diff --git a/packaging/debian/tests/frame-count.lua b/packaging/debian/tests/frame-count.lua new file mode 100644 index 00000000..b41b4d20 --- /dev/null +++ b/packaging/debian/tests/frame-count.lua @@ -0,0 +1,17 @@ +do + packets = 0; + local function init_listener() + local tap = Listener.new("frame") + function tap.reset() + packets = 0; + end + function tap.packet(pinfo,tvb, ip) + packets = packets + 1 + end + function tap.draw() + print("Packet count:", packets) + os.exit(0) + end + end + init_listener() +end diff --git a/packaging/debian/tests/gui b/packaging/debian/tests/gui new file mode 100755 index 00000000..38ad706d --- /dev/null +++ b/packaging/debian/tests/gui @@ -0,0 +1,9 @@ +#!/bin/sh +# autopkgtest check: Run wireshark GUI to see basic functionality working +# Author: Balint Reczey <balint@balintreczey.hu> + +set -e + +xvfb-run --auto-servernum -s '-screen 0 1920x1080x24 +extension GLX' wireshark -Xlua_script:debian/tests/frame-count.lua test/captures/dhcp.pcap 2>&1 + +echo "run: OK" diff --git a/packaging/debian/tests/tshark b/packaging/debian/tests/tshark new file mode 100755 index 00000000..020574f7 --- /dev/null +++ b/packaging/debian/tests/tshark @@ -0,0 +1,8 @@ +#!/bin/sh +# autopkgtest check: Run tshark to see basic functionality working +# Author: Balint Reczey <balint@balintreczey.hu> + +set -e + +tshark --version +echo "run: OK" |