X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftestbu.sh;h=49f6191e4147df2c1878dbc679737170ddba4c55;hb=cf6d366b25132eea7b0f1966c11d034d748af0fa;hp=752804d74b13d4f0a8e6e44aa82daed9a4fc7de7;hpb=329088598ab63bc2d67ff0dfc4f54e90f5d4f283;p=SXSI%2Fxpathcomp.git diff --git a/tests/testbu.sh b/tests/testbu.sh index 752804d..49f6191 100755 --- a/tests/testbu.sh +++ b/tests/testbu.sh @@ -4,18 +4,14 @@ declare -a QUERY QUERY[0]="/descendant::MedlineCitation/descendant::*/contains('brain')" QUERY[1]="/descendant::MedlineCitation/descendant::Country/contains('AUSTRALIA')" QUERY[2]="/descendant::Country/contains('AUSTRALIA')" -QUERY[3]="/descendant::*/contains('AUSTRALIA')" -QUERY[4]="/descendant::*/contains('?')" -QUERY[5]="/descendant::MedlineCitation/descendant::*/contains('?')" +QUERY[3]="/descendant::*/contains('1930')" +QUERY[4]="/descendant::MedlineCitation/descendant::*/contains('1930')" +QUERY[5]="/descendant::MedlineCitation/Article/AuthorList/Author/LastName/startswith('Bar')" +QUERY[6]="/descendant::MedlineCitation[MedlineJournalInfo/Country/endswith('LAND')]" -for ((i=0;i<=5;i++)) +for ((i=0;i<=6;i++)) do echo Running query "$i" : "${QUERY[$i]}" - ../main -b medline.srx "${QUERY[$i]}" > q_"$i".time 2>&1 & + ../main -f 0 -b medline_05.srx "${QUERY[$i]}" - while pidof main >/dev/null 2>&1 - do - cat /proc/`pidof main`/status | grep "VmRSS" >> q_"$i".mem - sleep 4 - done -done \ No newline at end of file +done