]> code.citadel.org Git - citadel.git/blob - libcitadel/tests/run_tests.sh
Add test running our wildfire sample code
[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 echo running wildfire tests
28 $RUN_TEST ./wildfire_test
29 echo running XDG-mimetype lookup tests
30
31 for i in ../../webcit/static/bgcolor.gif  ../../webcit/static/resizecorner.png ../../webcit/static/roomops.js ./mimeparser_test.c; do 
32     $RUN_TEST ./mime_xdg_lookup_test -f $i -x -i /usr/share/icons/gnome/24x24/mimetypes
33     $RUN_TEST ./mime_xdg_lookup_test -f $i -i /usr/share/icons/gnome/24x24/mimetypes
34 done
35
36 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 
37     $RUN_TEST ./mime_xdg_lookup_test -f $i -x -i /usr/share/icons/gnome/24x24/mimetypes
38 done
39
40 echo running hashlist test
41 $RUN_TEST ./hashlist_test
42
43 echo running strbuf conversion tests
44
45 $RUN_TEST ./stringbuf_conversion_test
46 cat testdata/emailaddresses/email_recipientstrings.txt |$RUN_TEST ./stringbuf_conversion_test -i
47
48 echo running general stringbuffer tests
49 $RUN_TEST ./stringbuf_test
50
51
52 echo running mimeparser tests
53
54 for i in testdata/mime/*; do 
55         $RUN_TEST ./mimeparser_test -f $i
56         $RUN_TEST ./mimeparser_test -p -f $i
57         $RUN_TEST ./mimeparser_test -p -d -f $i
58         for j in `./mimeparser_test -p -d -f $i |grep part=|sed "s;part=.*|.*|\([0-9\.]*\)|.*|.*|.*|.*|;\1;"`; do 
59             $RUN_TEST ./mimeparser_test -p -d -f $i -P $j > /dev/null
60         done
61 done
62
63