]> code.citadel.org Git - citadel.git/blob - libcitadel/tests/run_tests.sh
More shell calls to all our tests
[citadel.git] / libcitadel / tests / run_tests.sh
1 #!/bin/bash
2
3 RUN_TEST=
4
5 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s 2 -l 50
6
7
8 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b55    &
9 #cat posttest_blob.txt |nc 127.0.0.1 6666
10
11 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b482    &
12 #cat posttest_headers.txt |nc 127.0.0.1 6666
13
14 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b537    &
15 #cat posttest.txt |nc 127.0.0.1 6666
16
17
18 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n1    &
19 #cat posttest_blob.txt |nc 127.0.0.1 6666
20
21 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n13    &
22 #cat posttest_headers.txt |nc 127.0.0.1 6666
23
24 #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n14    &
25 #cat posttest.txt |nc 127.0.0.1 6666
26
27
28 echo running hashlist test
29 $RUN_TEST ./hashlist_test
30
31 echo running strbuf conversion tests
32
33 ./stringbuf_conversion_test
34 cat testdata/emailaddresses/email_recipientstrings.txt |$RUN_TEST stringbuf_conversion_test -i
35
36 echo running general stringbuffer tests
37 $RUN_TEST ./stringbuf_test
38
39
40 echo running mimeparser tests
41
42 for i in testdata/mime/*; do 
43         $RUN_TEST ./mimeparser_test -p -f $i
44         $RUN_TEST ./mimeparser_test -p -d -f $i
45         for j in `./mimeparser_test -p -d -f $i |grep part=|sed "s;part=.*|.*|\([0-9\.]*\)|.*|.*|.*|.*|;\1;"`; do 
46             $RUN_TEST ./mimeparser_test -p -d -f $i -P $j > /dev/null
47         done
48 done
49
50 echo running XDG-mimetype lookup tests
51
52 for i in ../../webcit/static/bgcolor.gif  ../../webcit/static/resizecorner.png ../../webcit/static/roomops.js ./mimeparser_test.c; do 
53     $RUN_TEST ./mime_xdg_lookup_test -f $i -x -i /usr/share/icons/gnome/24x24/mimetypes
54     $RUN_TEST ./mime_xdg_lookup_test -f $i -i /usr/share/icons/gnome/24x24/mimetypes
55 done
56
57 for i in test.txt test.css test.htc test.jpg test.png test.ico test.vcf test.html test.htm test.wml test.wmls test.wmlc test.wmlsc test.wbmp test.blarg a.1 a; do 
58     $RUN_TEST ./mime_xdg_lookup_test -f $i -x -i /usr/share/icons/gnome/24x24/mimetypes
59 done
60