From: William S Fulton <wsf@fu...> - 2006-04-24 21:39:09
Joseph Wang wrote:
> 在 Friday 21 April 2006 18:18，William S Fulton 写道：
>>Sounds like progress is being made and unit tests are important. I
>>assume this is the Examples directory in SWIG? If possible can you
>>conform to the SWIG approach to testing?
> I've changed the directory location so that it now is in the right directory.
> I'll spend the next week or so trying to get all of the tests working so that
> we know what works and what is broken.
> There does seem to be a typo in common.mk
> The master Makefile in examples seems to be looking for SRCS and not CSRCS.
> --- common.mk 23 Feb 2006 04:14:32 -0000 1.175
> +++ common.mk 24 Apr 2006 01:42:59 -0000
> @@ -421,7 +421,7 @@
> swig_and_compile_c = \
> - $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile CSRCS="$(CSRCS)" \
> + $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile SRCS="$(SRCS)" \
> SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" \
> INCLUDES="$(INCLUDES)" SWIGOPT="$(SWIGOPT)" NOLINK=true \
> TARGET="$(TARGETPREFIX)$*$(TARGETSUFFIX)" INTERFACE="$*.i" \
Actually, the test-suite is not designed to compile .c or .cxx files.
Everything is meant to be self contained within the .i file, so if you
have any C source, put it within %inline. If you specify anything for
SRCS then it would be compiled into every test case, something which
hasn't been needed so far.
>>Hopefully you'll find interface files for which you just
>>need to add runtime tests. Any missing functionality can be added into a
>>new .i file for all languages to use and not just R.
> Yup. Now that I moved the directory into test-suite, I'll try integrating the
> general test-suite files over the next week. It will be interesting to see
> what happens.
> Also right now I'm waiting for Prof. Temple Lang to check to see if there is
> anything about the changes I added is problematic for what he is planning to
> do. I'm not wedded to any particular design decision as long as it compiles
> QuantLib and as long as the work needed to get it to work is managable.