fix env variable settings and add swig tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25c972d919
commit
a41c66d9a4
2 changed files with 17 additions and 14 deletions
|
|
@ -11,6 +11,8 @@ PACKAGE_NAME=@PACKAGE_NAME@
|
||||||
|
|
||||||
CC=@CC@
|
CC=@CC@
|
||||||
CFLAGS=@CFLAGS@ -I.
|
CFLAGS=@CFLAGS@ -I.
|
||||||
|
SWIG=swig
|
||||||
|
SWIG_LIB=../../Lib
|
||||||
EXEEXT=@EXEEXT@
|
EXEEXT=@EXEEXT@
|
||||||
|
|
||||||
LIBS= @LIBS@
|
LIBS= @LIBS@
|
||||||
|
|
@ -41,8 +43,10 @@ install: $(PACKAGE_NAME)$(EXEEXT) $(PACKAGE_NAME).1
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f $(OBJS) *~ $(PACKAGE_NAME)$(EXEEXT)
|
/bin/rm -f $(OBJS) *~ $(PACKAGE_NAME)$(EXEEXT)
|
||||||
|
|
||||||
|
check : test
|
||||||
|
|
||||||
test: test.sh
|
test: test.sh
|
||||||
CC='$(CC)' ./test.sh
|
SWIG_LIB='$(SWIG_LIB)' PATH=../..:$$PATH SWIG='$(SWIG)' CC='$(CC)' ./test.sh
|
||||||
|
|
||||||
check: test
|
check: test
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -394,7 +394,6 @@ CCACHE_COMPILE="$CCACHE $SWIG"
|
||||||
swigtests
|
swigtests
|
||||||
|
|
||||||
testsuite="link"
|
testsuite="link"
|
||||||
echo ln -s $CCACHE $COMPILER
|
|
||||||
ln -s $CCACHE $COMPILER
|
ln -s $CCACHE $COMPILER
|
||||||
CCACHE_COMPILE="./$COMPILER"
|
CCACHE_COMPILE="./$COMPILER"
|
||||||
basetests
|
basetests
|
||||||
|
|
@ -405,24 +404,24 @@ swigtests
|
||||||
rm "./$SWIG"
|
rm "./$SWIG"
|
||||||
|
|
||||||
testsuite="hardlink"
|
testsuite="hardlink"
|
||||||
CCACHE_COMPILE="$CCACHE $COMPILER"
|
CCACHE_COMPILE="env CCACHE_NOCOMPRESS=1 CCACHE_HARDLINK=1 $CCACHE $COMPILER"
|
||||||
CCACHE_NOCOMPRESS=1 CCACHE_HARDLINK=1 basetests
|
basetests
|
||||||
CCACHE_COMPILE="$CCACHE $SWIG"
|
CCACHE_COMPILE="env CCACHE_NOCOMPRESS=1 CCACHE_HARDLINK=1 $CCACHE $SWIG"
|
||||||
CCACHE_NOCOMPRESS=1 CCACHE_HARDLINK=1 swigtests
|
swigtests
|
||||||
|
|
||||||
testsuite="cpp2"
|
testsuite="cpp2"
|
||||||
CCACHE_COMPILE="$CCACHE $COMPILER"
|
CCACHE_COMPILE="env CCACHE_CPP2=1 $CCACHE $COMPILER"
|
||||||
CCACHE_CPP2=1 basetests
|
basetests
|
||||||
CCACHE_COMPILE="$CCACHE $SWIG"
|
CCACHE_COMPILE="env CCACHE_CPP2=1 $CCACHE $SWIG"
|
||||||
CCACHE_CPP2=1 swigtests
|
swigtests
|
||||||
|
|
||||||
testsuite="nlevels4"
|
testsuite="nlevels4"
|
||||||
CCACHE_COMPILE="$CCACHE $COMPILER"
|
CCACHE_COMPILE="env CCACHE_NLEVELS=4 $CCACHE $COMPILER"
|
||||||
CCACHE_NLEVELS=4 basetests
|
basetests
|
||||||
|
|
||||||
testsuite="nlevels1"
|
testsuite="nlevels1"
|
||||||
CCACHE_COMPILE="$CCACHE $COMPILER"
|
CCACHE_COMPILE="env CCACHE_NLEVELS=1 $CCACHE $COMPILER"
|
||||||
CCACHE_NLEVELS=1 basetests
|
basetests
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf $TESTDIR
|
rm -rf $TESTDIR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue