ref: bd7e601f244a8da12def26966afec3d5c0c338af
parent: be9d2d0b1ffac9b27c7ab326c5912aa8e25d927e
author: mkf <mkf@cloud9p.org>
date: Wed Jul 31 03:20:48 EDT 2024
import tests
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,5 @@
#!/bin/sh
file=tests/0.pcap
src=dnsparser.c
-cc -g -Wall -Wno-pointer-sign -lpcap -o getdns $src # && ( ./a.out $file || gdb -q -ex run --args a.out $file )
+out=dnsparser
+cc -g -Wall -Wno-pointer-sign -lpcap -o $out $src # && ( ./a.out $file || gdb -q -ex run --args $out $file )
--- /dev/null
+++ b/test.sh
@@ -1,0 +1,7 @@
+#!/bin/sh
+
+./build.sh
+for i in tests/*.pcap
+do
+ ./parsedns $i
+done
\ No newline at end of file
binary files /dev/null b/tests/0.pcap differ
binary files /dev/null b/tests/1.pcap differ
binary files /dev/null b/tests/2.pcap differ
binary files /dev/null b/tests/3.pcap differ