From ce86df0d3f16db0913ae909c61bedac3262239c9 Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 11 May 2009 06:51:57 +0000 Subject: [PATCH] Added test script git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@384 3cdefd35-fc62-479d-8e8d-bae585ffb9ca --- tests/testbu.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/testbu.sh diff --git a/tests/testbu.sh b/tests/testbu.sh new file mode 100755 index 0000000..d4d13ca --- /dev/null +++ b/tests/testbu.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +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('?')" + +for ((i=0;i<=5;i++)) +do + echo Running query "$i" : "${QUERY[$i]}" + ../main -c medline.srx "${QUERY[$i]}" > q_"$i".time & + + 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 -- 2.17.1