File: run_tests.sh

package info (click to toggle)
libcitadel 917-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,808 kB
  • sloc: ansic: 15,131; sh: 8,304; makefile: 302
file content (71 lines) | stat: -rwxr-xr-x 2,188 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash

case $1 in
    valgrind)
	RUN_TEST='valgrind --log-file=/tmp/run_tests_valgrind.%p --show-reachable=yes --leak-check=full'
	;;
    default)
	RUN_TEST=
	;;
esac
#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s 2 -l 50


#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b55    &
#cat posttest_blob.txt |nc 127.0.0.1 6666

#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b482    &
#cat posttest_headers.txt |nc 127.0.0.1 6666

#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -b537    &
#cat posttest.txt |nc 127.0.0.1 6666


#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n1    &
#cat posttest_blob.txt |nc 127.0.0.1 6666

#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n13    &
#cat posttest_headers.txt |nc 127.0.0.1 6666

#./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s2 -n14    &
#cat posttest.txt |nc 127.0.0.1 6666

echo running wildfire tests
$RUN_TEST ./wildfire_test
echo running XDG-mimetype lookup tests

for i in ../../webcit/static/bgcolor.gif  ../../webcit/static/resizecorner.png ../../webcit/static/roomops.js ./mimeparser_test.c; do 
    $RUN_TEST ./mime_xdg_lookup_test -f $i -x -i /usr/share/icons/gnome/24x24/mimetypes
    $RUN_TEST ./mime_xdg_lookup_test -f $i -i /usr/share/icons/gnome/24x24/mimetypes
done

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 
    $RUN_TEST ./mime_xdg_lookup_test -f $i -x -i /usr/share/icons/gnome/24x24/mimetypes
done

echo running hashlist test
$RUN_TEST ./hashlist_test

echo running strbuf conversion tests

$RUN_TEST ./stringbuf_conversion_test
cat testdata/emailaddresses/email_recipientstrings.txt |$RUN_TEST ./stringbuf_conversion_test -i

echo running general stringbuffer tests
$RUN_TEST ./stringbuf_test

echo running string tools tests
$RUN_TEST ./stripallbut_test

echo running mimeparser tests

for i in testdata/mime/*; do 
	$RUN_TEST ./mimeparser_test -f $i
	$RUN_TEST ./mimeparser_test -p -f $i
	$RUN_TEST ./mimeparser_test -p -d -f $i
	for j in `./mimeparser_test -p -d -f $i |grep part=|sed "s;part=.*|.*|\([0-9\.]*\)|.*|.*|.*|.*|;\1;"`; do 
	    $RUN_TEST ./mimeparser_test -p -d -f $i -P $j > /dev/null
	done
done