From 8adf8f8074e001d2eb3a3b9146f8a9278c90b9fa Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 5 Dec 2010 15:47:18 +0100 Subject: [PATCH] More shell calls to all our tests - look up all our staticaly coded mimetypes from randomly generated filenames - read all contents we find across all test mimecontainers. --- libcitadel/tests/run_tests.sh | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/libcitadel/tests/run_tests.sh b/libcitadel/tests/run_tests.sh index 0c74dc782..d5f9ca21d 100755 --- a/libcitadel/tests/run_tests.sh +++ b/libcitadel/tests/run_tests.sh @@ -1,5 +1,6 @@ #!/bin/bash +RUN_TEST= #./stringbuf_IO_test -p 6666 -i 0.0.0.0 -s 2 -l 50 @@ -25,27 +26,35 @@ echo running hashlist test -./hashlist_test +$RUN_TEST ./hashlist_test echo running strbuf conversion tests ./stringbuf_conversion_test -cat testdata/emailaddresses/email_recipientstrings.txt |stringbuf_conversion_test -i +cat testdata/emailaddresses/email_recipientstrings.txt |$RUN_TEST stringbuf_conversion_test -i echo running general stringbuffer tests -./stringbuf_test +$RUN_TEST ./stringbuf_test echo running mimeparser tests for i in testdata/mime/*; do - ./mimeparser_test -p -f $i - ./mimeparser_test -p -d -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 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 - ./mime_xdg_lookup_test -f $i -x - ./mime_xdg_lookup_test -f $i -done \ No newline at end of file + $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 + -- 2.39.2