Portability fixes for errors test-suite
This commit is contained in:
parent
b0b5552c14
commit
13aac0dca9
1 changed files with 7 additions and 5 deletions
|
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
LANGUAGE = python
|
LANGUAGE = python
|
||||||
ERROR_EXT = newerr
|
ERROR_EXT = newerr
|
||||||
|
# Portable dos2unix / todos for stripping CR
|
||||||
|
TODOS = sed -e 's/\r$$//'
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
|
|
@ -34,18 +36,18 @@ include $(srcdir)/../common.mk
|
||||||
# Rules for the different types of tests
|
# Rules for the different types of tests
|
||||||
%.cpptest:
|
%.cpptest:
|
||||||
echo "$(ACTION)ing errors testcase $*"
|
echo "$(ACTION)ing errors testcase $*"
|
||||||
-$(SWIG) -c++ -python -Wall $(SWIGOPT) $*.i 2> $*.$(ERROR_EXT)
|
-$(SWIG) -c++ -python -Wall -Fstandard $(SWIGOPT) $*.i 2>&1 | $(TODOS) > $*.$(ERROR_EXT)
|
||||||
$(COMPILETOOL) diff -c $*.stderr $*.newerr
|
$(COMPILETOOL) diff -c $*.stderr $*.$(ERROR_EXT)
|
||||||
|
|
||||||
%.ctest:
|
%.ctest:
|
||||||
echo "$(ACTION)ing errors testcase $*"
|
echo "$(ACTION)ing errors testcase $*"
|
||||||
-$(SWIG) -python -Wall $(SWIGOPT) $*.i 2> $*.$(ERROR_EXT)
|
-$(SWIG) -python -Wall -Fstandard $(SWIGOPT) $*.i 2>&1 | $(TODOS) > $*.$(ERROR_EXT)
|
||||||
$(COMPILETOOL) diff -c $*.stderr $*.newerr
|
$(COMPILETOOL) diff -c $*.stderr $*.$(ERROR_EXT)
|
||||||
|
|
||||||
%.clean:
|
%.clean:
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile $(LANGUAGE)_clean
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile $(LANGUAGE)_clean
|
||||||
@rm -f *.newerr *.py
|
@rm -f *.$(ERROR_EXT) *.py
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue