blob: 0ec702cc27173a5f0e8494121ded76c971048e33 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env sh
URL_PREFIX='https://www.wireshark.org/download/automated/captures/'
TRACES="$(wget --no-verbose -O - "${URL_PREFIX}" | sed -n 's|^.*<a href="\([^"]\+\).pcap">.*$|\1.pcap|gp')"
CURDIR="$(dirname "${0}")/../tests/pcap"
for trace in ${TRACES}; do
destfile="${CURDIR}/${trace}"
test -r "${destfile}" || wget --no-verbose "${URL_PREFIX}${trace}" -O "${destfile}"
done
|