Improved testing application

Removed warning from the quic dissector
Travis now runs regression tests
This commit is contained in:
Luca Deri
2015-05-22 09:03:01 +02:00
parent dcf9af732d
commit 43bf9df219
3 changed files with 60 additions and 54 deletions
+4
View File
@@ -16,3 +16,7 @@ script:
- ./configure - ./configure
- make - make
after_script:
- cd tests
- ./do.sh
+1 -1
View File
@@ -131,7 +131,7 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, struct n
ver_offs = connect_id(packet->payload[0]); ver_offs = connect_id(packet->payload[0]);
if (ver_offs != -1){ if (ver_offs != -1){
vers = packet->payload + ver_offs; vers = (unsigned char*)(packet->payload + ver_offs);
if ((vers[0] == 'Q' && vers[1] == '0') && if ((vers[0] == 'Q' && vers[1] == '0') &&
((vers[2] == '2' && (vers[3] == '5' || vers[3] == '4' || vers[3] == '3' || vers[3] == '2' || ((vers[2] == '2' && (vers[3] == '5' || vers[3] == '4' || vers[3] == '3' || vers[3] == '2' ||
+4 -2
View File
@@ -1,7 +1,7 @@
READER=../example/ndpiReader READER=../example/ndpiReader
RC=0
PCAPS=`cd pcap; /bin/ls *.pcap` PCAPS=`cd pcap; /bin/ls *.pcap`
build_results() { build_results() {
@@ -25,6 +25,7 @@ check_results() {
echo "$f\t ERROR" echo "$f\t ERROR"
echo "$CMD" echo "$CMD"
diff result/$f.out /tmp/reader.out diff result/$f.out /tmp/reader.out
RC=1
fi fi
/bin/rm /tmp/reader.out /bin/rm /tmp/reader.out
@@ -32,6 +33,7 @@ check_results() {
done done
} }
build_results build_results
check_results check_results
exit $RC