"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test-pdfs.sh" between
tcpflow-1.4.4.tar.gz and tcpflow-1.4.5.tar.gz

About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.

test-pdfs.sh  (tcpflow-1.4.4):test-pdfs.sh  (tcpflow-1.4.5)
#!/bin/sh #!/bin/sh
# #
case x"$srcdir" in
x)
echo No srcdir specified. Assuming $0 is run locally
TCPFLOW=../src/tcpflow
;;
x.)
echo srcdir is . Assuming $0 is run locally from make check
TCPFLOW=../src/tcpflow
;;
*)
echo srcdir is $srcdir Assuming $0 is run from make distcheck
TCPFLOW=../../_build/src/tcpflow
;;
esac
cmd() { . $srcdir/test-subs.sh
echo $1;
$1;
}
# create PDFs for all of the pcap files # create PDFs for all of the pcap files
for i in *.pcap for i in $DMPDIR/*.pcap
do do
echo $i echo $i
cmd "$TCPFLOW -Fg -e netviz -o tmp$$ -r $i" cmd "$TCPFLOW -Fg -e netviz -o tmp$$ -r $i"
cmd "mv tmp$$/report.pdf `basename $i .pcap`.pdf" cmd "mv tmp$$/report.pdf `basename $i .pcap`.pdf"
echo "" echo ""
/bin/rm -rf tmp$$ /bin/rm -rf tmp$$ test?.pdf
done done
 End of changes. 4 change blocks. 
20 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS