]> code.citadel.org Git - citadel.git/blob - libcitadel/tests/run_tests.sh
add scripts to run and test and have code coverage analysis across them.
[citadel.git] / libcitadel / tests / run_tests.sh
1 #!/bin/bash
2
3
4 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s 2 -l 50
5
6
7 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b55    &
8 #cat posttest_blob.txt |nc 127.0.0.1 6666
9
10 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b482    &
11 #cat posttest_headers.txt |nc 127.0.0.1 6666
12
13 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b537    &
14 #cat posttest.txt |nc 127.0.0.1 6666
15
16
17 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n1    &
18 #cat posttest_blob.txt |nc 127.0.0.1 6666
19
20 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n13    &
21 #cat posttest_headers.txt |nc 127.0.0.1 6666
22
23 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n14    &
24 #cat posttest.txt |nc 127.0.0.1 6666
25
26
27 echo running hashlist test
28 ./hashlist_test
29
30 echo running strbuf conversion tests
31
32 ./stringbuf_conversion_test
33 cat testdata/emailaddresses/email_recipientstrings.txt |stringbuf_conversion_test -i
34
35 echo running general stringbuffer tests
36 ./stringbuf_test
37
38
39 echo running mimeparser tests
40
41 for i in testdata/mime/*; do 
42         ./mimeparser_test -p -f $i
43         ./mimeparser_test -p -d -f $i
44 done
45
46 echo running XDG-mimetype lookup tests
47
48 for i in ../../webcit/static/bgcolor.gif  ../../webcit/static/resizecorner.png ../../webcit/static/roomops.js ./mimeparser_test.c; do 
49     ./mime_xdg_lookup_test -f $i -x
50     ./mime_xdg_lookup_test -f $i
51 done