From effb43a066e70763fa89eb7142b7cb7b428694ad Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 22 Jun 2016 14:10:16 +0900 Subject: Imported Upstream version 1.1.29 Change-Id: I7d894ba27f8f8e886dbcece3bb3df8e69059cae9 Signed-off-by: DongHun Kwak --- win32/Makefile.mingw | 6 ++-- win32/Makefile.msvc | 1 - win32/runtests.py | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 3 deletions(-) create mode 100644 win32/runtests.py (limited to 'win32') diff --git a/win32/Makefile.mingw b/win32/Makefile.mingw index 946ffa3d..5b102b38 100644 --- a/win32/Makefile.mingw +++ b/win32/Makefile.mingw @@ -72,6 +72,7 @@ endif # Libxslt object files. XSLT_OBJS = $(XSLT_INTDIR)/attributes.o\ + $(XSLT_INTDIR)/attrvt.o\ $(XSLT_INTDIR)/documents.o\ $(XSLT_INTDIR)/extensions.o\ $(XSLT_INTDIR)/extra.o\ @@ -93,6 +94,7 @@ XSLT_SRCS = $(subst .o,.c,$(subst $(XSLT_INTDIR),$(XSLT_SRCDIR),$(XSLT_OBJS))) # Static libxslt object files. XSLT_OBJS_A = $(XSLT_INTDIR_A)/attributes.o\ + $(XSLT_INTDIR_A)/attrvt.o\ $(XSLT_INTDIR_A)/documents.o\ $(XSLT_INTDIR_A)/extensions.o\ $(XSLT_INTDIR_A)/extra.o\ @@ -290,11 +292,11 @@ CFLAGS += -DLIBXML_STATIC -DLIBXSLT_STATIC -DLIBEXSLT_STATIC APP_LDFLAGS += -Bstatic $(BINDIR)/%.exe : $(UTILS_SRCDIR)/%.c $(CC) $(CFLAGS) -o $(subst .c,.o,$(UTILS_INTDIR)/$(", name + ".out") + err_diff = diff(p.stderr, "", name + ".err") + + if (len(out_diff) or len(err_diff)): + sys.stdout.writelines(out_diff) + sys.stdout.writelines(err_diff) + print() + + os.chdir(old_dir) + +def diff(got_stream, got_name, expected_path): + text_stream = io.TextIOWrapper(got_stream, encoding="latin_1") + got_lines = text_stream.readlines() + + if path.isfile(expected_path): + file = open(expected_path, "r", encoding="latin_1") + expected_lines = file.readlines() + else: + expected_lines = [] + + diff = difflib.unified_diff(expected_lines, got_lines, + fromfile=expected_path, + tofile=got_name) + return list(diff) + +print("## Running REC tests") +runtests("tests/REC") + +print("## Running general tests") +runtests("tests/general", "./../docs") + +print("## Running exslt common tests") +runtests("tests/exslt/common") + +print("## Running exslt functions tests") +runtests("tests/exslt/functions") + +print("## Running exslt math tests") +runtests("tests/exslt/math") + +print("## Running exslt saxon tests") +runtests("tests/exslt/saxon") + +print("## Running exslt sets tests") +runtests("tests/exslt/sets") + +print("## Running exslt strings tests") +runtests("tests/exslt/strings") + +print("## Running exslt dynamic tests") +runtests("tests/exslt/dynamic") + +print("## Running exslt date tests") +runtests("tests/exslt/date") + -- cgit v1.2.3