summaryrefslogtreecommitdiffstats
path: root/testing/runtests.py
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2015-06-10 17:37:02 (GMT)
committeralbert-github <albert.tests@gmail.com>2015-06-10 17:37:02 (GMT)
commit9bd54df7ba7dd15783f5a9180c85a7137dcdbc08 (patch)
tree00c29d2b02671824a0efc9dd9f4e4ed5ff0a3b80 /testing/runtests.py
parent7a0c06d1745739cb7f9753e75cb46f4a431b0eaa (diff)
downloadDoxygen-9bd54df7ba7dd15783f5a9180c85a7137dcdbc08.zip
Doxygen-9bd54df7ba7dd15783f5a9180c85a7137dcdbc08.tar.gz
Doxygen-9bd54df7ba7dd15783f5a9180c85a7137dcdbc08.tar.bz2
Problem running tests under Windows
The redirection used in the runtests.py script was based on *nix type systems. Corrected for windows. Windows has a different line ending than *nix, resulting in a problem with diff unless the options -b -w are used. Some tests had as directory for some paths a directory . this has been corrected to $INPUTDIR
Diffstat (limited to 'testing/runtests.py')
-rw-r--r--testing/runtests.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/runtests.py b/testing/runtests.py
index a5e82bf..149d457 100644
--- a/testing/runtests.py
+++ b/testing/runtests.py
@@ -25,7 +25,7 @@ class Tester:
elif not os.path.isfile(expected_file):
return (True,'%s absent' % expected_file)
else:
- diff = os.popen('diff -u %s %s' % (got_file,expected_file)).read()
+ diff = os.popen('diff -b -w -u %s %s' % (got_file,expected_file)).read()
if diff and not diff.startswith("No differences"):
return (True,'Difference between generated output and reference:\n%s' % diff)
return (False,'')
@@ -66,7 +66,11 @@ class Tester:
sys.exit(1)
# run doxygen
- if os.system('%s %s/Doxyfile 2>/dev/null' % (self.args.doxygen,self.test_out))!=0:
+ if (sys.platform == 'win32'):
+ redir=' > nul:'
+ else:
+ redir=' 2> /dev/null'
+ if os.system('%s %s/Doxyfile %s' % (self.args.doxygen,self.test_out, redir))!=0:
print('Error: failed to run %s on %s/Doxyfile' % (self.args.doxygen,self.test_out));
sys.exit(1)