From: Leandro Lucarella Date: Mon, 28 Jun 2004 04:01:51 +0000 (+0000) Subject: Se agrega script para hacer pruebas con gzip y bzip (uso: ./test_calgary_zip.sh ... X-Git-Tag: svn_import~20 X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/commitdiff_plain/0f42c4e5799b1dcdc60f675e664810cb72a481da?ds=sidebyside;hp=6819eab13b6d0fa78eef1dc3a6ae6af88c5f8af1 Se agrega script para hacer pruebas con gzip y bzip (uso: ./test_calgary_zip.sh [gzip|bzip]). --- diff --git a/calgary_tests/test_calgary_zip.sh b/calgary_tests/test_calgary_zip.sh new file mode 100755 index 0000000..c03b8a4 --- /dev/null +++ b/calgary_tests/test_calgary_zip.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Falta parĂ¡metro: ./test_calgary_zip.sh [gzip|bzip2]" + exit 1 +fi + +if [ ! -e bib ] ; then + echo "Descomprimiendo Calgary Corpus Suite ..." + if [ ! -e calgary.tar.bz2 ] ; then + echo "NO EXISTE cagary.tar.gz ... abortando" + fi + tar -xjf calgary.tar.bz2 +fi + +for file in bib book1 book2 geo news obj1 obj2 paper1 paper2 paper3 paper4 \ + paper5 paper6 pic progc progl progp trans; do + echo "====================================" + time $1 -c $file > $file.$1 2> /dev/null + echo "print '$file: ', `stat -c "%s" $file.$1`*8.0/`stat -c "%s" $file`, ' bpb'" | python +done +echo "====================================" +