Improved testing application
Removed warning from the quic dissector Travis now runs regression tests
This commit is contained in:
@@ -16,3 +16,7 @@ script:
|
||||
- ./configure
|
||||
- make
|
||||
|
||||
after_script:
|
||||
- cd tests
|
||||
- ./do.sh
|
||||
|
||||
@@ -131,7 +131,7 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, struct n
|
||||
ver_offs = connect_id(packet->payload[0]);
|
||||
|
||||
if (ver_offs != -1){
|
||||
vers = packet->payload + ver_offs;
|
||||
vers = (unsigned char*)(packet->payload + ver_offs);
|
||||
|
||||
if ((vers[0] == 'Q' && vers[1] == '0') &&
|
||||
((vers[2] == '2' && (vers[3] == '5' || vers[3] == '4' || vers[3] == '3' || vers[3] == '2' ||
|
||||
|
||||
+4
-2
@@ -1,7 +1,7 @@
|
||||
|
||||
READER=../example/ndpiReader
|
||||
|
||||
|
||||
RC=0
|
||||
PCAPS=`cd pcap; /bin/ls *.pcap`
|
||||
|
||||
build_results() {
|
||||
@@ -25,6 +25,7 @@ check_results() {
|
||||
echo "$f\t ERROR"
|
||||
echo "$CMD"
|
||||
diff result/$f.out /tmp/reader.out
|
||||
RC=1
|
||||
fi
|
||||
|
||||
/bin/rm /tmp/reader.out
|
||||
@@ -32,6 +33,7 @@ check_results() {
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
build_results
|
||||
check_results
|
||||
|
||||
exit $RC
|
||||
Reference in New Issue
Block a user