mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
tests: Remove old timing tests
This commit is contained in:
parent
f06fc933cd
commit
0a279e2f68
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,7 +21,6 @@
|
||||
/testrecurse
|
||||
|
||||
# Tests
|
||||
/dba100000.xml
|
||||
/missing.lst
|
||||
/runsuite.log
|
||||
/runxmlconf.log
|
||||
|
32
Makefile.am
32
Makefile.am
@ -198,7 +198,7 @@ asan:
|
||||
|
||||
# Old test suite. This should be ported to C.
|
||||
|
||||
OLD_TESTS = Timingtests
|
||||
OLD_TESTS =
|
||||
if WITH_SCHEMAS_SOURCES
|
||||
if WITH_PYTHON
|
||||
OLD_TESTS += RelaxNGPythonTests SchemasPythonTests
|
||||
@ -207,38 +207,9 @@ endif
|
||||
if WITH_SCHEMATRON_SOURCES
|
||||
OLD_TESTS += Schematrontests
|
||||
endif
|
||||
if WITH_VALID_SOURCES
|
||||
OLD_TESTS += VTimingtests
|
||||
endif
|
||||
|
||||
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)
|
||||
@echo "## Schematron regression tests"
|
||||
-@(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 \
|
||||
libxml.h \
|
||||
genUnicode.py \
|
||||
dbgen.pl dbgenattr.pl \
|
||||
libxml2.syms timsort.h \
|
||||
README.zOS README.md \
|
||||
CMakeLists.txt config.h.cmake.in libxml2-config.cmake.cmake.in \
|
||||
|
@ -49,7 +49,6 @@ AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MKDIR_P
|
||||
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(XSLTPROC, xsltproc, /usr/bin/xsltproc)
|
||||
PKG_PROG_PKG_CONFIG
|
||||
|
43
dbgen.pl
43
dbgen.pl
@ -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";
|
||||
|
42
dbgenattr.pl
42
dbgenattr.pl
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user