1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

tests: Remove old timing tests

This commit is contained in:
Nick Wellnhofer 2024-06-22 04:00:33 +02:00
parent f06fc933cd
commit 0a279e2f68
5 changed files with 1 additions and 118 deletions

1
.gitignore vendored
View File

@ -21,7 +21,6 @@
/testrecurse /testrecurse
# Tests # Tests
/dba100000.xml
/missing.lst /missing.lst
/runsuite.log /runsuite.log
/runxmlconf.log /runxmlconf.log

View File

@ -198,7 +198,7 @@ asan:
# Old test suite. This should be ported to C. # Old test suite. This should be ported to C.
OLD_TESTS = Timingtests OLD_TESTS =
if WITH_SCHEMAS_SOURCES if WITH_SCHEMAS_SOURCES
if WITH_PYTHON if WITH_PYTHON
OLD_TESTS += RelaxNGPythonTests SchemasPythonTests OLD_TESTS += RelaxNGPythonTests SchemasPythonTests
@ -207,38 +207,9 @@ endif
if WITH_SCHEMATRON_SOURCES if WITH_SCHEMATRON_SOURCES
OLD_TESTS += Schematrontests OLD_TESTS += Schematrontests
endif endif
if WITH_VALID_SOURCES
OLD_TESTS += VTimingtests
endif
tests: $(OLD_TESTS) tests: $(OLD_TESTS)
dba100000.xml: dbgenattr.pl
@echo "## generating dba100000.xml"
@($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > dba100000.xml)
Timingtests: xmllint$(EXEEXT) dba100000.xml
@echo "## Timing tests to try to detect performance"
@echo "## as well a memory usage breakage when streaming"
@echo "## 1/ using the file interface"
@echo "## 2/ using the memory interface"
@echo "## 3/ repeated DOM parsing"
@echo "## 4/ repeated DOM validation"
-@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
exit 0)
-@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
exit 0)
-@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
exit 0)
VTimingtests: xmllint$(EXEEXT)
-@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
exit 0)
Schematrontests: xmllint$(EXEEXT) Schematrontests: xmllint$(EXEEXT)
@echo "## Schematron regression tests" @echo "## Schematron regression tests"
-@(for i in $(srcdir)/test/schematron/*.sct ; do \ -@(for i in $(srcdir)/test/schematron/*.sct ; do \
@ -306,7 +277,6 @@ EXTRA_DIST = Copyright check-xml-test-suite.py gentest.py \
libxml2-config.cmake.in autogen.sh \ libxml2-config.cmake.in autogen.sh \
libxml.h \ libxml.h \
genUnicode.py \ genUnicode.py \
dbgen.pl dbgenattr.pl \
libxml2.syms timsort.h \ libxml2.syms timsort.h \
README.zOS README.md \ README.zOS README.md \
CMakeLists.txt config.h.cmake.in libxml2-config.cmake.cmake.in \ CMakeLists.txt config.h.cmake.in libxml2-config.cmake.cmake.in \

View File

@ -49,7 +49,6 @@ AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_PROG_MKDIR_P AC_PROG_MKDIR_P
AC_PATH_PROG(TAR, tar, /bin/tar) AC_PATH_PROG(TAR, tar, /bin/tar)
AC_PATH_PROG(PERL, perl, /usr/bin/perl)
AC_PATH_PROG(WGET, wget, /usr/bin/wget) AC_PATH_PROG(WGET, wget, /usr/bin/wget)
AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc) AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc)
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG

View File

@ -1,43 +0,0 @@
#!/usr/bin/perl
$size = shift;
if ($size eq "")
{
die "usage: dbgen.pl [size]\n";
}
@firstnames = ("Al", "Bob", "Charles", "David", "Egon", "Farbood",
"George", "Hank", "Inki", "James");
@lastnames = ("Aranow", "Barker", "Corsetti", "Dershowitz", "Engleman",
"Franklin", "Grice", "Haverford", "Ilvedson", "Jones");
@states = ("AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA",
"HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",
"MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",
"NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC",
"SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY");
print "<?xml version=\"1.0\"?>\n";
print "\n";
print "<table>\n";
for ($i=0; $i<$size; $i++)
{
$first = $firstnames [$i % 10];
$last = $lastnames [($i / 10) % 10];
$state = $states [($i / 100) % 50];
$zip = 22000 + $i / 5000;
printf " <row>\n";
printf " <id>%04d</id>\n", $i;
printf " <firstname>$first</firstname>\n", $i;
printf " <lastname>$last</lastname>\n", $i;
printf " <street>%d Any St.</street>\n", ($i % 100) + 1;
printf " <city>Anytown</city>\n";
printf " <state>$state</state>\n";
printf " <zip>%d</zip>\n", $zip;
printf " </row>\n";
}
print "</table>\n";

View File

@ -1,42 +0,0 @@
#!/usr/bin/perl
$size = shift;
if ($size eq "")
{
die "usage: dbgen.pl [size]\n";
}
@firstnames = ("Al", "Bob", "Charles", "David", "Egon", "Farbood",
"George", "Hank", "Inki", "James");
@lastnames = ("Aranow", "Barker", "Corsetti", "Dershowitz", "Engleman",
"Franklin", "Grice", "Haverford", "Ilvedson", "Jones");
@states = ("AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA",
"HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",
"MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",
"NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC",
"SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY");
print "<?xml version=\"1.0\"?>\n";
print "\n";
print "<table>\n";
for ($i=0; $i<$size; $i++)
{
$first = $firstnames [$i % 10];
$last = $lastnames [($i / 10) % 10];
$state = $states [($i / 100) % 50];
$zip = 22000 + $i / 5000;
printf " <row\n";
printf " id='%04d'\n", $i;
printf " firstname='$first'\n", $i;
printf " lastname='$last'\n", $i;
printf " street='%d Any St.'\n", ($i % 100) + 1;
printf " city='Anytown'\n";
printf " state='$state'\n";
printf " zip='%d'/>\n", $zip;
}
print "</table>\n";