summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-15 18:23:02 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2014-03-15 18:23:02 +0000
commit13aac0dca93188a70076c64269741516f7f75816 (patch)
tree54d3de130a4c562d38617468b91c833cb77860bd
parentb0b5552c149c77d6db4b24006f00dbd4390ab516 (diff)
downloadswig-13aac0dca93188a70076c64269741516f7f75816.tar.gz
Portability fixes for errors test-suite
-rw-r--r--Examples/test-suite/errors/Makefile.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/Examples/test-suite/errors/Makefile.in b/Examples/test-suite/errors/Makefile.in
index fe6aff534..f8627ef1a 100644
--- a/Examples/test-suite/errors/Makefile.in
+++ b/Examples/test-suite/errors/Makefile.in
@@ -15,6 +15,8 @@
LANGUAGE = python
ERROR_EXT = newerr
+# Portable dos2unix / todos for stripping CR
+TODOS = sed -e 's/\r$$//'
srcdir = @srcdir@
top_srcdir = @top_srcdir@
@@ -34,18 +36,18 @@ include $(srcdir)/../common.mk
# Rules for the different types of tests
%.cpptest:
echo "$(ACTION)ing errors testcase $*"
- -$(SWIG) -c++ -python -Wall $(SWIGOPT) $*.i 2> $*.$(ERROR_EXT)
- $(COMPILETOOL) diff -c $*.stderr $*.newerr
+ -$(SWIG) -c++ -python -Wall -Fstandard $(SWIGOPT) $*.i 2>&1 | $(TODOS) > $*.$(ERROR_EXT)
+ $(COMPILETOOL) diff -c $*.stderr $*.$(ERROR_EXT)
%.ctest:
echo "$(ACTION)ing errors testcase $*"
- -$(SWIG) -python -Wall $(SWIGOPT) $*.i 2> $*.$(ERROR_EXT)
- $(COMPILETOOL) diff -c $*.stderr $*.newerr
+ -$(SWIG) -python -Wall -Fstandard $(SWIGOPT) $*.i 2>&1 | $(TODOS) > $*.$(ERROR_EXT)
+ $(COMPILETOOL) diff -c $*.stderr $*.$(ERROR_EXT)
%.clean:
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile $(LANGUAGE)_clean
- @rm -f *.newerr *.py
+ @rm -f *.$(ERROR_EXT) *.py