Commit 7f9e8381 authored by Sylvain Schmitz's avatar Sylvain Schmitz

fixed various bugs

parent a71b7d90
all: extensions.xml gains-ext.tex countfuns_all.dat countfuns_xslt.dat countfuns_xquery.dat
all: extensions.xml gains-ext.tex countfuns_all.dat countfuns_xslt.dat countfuns_xquery.dat non-standard-xquery.xml non-standard-xslt.xml non-standard-all.xml
countfuns_all.dat: countfuns.pl $(wildcard ../../benchmark/*-full.xml)
XPPSUF="all" ./countfuns.pl ../../benchmark/*-full.xml
......@@ -20,10 +20,13 @@ gains-ext.tex: gains.sh $(wildcard ../../benchmark/*-full.xml)
./gains.sh > gains-ext.tex
non-standard-xquery.xml: nonstandard.pl ../../benchmark/*-full.xml
./nonstandard.pl `grep 'type="xquery"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > non-standard-xquery.xml
./nonstandard.pl xquery `grep 'type="xquery"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@
non-standard-xslt.xml: nonstandard.pl ../../benchmark/*-full.xml
./nonstandard.pl `grep 'type="xslt"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > non-standard-xslt.xml
./nonstandard.pl xslt `grep 'type="xslt"' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@
non-standard-all.xml: nonstandard.pl ../../benchmark/*-full.xml
./nonstandard.pl all `grep 'href' ../tex/benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > $@
%.reasons: %.xml
xmlstarlet sel -t -v '//xpath/schemas/validation[@valid="no" and contains(@schema, "efo-extra")]/text()' -n $*.xml | sort | uniq -c > $*.reasons
......
......@@ -153,7 +153,7 @@ sub count_showcov {
my $n = count_show($_[0],$_[1]);
$totals{$_[2]} = $n;
my $d = reverse join ',', unpack '(A3)*', reverse $n;
printf CF "%s queries (%.2f%%)\n", $d, 100*$n/$totals{"tot"};
printf CF "%s queries (%.2f\\%%)\n", $d, 100*$n/$totals{"tot"};
my $captured = count($_[0]."[$infulls]");
printf STDERR " among which %d (%.2f%%) are captured in full\n",
$captured, 100*$captured/$n;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment