make check will now launch unitaries tests
Sylvestre Ledru [Fri, 5 Oct 2007 16:23:26 +0000 (16:23 +0000)]
93 files changed:
scilab/Makefile.am
scilab/Makefile.in
scilab/Makefile.incl.am
scilab/libs/MALLOC/Makefile.in
scilab/libs/blas/Makefile.in
scilab/libs/doublylinkedlist/Makefile.in
scilab/libs/dynamiclibrary/Makefile.in
scilab/libs/hashtable/Makefile.in
scilab/libs/lapack/Makefile.in
scilab/libs/libst/Makefile.in
scilab/modules/Makefile.in
scilab/modules/arnoldi/Makefile.in
scilab/modules/boolean/Makefile.in
scilab/modules/cacsd/Makefile.am
scilab/modules/cacsd/Makefile.in
scilab/modules/compatibility_functions/Makefile.in
scilab/modules/completion/Makefile.in
scilab/modules/console/Makefile.in
scilab/modules/core/Makefile.am
scilab/modules/core/Makefile.in
scilab/modules/data_structures/Makefile.am
scilab/modules/data_structures/Makefile.in
scilab/modules/development_tools/Makefile.in
scilab/modules/differential_equations/Makefile.am
scilab/modules/differential_equations/Makefile.in
scilab/modules/double/Makefile.in
scilab/modules/elementaries_functions/Makefile.am
scilab/modules/elementaries_functions/Makefile.in
scilab/modules/fftw/Makefile.in
scilab/modules/fileio/Makefile.am
scilab/modules/fileio/Makefile.in
scilab/modules/functions/Makefile.in
scilab/modules/graphics/Makefile.am
scilab/modules/graphics/Makefile.in
scilab/modules/gui/Makefile.am
scilab/modules/gui/Makefile.in
scilab/modules/helptools/Makefile.in
scilab/modules/history_manager/Makefile.in
scilab/modules/incremental_link/Makefile.am
scilab/modules/incremental_link/Makefile.in
scilab/modules/integer/Makefile.am
scilab/modules/integer/Makefile.in
scilab/modules/interpolation/Makefile.in
scilab/modules/intersci/Makefile.in
scilab/modules/io/Makefile.am
scilab/modules/io/Makefile.in
scilab/modules/javasci/Makefile.am
scilab/modules/javasci/Makefile.in
scilab/modules/jvm/Makefile.in
scilab/modules/linear_algebra/Makefile.am
scilab/modules/linear_algebra/Makefile.in
scilab/modules/localization/Makefile.in
scilab/modules/m2sci/Makefile.in
scilab/modules/maple2scilab/Makefile.in
scilab/modules/metanet/Makefile.am
scilab/modules/metanet/Makefile.in
scilab/modules/mexlib/Makefile.in
scilab/modules/optimization/Makefile.am
scilab/modules/optimization/Makefile.in
scilab/modules/others/Makefile.am
scilab/modules/others/Makefile.in
scilab/modules/overloading/Makefile.in
scilab/modules/polynomials/Makefile.am
scilab/modules/polynomials/Makefile.in
scilab/modules/pvm/Makefile.am
scilab/modules/pvm/Makefile.in
scilab/modules/randlib/Makefile.am
scilab/modules/randlib/Makefile.in
scilab/modules/renderer/Makefile.in
scilab/modules/scicos/Makefile.am
scilab/modules/scicos/Makefile.in
scilab/modules/scilab2fortran/Makefile.in
scilab/modules/scipad/Makefile.in
scilab/modules/shell/Makefile.in
scilab/modules/signal_processing/Makefile.in
scilab/modules/sound/Makefile.am
scilab/modules/sound/Makefile.in
scilab/modules/sparse/Makefile.am
scilab/modules/sparse/Makefile.in
scilab/modules/special_functions/Makefile.am
scilab/modules/special_functions/Makefile.in
scilab/modules/statistics/Makefile.am
scilab/modules/statistics/Makefile.in
scilab/modules/string/Makefile.am
scilab/modules/string/Makefile.in
scilab/modules/symbolic/Makefile.in
scilab/modules/tclsci/Makefile.am
scilab/modules/tclsci/Makefile.in
scilab/modules/texmacs/Makefile.in
scilab/modules/time/Makefile.am
scilab/modules/time/Makefile.in
scilab/modules/windows_tools/Makefile.am
scilab/modules/windows_tools/Makefile.in

index 6f47b50..032fcad 100644 (file)
@@ -58,8 +58,8 @@ doc:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab
 
 
 check-local:
-       $(top_builddir)/scilab-bin -nb -l fr -e check_help();exit;
-       $(top_builddir)/scilab-bin -nb -l en -e check_help();exit;
+       $(top_builddir)/bin/scilab -nwni -nb -l fr -e 'check_help();exit;'
+       $(top_builddir)/bin/scilab -nwni -nb -l en -e 'check_help();exit;'
 
 distclean-local::
 clean-local:
index b22f16a..6ea9c82 100644 (file)
@@ -44,13 +44,12 @@ subdir = .
 DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
        $(srcdir)/Makefile.in $(top_srcdir)/configure \
        $(top_srcdir)/etc/modules.xml.in \
-       $(top_srcdir)/libs/f2c/Makefile.in \
        $(top_srcdir)/modules/core/includes/machine.h.in \
        $(top_srcdir)/modules/helptools/macros/xmlfiletohtml.sci.in \
        $(top_srcdir)/modules/scicos/src/ocaml/Makefile.in ABOUT-NLS \
-       ChangeLog config/compile config/config.guess \
-       config/config.rpath config/config.sub config/depcomp \
-       config/install-sh config/ltmain.sh config/missing
+       config/compile config/config.guess config/config.rpath \
+       config/config.sub config/depcomp config/install-sh \
+       config/ltmain.sh config/missing
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/m4/fftw.m4 \
        $(top_srcdir)/m4/fortran.m4 $(top_srcdir)/m4/intel_compiler.m4 \
@@ -68,8 +67,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  configure.lineno config.status.lineno
 mkinstalldirs = $(install_sh) -d
 CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
-CONFIG_CLEAN_FILES = libs/f2c/Makefile \
-       modules/scicos/src/ocaml/Makefile etc/modules.xml \
+CONFIG_CLEAN_FILES = modules/scicos/src/ocaml/Makefile etc/modules.xml \
        modules/helptools/macros/xmlfiletohtml.sci
 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" \
        "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(rootdir)"
@@ -372,8 +370,6 @@ $(top_srcdir)/modules/core/includes/machine.h.in: @MAINTAINER_MODE_TRUE@ $(am__c
 
 distclean-hdr:
        -rm -f modules/core/includes/machine.h modules/core/includes/stamp-h1
-libs/f2c/Makefile: $(top_builddir)/config.status $(top_srcdir)/libs/f2c/Makefile.in
-       cd $(top_builddir) && $(SHELL) ./config.status $@
 modules/scicos/src/ocaml/Makefile: $(top_builddir)/config.status $(top_srcdir)/modules/scicos/src/ocaml/Makefile.in
        cd $(top_builddir) && $(SHELL) ./config.status $@
 etc/modules.xml: $(top_builddir)/config.status $(top_srcdir)/etc/modules.xml.in
@@ -931,8 +927,8 @@ doc:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab
        $(top_builddir)/bin/scilab -nb -l fr -nouserstartup -nwni -e "xmltohtml();exit;")
 
 check-local:
-       $(top_builddir)/scilab-bin -nb -l fr -e check_help();exit;
-       $(top_builddir)/scilab-bin -nb -l en -e check_help();exit;
+       $(top_builddir)/bin/scilab -nwni -nb -l fr -e 'check_help();exit;'
+       $(top_builddir)/bin/scilab -nwni -nb -l en -e 'check_help();exit;'
 
 distclean-local::
 clean-local:
index 8c7b2df..195244a 100644 (file)
@@ -14,6 +14,20 @@ mydatadir=$(pkgdatadir)/modules/$(modulename)
 SUFFIXES = .sci 
 #.java .class .jar
 
+
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -23,6 +37,7 @@ SUFFIXES = .sci
 #######################################################################
 
 
+
 # TODO : Renamed this variable
 if GUI
 
@@ -36,11 +51,6 @@ java-clean:
                $(ANT) clean; \
        fi
 
-check-local:
-       @if test -f build.xml; then \
-               $(ANT) checkstyle; \
-       fi
-
 endif
 
 if GUI
index 4fdd733..e734903 100644 (file)
@@ -519,7 +519,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -637,6 +636,19 @@ uninstall-am: uninstall-libscimalloc_la_includeHEADERS \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -657,11 +669,6 @@ uninstall-am: uninstall-libscimalloc_la_includeHEADERS \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 4167568..c1e14d4 100644 (file)
@@ -537,7 +537,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -649,6 +648,19 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -669,11 +681,6 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index d980638..61cd346 100644 (file)
@@ -510,7 +510,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -629,6 +628,19 @@ uninstall-am: uninstall-libscidoublylinkedlist_la_includeHEADERS \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -649,11 +661,6 @@ uninstall-am: uninstall-libscidoublylinkedlist_la_includeHEADERS \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index a4fcb8c..941bc63 100644 (file)
@@ -512,7 +512,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -630,6 +629,19 @@ uninstall-am: uninstall-libscidynamiclibrary_la_includeHEADERS \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -650,11 +662,6 @@ uninstall-am: uninstall-libscidynamiclibrary_la_includeHEADERS \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index b357954..9511336 100644 (file)
@@ -507,7 +507,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -625,6 +624,19 @@ uninstall-am: uninstall-libscihashtable_la_includeHEADERS \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -645,11 +657,6 @@ uninstall-am: uninstall-libscihashtable_la_includeHEADERS \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 427a189..5b14a25 100644 (file)
@@ -820,7 +820,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -938,6 +937,19 @@ libdummy_lapack_la-slamch.lo: slamch.f
        $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(libdummy_lapack_la_FFLAGS) -c -o libdummy_lapack_la-slamch.lo `test -f 'slamch.f' || echo '$(srcdir)/'`slamch.f
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -958,11 +970,6 @@ libdummy_lapack_la-slamch.lo: slamch.f
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index b709f9d..d61e6d5 100644 (file)
@@ -474,7 +474,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -588,6 +587,19 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -608,11 +620,6 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index cd6d409..11a3c18 100644 (file)
@@ -687,7 +687,6 @@ distdir: $(DISTFILES)
              || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-recursive
@@ -803,6 +802,19 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -823,11 +835,6 @@ uninstall-am: uninstall-pkglibLTLIBRARIES
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index eb843c2..6ad9bfe 100644 (file)
@@ -897,7 +897,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1025,6 +1024,19 @@ uninstall-am: uninstall-libsciarnoldi_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1045,11 +1057,6 @@ uninstall-am: uninstall-libsciarnoldi_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 9cb0575..1eac91c 100644 (file)
@@ -695,7 +695,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -823,6 +822,19 @@ uninstall-am: uninstall-libsciboolean_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -843,11 +855,6 @@ uninstall-am: uninstall-libsciboolean_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 52bdde1..8b19e20 100644 (file)
@@ -212,6 +212,10 @@ sci_gateway/fortran/sci_f_gspec.f \
 sci_gateway/fortran/sci_f_linmeq.f \
 sci_gateway/fortran/sci_f_rankqr.f
 
+MODULE_CHECKS = unit_tests/slicot.tst \
+       unit_tests/arma.tst \
+       unit_tests/odedi.tst
+
 libscicacsd_la_FFLAGS= -Iincludes/ 
 libscicacsd_la_CFLAGS= -Iincludes/ 
 
index bbafd2e..7b1b90c 100644 (file)
@@ -584,6 +584,10 @@ sci_gateway/fortran/sci_f_gspec.f \
 sci_gateway/fortran/sci_f_linmeq.f \
 sci_gateway/fortran/sci_f_rankqr.f
 
+MODULE_CHECKS = unit_tests/slicot.tst \
+       unit_tests/arma.tst \
+       unit_tests/odedi.tst
+
 libscicacsd_la_FFLAGS = -Iincludes/ 
 libscicacsd_la_CFLAGS = -Iincludes/ 
 pkglib_LTLIBRARIES = libscicacsd.la
@@ -1647,7 +1651,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1779,6 +1782,19 @@ uninstall-am: uninstall-libscicacsd_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1799,11 +1815,6 @@ uninstall-am: uninstall-libscicacsd_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 5f7dff6..c688151 100644 (file)
@@ -397,7 +397,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -510,6 +509,19 @@ uninstall-am: uninstall-libscicompatibility_functions_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -530,11 +542,6 @@ uninstall-am: uninstall-libscicompatibility_functions_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 8243e9d..0360537 100644 (file)
@@ -724,7 +724,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: $(BUILT_SOURCES)
@@ -857,6 +856,19 @@ uninstall-am: uninstall-libscicompletion_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -877,11 +889,6 @@ uninstall-am: uninstall-libscicompletion_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 415ab8b..5928ba7 100644 (file)
@@ -822,7 +822,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: $(BUILT_SOURCES)
@@ -949,6 +948,19 @@ uninstall-am: uninstall-libsciconsole_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -969,11 +981,6 @@ uninstall-am: uninstall-libsciconsole_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 1df2859..7fc85f3 100644 (file)
@@ -308,6 +308,30 @@ sci_gateway/fortran/sci_debug.f \
 sci_gateway/fortran/sci_error.f \
 sci_gateway/fortran/sci_isglobal.f
 
+MODULE_CHECKS = unit_tests/comment.tst \
+       unit_tests/errcatch.tst \
+       unit_tests/scilab.tst \
+       unit_tests/calpol.tst \
+       unit_tests/clause.tst \
+       unit_tests/auto.tst \
+       unit_tests/breakpoints.tst \
+       unit_tests/cmp.tst \
+       unit_tests/comand.tst \
+       unit_tests/display.tst \
+       unit_tests/elem.tst \
+       unit_tests/fptr.tst \
+       unit_tests/function.tst \
+       unit_tests/global.tst \
+       unit_tests/macro.tst \
+       unit_tests/matops.tst \
+       unit_tests/matsys.tst \
+       unit_tests/matelm.tst \
+       unit_tests/opcode.tst \
+       unit_tests/parse.tst \
+       unit_tests/pause.tst \
+       unit_tests/trycatch.tst \
+       unit_tests/resume.tst
+
 libscicore_la_CFLAGS=  -Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/ $(XML_FLAGS) \
 -I$(top_srcdir)/libs/doublylinkedlist/includes
 
index be4be23..bad4110 100644 (file)
@@ -704,6 +704,30 @@ sci_gateway/fortran/sci_debug.f \
 sci_gateway/fortran/sci_error.f \
 sci_gateway/fortran/sci_isglobal.f
 
+MODULE_CHECKS = unit_tests/comment.tst \
+       unit_tests/errcatch.tst \
+       unit_tests/scilab.tst \
+       unit_tests/calpol.tst \
+       unit_tests/clause.tst \
+       unit_tests/auto.tst \
+       unit_tests/breakpoints.tst \
+       unit_tests/cmp.tst \
+       unit_tests/comand.tst \
+       unit_tests/display.tst \
+       unit_tests/elem.tst \
+       unit_tests/fptr.tst \
+       unit_tests/function.tst \
+       unit_tests/global.tst \
+       unit_tests/macro.tst \
+       unit_tests/matops.tst \
+       unit_tests/matsys.tst \
+       unit_tests/matelm.tst \
+       unit_tests/opcode.tst \
+       unit_tests/parse.tst \
+       unit_tests/pause.tst \
+       unit_tests/trycatch.tst \
+       unit_tests/resume.tst
+
 libscicore_la_CFLAGS = -Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/ $(XML_FLAGS) \
 -I$(top_srcdir)/libs/doublylinkedlist/includes
 
@@ -2802,7 +2826,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -2937,6 +2960,19 @@ uninstall-am: uninstall-libscicore_la_demosintroDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -2957,11 +2993,6 @@ uninstall-am: uninstall-libscicore_la_demosintroDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index c8fb951..6cb7c93 100644 (file)
@@ -41,6 +41,12 @@ sci_gateway/fortran/sci_getfield.f \
 sci_gateway/fortran/sci_lstcat.f \
 sci_gateway/fortran/sci_list.f
 
+MODULE_CHECKS = unit_tests/hypermat.tst \
+       unit_tests/lstcat.tst \
+       unit_tests/lstops.tst \
+       unit_tests/listinsertion.tst \
+       unit_tests/listextraction.tst
+
 libscidata_structures_la_CFLAGS=  -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/
 pkglib_LTLIBRARIES = libscidata_structures.la
 
@@ -53,13 +59,6 @@ libscidata_structures_la_LIBADD = \
        $(top_builddir)/libs/MALLOC/libscimalloc.la
 
 
-
-#SUFFIXES = .sci
-#.sci:
-#      $(top_builddir)/scilab-bin -nb -l eng -nouserstartup -nwni -e "xmltohtml();exit;"
-
-
-
 #### Target ######
 modulename=data_structures
 
index f464036..30d88ee 100644 (file)
@@ -334,6 +334,12 @@ sci_gateway/fortran/sci_getfield.f \
 sci_gateway/fortran/sci_lstcat.f \
 sci_gateway/fortran/sci_list.f
 
+MODULE_CHECKS = unit_tests/hypermat.tst \
+       unit_tests/lstcat.tst \
+       unit_tests/lstops.tst \
+       unit_tests/listinsertion.tst \
+       unit_tests/listextraction.tst
+
 libscidata_structures_la_CFLAGS = -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/
 pkglib_LTLIBRARIES = libscidata_structures.la
 libscidata_structures_la_SOURCES = $(DATA_STRUCTURES_C_SOURCES) $(DATA_STRUCTURES_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
@@ -344,10 +350,6 @@ libscidata_structures_la_LIBADD = \
        $(top_builddir)/libs/MALLOC/libscimalloc.la
 
 
-#SUFFIXES = .sci
-#.sci:
-#      $(top_builddir)/scilab-bin -nb -l eng -nouserstartup -nwni -e "xmltohtml();exit;"
-
 #### Target ######
 modulename = data_structures
 
@@ -834,7 +836,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -964,6 +965,19 @@ uninstall-am: uninstall-libscidata_structures_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -984,11 +998,6 @@ uninstall-am: uninstall-libscidata_structures_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 4ca5893..f7436b1 100644 (file)
@@ -395,7 +395,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -508,6 +507,19 @@ uninstall-am: uninstall-libdevelopment_tools_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -528,11 +540,6 @@ uninstall-am: uninstall-libdevelopment_tools_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 22a2d51..b27643b 100644 (file)
@@ -127,6 +127,10 @@ sci_gateway/fortran/Ex-dassl.f \
 sci_gateway/fortran/Ex-bvode.f \
 sci_gateway/fortran/bbvode.f
 
+MODULE_CHECKS = unit_tests/feval.tst \
+       unit_tests/dassldasrt.tst \
+       unit_tests/matode.tst \
+       unit_tests/odedc.tst
 
 libscidifferential_equations_la_CFLAGS=  -Iincludes/ 
 #-Isrc/c/
index 1672c6a..903e23c 100644 (file)
@@ -437,6 +437,11 @@ sci_gateway/fortran/Ex-dassl.f \
 sci_gateway/fortran/Ex-bvode.f \
 sci_gateway/fortran/bbvode.f
 
+MODULE_CHECKS = unit_tests/feval.tst \
+       unit_tests/dassldasrt.tst \
+       unit_tests/matode.tst \
+       unit_tests/odedc.tst
+
 libscidifferential_equations_la_CFLAGS = -Iincludes/ 
 #-Isrc/c/
 pkglib_LTLIBRARIES = libscidifferential_equations.la
@@ -1219,7 +1224,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1346,6 +1350,19 @@ uninstall-am: uninstall-libscidifferential_equations_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1366,11 +1383,6 @@ uninstall-am: uninstall-libscidifferential_equations_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 417f997..fad2b64 100644 (file)
@@ -639,7 +639,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -757,6 +756,19 @@ uninstall-am: uninstall-libscidouble_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -777,11 +789,6 @@ uninstall-am: uninstall-libscidouble_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index d668cac..861ec84 100644 (file)
@@ -353,9 +353,14 @@ sci_gateway/fortran/sci_f_int.f \
 sci_gateway/fortran/sci_f_imult.f \
 sci_gateway/fortran/sci_f_exp.f
 
+MODULE_CHECKS = unit_tests/gsort.tst \
+       unit_tests/binary.tst \
+       unit_tests/binary_representation.tst \
+       unit_tests/maxi.tst
 
 # Disable optimisation of the file hqror2.f comqr3.f pade.f 
 noinst_LTLIBRARIES = libdummy-elementaries_functions.la
+
 libdummy_elementaries_functions_la_SOURCES = src/fortran/hqror2.f \
        src/fortran/comqr3.f \
        src/fortran/pade.f \
index 83abd00..66f6afc 100644 (file)
@@ -992,6 +992,11 @@ sci_gateway/fortran/sci_f_int.f \
 sci_gateway/fortran/sci_f_imult.f \
 sci_gateway/fortran/sci_f_exp.f
 
+MODULE_CHECKS = unit_tests/gsort.tst \
+       unit_tests/binary.tst \
+       unit_tests/binary_representation.tst \
+       unit_tests/maxi.tst
+
 
 # Disable optimisation of the file hqror2.f comqr3.f pade.f 
 noinst_LTLIBRARIES = libdummy-elementaries_functions.la
@@ -2751,7 +2756,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -2899,6 +2903,19 @@ libdummy_elementaries_functions_la-icopy.lo: src/fortran/icopy.f
        $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(libdummy_elementaries_functions_la_FFLAGS) -c -o libdummy_elementaries_functions_la-icopy.lo `test -f 'src/fortran/icopy.f' || echo '$(srcdir)/'`src/fortran/icopy.f
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -2919,11 +2936,6 @@ libdummy_elementaries_functions_la-icopy.lo: src/fortran/icopy.f
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 5c2f701..21db553 100644 (file)
@@ -745,7 +745,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -873,6 +872,19 @@ uninstall-am: uninstall-libscifftw_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -893,11 +905,6 @@ uninstall-am: uninstall-libscifftw_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 97e135c..7f13c89 100644 (file)
@@ -77,6 +77,12 @@ sci_gateway/c/sci_isdir.c \
 sci_gateway/c/sci_removedir.c \
 sci_gateway/c/sci_createdir.c 
 
+MODULE_CHECKS = unit_tests/fscanfMat.tst \
+unit_tests/msscanf.tst \
+unit_tests/mfprintf.tst \
+unit_tests/mfscanf.tst \
+unit_tests/msprintf.tst
+
 libscifileio_la_CFLAGS=-Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/ 
 
 pkglib_LTLIBRARIES = libscifileio.la
index 0289ecc..54f52be 100644 (file)
@@ -387,6 +387,12 @@ sci_gateway/c/sci_isdir.c \
 sci_gateway/c/sci_removedir.c \
 sci_gateway/c/sci_createdir.c 
 
+MODULE_CHECKS = unit_tests/fscanfMat.tst \
+unit_tests/msscanf.tst \
+unit_tests/mfprintf.tst \
+unit_tests/mfscanf.tst \
+unit_tests/msprintf.tst
+
 libscifileio_la_CFLAGS = -Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/ 
 pkglib_LTLIBRARIES = libscifileio.la
 libscifileio_la_SOURCES = $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
@@ -1296,7 +1302,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1428,6 +1433,19 @@ uninstall-am: uninstall-libscifileio_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1448,11 +1466,6 @@ uninstall-am: uninstall-libscifileio_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 11f90b2..237968f 100644 (file)
@@ -395,7 +395,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -506,6 +505,19 @@ uninstall-am: uninstall-libscifunctions_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -526,11 +538,6 @@ uninstall-am: uninstall-libscifunctions_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 7d04b70..845798f 100644 (file)
@@ -397,6 +397,10 @@ sci_gateway/c/sci_winsid.c \
 sci_gateway/c/sci_addcb.c \
 sci_gateway/c/sci_fec.c
 
+MODULE_CHECKS = unit_tests/swap_handles.tst \
+       unit_tests/readgif.tst \
+       unit_tests/readxbm.tst
+
 libscigraphics_la_CFLAGS +=  $(JAVA_JNI_INCLUDE) -Isrc/cpp $(TCL_INC_PATH) $(TK_INC_PATH) -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/hashtable/ -I$(top_srcdir)/modules/jvm/includes -I$(top_srcdir)/modules/renderer/includes/
 
 libscigraphics_la_CXXFLAGS =  -Iincludes/ -Isrc/c/ $(JAVA_JNI_INCLUDE) -I$(top_srcdir)/modules/jvm/includes
@@ -612,9 +616,6 @@ demos/portrait.dem \
 demos/xdemo-1.dem \
 demos/bike.dem
 
-tests:: $(JARFILE) $(JAVAFILES)
-       @(cd tests; make tests)
-
 USEANT=1
 
 else
index 70173e7..7434ac2 100644 (file)
@@ -1431,6 +1431,10 @@ libscigraphics_la_CFLAGS =  \
 @GUI_TRUE@sci_gateway/c/sci_addcb.c \
 @GUI_TRUE@sci_gateway/c/sci_fec.c
 
+@GUI_TRUE@MODULE_CHECKS = unit_tests/swap_handles.tst \
+@GUI_TRUE@     unit_tests/readgif.tst \
+@GUI_TRUE@     unit_tests/readxbm.tst
+
 @GUI_TRUE@libscigraphics_la_CXXFLAGS = -Iincludes/ -Isrc/c/ $(JAVA_JNI_INCLUDE) -I$(top_srcdir)/modules/jvm/includes
 @GUI_TRUE@libscigraphics_la_LDFLAGS = $(JAVA_JNI_LIBS) $(TCLTK_LIBS) $(X_LIBS)
 @GUI_FALSE@libscigraphics_la_SOURCES = $(GRAPHICS_C_SOURCES)
@@ -5043,7 +5047,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -5173,11 +5176,21 @@ uninstall-am: uninstall-libscigraphics_la_etcDATA \
        uninstall-nobase_libscigraphics_la_demosDATA \
        uninstall-pkglibLTLIBRARIES
 
-
-@GUI_TRUE@tests:: $(JARFILE) $(JAVAFILES)
-@GUI_TRUE@     @(cd tests; make tests)
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -5198,11 +5211,6 @@ uninstall-am: uninstall-libscigraphics_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 454f084..081cf46 100644 (file)
@@ -47,7 +47,8 @@ sci_gateway/c/sci_ClipBoard.c \
 sci_gateway/c/sci_hidetoolbar.c \
 sci_gateway/c/sci_toolbar.c 
 
-
+MODULE_CHECKS = unit_tests/addmenu.tst \
+       unit_tests/dialogs.tst
 
 
 #BUILT_SOURCES = $(top_srcdir)/modules/gui/src/c/xsci/Xscilab.ad.h
index c0ee0b2..8f74feb 100644 (file)
@@ -418,6 +418,9 @@ libscigui_la_CFLAGS = -Isrc/c/ -Isrc/c/xsci/ -Iincludes/ \
 @GUI_TRUE@sci_gateway/c/sci_hidetoolbar.c \
 @GUI_TRUE@sci_gateway/c/sci_toolbar.c 
 
+@GUI_TRUE@MODULE_CHECKS = unit_tests/addmenu.tst \
+@GUI_TRUE@     unit_tests/dialogs.tst
+
 libscigui_la_LDFLAGS = $(LD_FLAGS) $(X_LIBS) $(TERMCAP_LIB) $(X_EXTRA_LIBS)
 pkglib_LTLIBRARIES = libscigui.la
 libscigui_la_SOURCES = $(GUI_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
@@ -972,7 +975,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1104,6 +1106,19 @@ uninstall-am: uninstall-libscigui_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1124,11 +1139,6 @@ uninstall-am: uninstall-libscigui_la_demosDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 373c7a9..357e577 100644 (file)
@@ -395,7 +395,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -506,6 +505,19 @@ uninstall-am: uninstall-libscihelptools_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -526,11 +538,6 @@ uninstall-am: uninstall-libscihelptools_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index d35e390..2f472df 100644 (file)
@@ -858,7 +858,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: $(BUILT_SOURCES)
@@ -991,6 +990,19 @@ uninstall-am: uninstall-libscihistory_manager_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1011,11 +1023,6 @@ uninstall-am: uninstall-libscihistory_manager_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 5ff1885..7bd8c3f 100644 (file)
@@ -4,6 +4,8 @@
 ##########
 
 
+MODULE_CHECKS = unit_tests/basiclink.tst
+
 #### Target ######
 modulename=incremental_link
 
index 6b3174b..d02f98e 100644 (file)
@@ -242,6 +242,7 @@ target_alias = @target_alias@
 tcldir = @tcldir@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
+MODULE_CHECKS = unit_tests/basiclink.tst
 
 #### Target ######
 modulename = incremental_link
@@ -457,7 +458,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -578,6 +578,19 @@ uninstall-am: uninstall-libincremental_link_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -598,11 +611,6 @@ uninstall-am: uninstall-libincremental_link_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 2d15eb9..e46a43e 100644 (file)
@@ -116,6 +116,8 @@ sci_gateway/fortran/sci_i_triu.f \
 sci_gateway/fortran/sci_i_min.f \
 sci_gateway/fortran/sci_inttype.f
 
+MODULE_CHECKS = unit_tests/intops.tst
+
 libsciinteger_la_CFLAGS=  -Iincludes/ 
 
 pkglib_LTLIBRARIES = libsciinteger.la
index f943b9d..c2b0c35 100644 (file)
@@ -424,6 +424,7 @@ sci_gateway/fortran/sci_i_triu.f \
 sci_gateway/fortran/sci_i_min.f \
 sci_gateway/fortran/sci_inttype.f
 
+MODULE_CHECKS = unit_tests/intops.tst
 libsciinteger_la_CFLAGS = -Iincludes/ 
 pkglib_LTLIBRARIES = libsciinteger.la
 libsciinteger_la_SOURCES = $(INTEGER_C_SOURCES) $(INTEGER_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
@@ -1302,7 +1303,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1430,6 +1430,19 @@ uninstall-am: uninstall-libsciinteger_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1450,11 +1463,6 @@ uninstall-am: uninstall-libsciinteger_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 8331c4b..7c89223 100644 (file)
@@ -792,7 +792,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -926,6 +925,19 @@ uninstall-am: uninstall-libsciinterpolation_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -946,11 +958,6 @@ uninstall-am: uninstall-libsciinterpolation_la_demosDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 20b77ef..70f2dfe 100644 (file)
@@ -779,7 +779,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -902,6 +901,19 @@ uninstall-am: uninstall-binPROGRAMS \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -922,11 +934,6 @@ uninstall-am: uninstall-binPROGRAMS \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 3bbdc66..6acb49f 100644 (file)
@@ -6,7 +6,8 @@
 IO_C_SOURCES = src/c/getpidc.c \
 src/c/setenvc.c \
 src/c/systemc.c \
-src/c/getenvc.c 
+src/c/getenvc.c \
+src/c/findprog.c
 
 IO_FORTRAN_SOURCES = src/fortran/v2unit.f \
 src/fortran/newsave.f \
@@ -67,6 +68,11 @@ sci_gateway/fortran/intexecstr.f \
 sci_gateway/fortran/intreadb.f \
 sci_gateway/fortran/intfile.f
 
+MODULE_CHECKS = unit_tests/sprintf.tst \
+       unit_tests/sscanf.tst \
+       unit_tests/saveload.tst
+
+
 # Disable optimisation of the file intmgetl.f
 noinst_LTLIBRARIES = libdummy-io.la
 libdummy_io_la_SOURCES = sci_gateway/fortran/intmgetl.f
index 01b374d..b8fdd56 100644 (file)
@@ -90,7 +90,8 @@ libsciio_la_DEPENDENCIES = libdummy-io.la \
        $(top_builddir)/modules/fileio/libscifileio.la \
        $(top_builddir)/libs/MALLOC/libscimalloc.la
 am__objects_1 = libsciio_la-getpidc.lo libsciio_la-setenvc.lo \
-       libsciio_la-systemc.lo libsciio_la-getenvc.lo
+       libsciio_la-systemc.lo libsciio_la-getenvc.lo \
+       libsciio_la-findprog.lo
 am__objects_2 = v2unit.lo newsave.lo v2cunit.lo writebuf.lo
 am__objects_3 = libsciio_la-sci_execstr.lo libsciio_la-sci_read4b.lo \
        libsciio_la-sci_deff.lo libsciio_la-sci_lib.lo \
@@ -307,7 +308,8 @@ top_srcdir = @top_srcdir@
 IO_C_SOURCES = src/c/getpidc.c \
 src/c/setenvc.c \
 src/c/systemc.c \
-src/c/getenvc.c 
+src/c/getenvc.c \
+src/c/findprog.c
 
 IO_FORTRAN_SOURCES = src/fortran/v2unit.f \
 src/fortran/newsave.f \
@@ -368,6 +370,10 @@ sci_gateway/fortran/intexecstr.f \
 sci_gateway/fortran/intreadb.f \
 sci_gateway/fortran/intfile.f
 
+MODULE_CHECKS = unit_tests/sprintf.tst \
+       unit_tests/sscanf.tst \
+       unit_tests/saveload.tst
+
 
 # Disable optimisation of the file intmgetl.f
 noinst_LTLIBRARIES = libdummy-io.la
@@ -526,6 +532,7 @@ mostlyclean-compile:
 distclean-compile:
        -rm -f *.tab.c
 
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsciio_la-findprog.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsciio_la-getenvc.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsciio_la-getpidc.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsciio_la-gw_io.Plo@am__quote@
@@ -614,6 +621,13 @@ libsciio_la-getenvc.lo: src/c/getenvc.c
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsciio_la_CFLAGS) $(CFLAGS) -c -o libsciio_la-getenvc.lo `test -f 'src/c/getenvc.c' || echo '$(srcdir)/'`src/c/getenvc.c
 
+libsciio_la-findprog.lo: src/c/findprog.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsciio_la_CFLAGS) $(CFLAGS) -MT libsciio_la-findprog.lo -MD -MP -MF $(DEPDIR)/libsciio_la-findprog.Tpo -c -o libsciio_la-findprog.lo `test -f 'src/c/findprog.c' || echo '$(srcdir)/'`src/c/findprog.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/libsciio_la-findprog.Tpo $(DEPDIR)/libsciio_la-findprog.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='src/c/findprog.c' object='libsciio_la-findprog.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsciio_la_CFLAGS) $(CFLAGS) -c -o libsciio_la-findprog.lo `test -f 'src/c/findprog.c' || echo '$(srcdir)/'`src/c/findprog.c
+
 libsciio_la-sci_execstr.lo: sci_gateway/c/sci_execstr.c
 @am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libsciio_la_CFLAGS) $(CFLAGS) -MT libsciio_la-sci_execstr.lo -MD -MP -MF $(DEPDIR)/libsciio_la-sci_execstr.Tpo -c -o libsciio_la-sci_execstr.lo `test -f 'sci_gateway/c/sci_execstr.c' || echo '$(srcdir)/'`sci_gateway/c/sci_execstr.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/libsciio_la-sci_execstr.Tpo $(DEPDIR)/libsciio_la-sci_execstr.Plo
@@ -1075,7 +1089,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1206,6 +1219,19 @@ libdummy_io_la-intmgetl.lo: sci_gateway/fortran/intmgetl.f
        $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(libdummy_io_la_FFLAGS) -c -o libdummy_io_la-intmgetl.lo `test -f 'sci_gateway/fortran/intmgetl.f' || echo '$(srcdir)/'`sci_gateway/fortran/intmgetl.f
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1226,11 +1252,6 @@ libdummy_io_la-intmgetl.lo: sci_gateway/fortran/intmgetl.f
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index edcb78d..04c743d 100644 (file)
@@ -5,31 +5,13 @@
 
 
 
+
 #### Target ######
 modulename=javasci
 
-#### Java sources ####
-#JAVAFILES = src/java/javasci/javasci/Scilab.java \
-#      src/java/javasci/javasci/BadDataArgumentException.java \
-#      src/java/javasci/javasci/SciAbstractArray.java \
-#      src/java/javasci/javasci/SciAbstractDataType.java \
-#      src/java/javasci/javasci/SciDoubleArray.java \
-#      src/java/javasci/javasci/SciBooleanArray.java \
-#      src/java/javasci/javasci/SciDouble.java \
-#      src/java/javasci/javasci/SciBoolean.java \
-#      src/java/javasci/javasci/SciComplexArray.java \
-#      src/java/javasci/javasci/SciStringArray.java \
-#      src/java/javasci/javasci/SciComplex.java \
-#      src/java/javasci/javasci/SciString.java \
-#      src/java/javasci/javasci/ClassPath.java
-
-#### Where are the sources (mandatory) ####
-#CLASSPATH = src/java/javasci/
-
-#### javasci : jar file #### 
-#JARFILE = javasci.jar
-
-#BUILT_SOURCES+=$(JARFILE)
+
+if JAVASCI
+### All the compilation process of java is deleguated to ant
 
 #### Javasci : sources ####
 JAVASCI_C_SOURCES = src/c/javasci_Scilab2.c \
@@ -74,7 +56,8 @@ includes/javasci_SciAbstractArray.h
 
 USEANT=1
 
-tests:: $(JARFILE) $(JAVAFILES)
-       @(cd tests; make tests)
+
 
 include $(top_srcdir)/Makefile.incl.am
+
+endif
\ No newline at end of file
index 2c66759..b655d04 100644 (file)
@@ -47,8 +47,9 @@ PRE_UNINSTALL = :
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-DIST_COMMON = $(libjavasci_la_include_HEADERS) $(srcdir)/Makefile.am \
-       $(srcdir)/Makefile.in $(top_srcdir)/Makefile.incl.am
+DIST_COMMON = $(am__libjavasci_la_include_HEADERS_DIST) \
+       $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+       $(top_srcdir)/Makefile.incl.am
 subdir = modules/javasci
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/m4/fftw.m4 \
@@ -78,22 +79,29 @@ am__installdirs = "$(DESTDIR)$(pkglibdir)" \
        "$(DESTDIR)$(libjavasci_la_includedir)"
 pkglibLTLIBRARIES_INSTALL = $(INSTALL)
 LTLIBRARIES = $(pkglib_LTLIBRARIES)
-libjavasci_la_DEPENDENCIES =  \
-       $(top_builddir)/libs/MALLOC/libscimalloc.la \
-       $(top_builddir)/modules/libscilab.la
-am__objects_1 = libjavasci_la-javasci_Scilab2.lo \
-       libjavasci_la-javasci_globals.lo \
-       libjavasci_la-javasci_SciAbstractArray.lo \
-       libjavasci_la-javasci_SciStringArray.lo \
-       libjavasci_la-javasci_SciComplexArray.lo libjavasci_la-fix.lo \
-       libjavasci_la-javasci_SciDoubleArray.lo \
-       libjavasci_la-javasci_Scilab.lo \
-       libjavasci_la-javasci_SciBooleanArray.lo
-am_libjavasci_la_OBJECTS = $(am__objects_1)
+@JAVASCI_TRUE@libjavasci_la_DEPENDENCIES =  \
+@JAVASCI_TRUE@ $(top_builddir)/libs/MALLOC/libscimalloc.la \
+@JAVASCI_TRUE@ $(top_builddir)/modules/libscilab.la
+am__libjavasci_la_SOURCES_DIST = src/c/javasci_Scilab2.c \
+       src/c/javasci_globals.c src/c/javasci_SciAbstractArray.c \
+       src/c/javasci_SciStringArray.c src/c/javasci_SciComplexArray.c \
+       src/c/fix.c src/c/javasci_SciDoubleArray.c \
+       src/c/javasci_Scilab.c src/c/javasci_SciBooleanArray.c
+@JAVASCI_TRUE@am__objects_1 = libjavasci_la-javasci_Scilab2.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_globals.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_SciAbstractArray.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_SciStringArray.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_SciComplexArray.lo \
+@JAVASCI_TRUE@ libjavasci_la-fix.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_SciDoubleArray.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_Scilab.lo \
+@JAVASCI_TRUE@ libjavasci_la-javasci_SciBooleanArray.lo
+@JAVASCI_TRUE@am_libjavasci_la_OBJECTS = $(am__objects_1)
 libjavasci_la_OBJECTS = $(am_libjavasci_la_OBJECTS)
 libjavasci_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libjavasci_la_CFLAGS) \
        $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@JAVASCI_TRUE@am_libjavasci_la_rpath = -rpath $(pkglibdir)
 DEFAULT_INCLUDES = -I. -I$(top_builddir)/modules/core/includes@am__isrc@
 depcomp = $(SHELL) $(top_srcdir)/config/depcomp
 am__depfiles_maybe = depfiles
@@ -107,10 +115,17 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
        $(LDFLAGS) -o $@
 SOURCES = $(libjavasci_la_SOURCES)
-DIST_SOURCES = $(libjavasci_la_SOURCES)
+DIST_SOURCES = $(am__libjavasci_la_SOURCES_DIST)
 libjavasci_la_etcDATA_INSTALL = $(INSTALL_DATA)
 libjavasci_la_rootDATA_INSTALL = $(INSTALL_DATA)
 DATA = $(libjavasci_la_etc_DATA) $(libjavasci_la_root_DATA)
+am__libjavasci_la_include_HEADERS_DIST = includes/javasci_Scilab.h \
+       includes/javasci_Scilab2.h includes/javasci_globals.h \
+       includes/javasci_SciStringArray.h \
+       includes/javasci_SciComplexArray.h \
+       includes/javasci_SciDoubleArray.h \
+       includes/javasci_SciBooleanArray.h \
+       includes/javasci_SciAbstractArray.h
 libjavasci_la_includeHEADERS_INSTALL = $(INSTALL_HEADER)
 HEADERS = $(libjavasci_la_include_HEADERS)
 ETAGS = etags
@@ -276,74 +291,53 @@ top_srcdir = @top_srcdir@
 #### Target ######
 modulename = javasci
 
-#### Java sources ####
-#JAVAFILES = src/java/javasci/javasci/Scilab.java \
-#      src/java/javasci/javasci/BadDataArgumentException.java \
-#      src/java/javasci/javasci/SciAbstractArray.java \
-#      src/java/javasci/javasci/SciAbstractDataType.java \
-#      src/java/javasci/javasci/SciDoubleArray.java \
-#      src/java/javasci/javasci/SciBooleanArray.java \
-#      src/java/javasci/javasci/SciDouble.java \
-#      src/java/javasci/javasci/SciBoolean.java \
-#      src/java/javasci/javasci/SciComplexArray.java \
-#      src/java/javasci/javasci/SciStringArray.java \
-#      src/java/javasci/javasci/SciComplex.java \
-#      src/java/javasci/javasci/SciString.java \
-#      src/java/javasci/javasci/ClassPath.java
-
-#### Where are the sources (mandatory) ####
-#CLASSPATH = src/java/javasci/
-
-#### javasci : jar file #### 
-#JARFILE = javasci.jar
-
-#BUILT_SOURCES+=$(JARFILE)
+### All the compilation process of java is deleguated to ant
 
 #### Javasci : sources ####
-JAVASCI_C_SOURCES = src/c/javasci_Scilab2.c \
-src/c/javasci_globals.c \
-src/c/javasci_SciAbstractArray.c \
-src/c/javasci_SciStringArray.c \
-src/c/javasci_SciComplexArray.c \
-src/c/fix.c \
-src/c/javasci_SciDoubleArray.c \
-src/c/javasci_Scilab.c \
-src/c/javasci_SciBooleanArray.c
-
-pkglib_LTLIBRARIES = libjavasci.la
-libjavasci_la_SOURCES = $(JAVASCI_C_SOURCES)
-libjavasci_la_CFLAGS = -Iincludes/ $(JAVA_JNI_INCLUDE) -I$(top_srcdir)/libs/doublylinkedlist/includes
-libjavasci_la_LIBADD = \
-       $(top_builddir)/libs/MALLOC/libscimalloc.la \
-       $(top_builddir)/modules/libscilab.la
+@JAVASCI_TRUE@JAVASCI_C_SOURCES = src/c/javasci_Scilab2.c \
+@JAVASCI_TRUE@src/c/javasci_globals.c \
+@JAVASCI_TRUE@src/c/javasci_SciAbstractArray.c \
+@JAVASCI_TRUE@src/c/javasci_SciStringArray.c \
+@JAVASCI_TRUE@src/c/javasci_SciComplexArray.c \
+@JAVASCI_TRUE@src/c/fix.c \
+@JAVASCI_TRUE@src/c/javasci_SciDoubleArray.c \
+@JAVASCI_TRUE@src/c/javasci_Scilab.c \
+@JAVASCI_TRUE@src/c/javasci_SciBooleanArray.c
+
+@JAVASCI_TRUE@pkglib_LTLIBRARIES = libjavasci.la
+@JAVASCI_TRUE@libjavasci_la_SOURCES = $(JAVASCI_C_SOURCES)
+@JAVASCI_TRUE@libjavasci_la_CFLAGS = -Iincludes/ $(JAVA_JNI_INCLUDE) -I$(top_srcdir)/libs/doublylinkedlist/includes
+@JAVASCI_TRUE@libjavasci_la_LIBADD = \
+@JAVASCI_TRUE@ $(top_builddir)/libs/MALLOC/libscimalloc.la \
+@JAVASCI_TRUE@ $(top_builddir)/modules/libscilab.la
 
 
 #### javasci : Conf files ####
-libjavasci_la_rootdir = $(mydatadir)
-libjavasci_la_root_DATA = changelog.txt licence.txt readme.txt version.xml
+@JAVASCI_TRUE@libjavasci_la_rootdir = $(mydatadir)
+@JAVASCI_TRUE@libjavasci_la_root_DATA = changelog.txt licence.txt readme.txt version.xml
 
 #### javasci : init scripts #### 
-libjavasci_la_etcdir = $(mydatadir)/etc
-libjavasci_la_etc_DATA = etc/javasci.quit etc/javasci.start
+@JAVASCI_TRUE@libjavasci_la_etcdir = $(mydatadir)/etc
+@JAVASCI_TRUE@libjavasci_la_etc_DATA = etc/javasci.quit etc/javasci.start
 
 #### javasci : include files ####
-libjavasci_la_includedir = $(pkgincludedir)/javasci
-libjavasci_la_include_HEADERS = includes/javasci_Scilab.h \
-includes/javasci_Scilab2.h \
-includes/javasci_globals.h \
-includes/javasci_SciStringArray.h \
-includes/javasci_SciComplexArray.h \
-includes/javasci_SciDoubleArray.h \
-includes/javasci_SciBooleanArray.h \
-includes/javasci_SciAbstractArray.h
-
-USEANT = 1
+@JAVASCI_TRUE@libjavasci_la_includedir = $(pkgincludedir)/javasci
+@JAVASCI_TRUE@libjavasci_la_include_HEADERS = includes/javasci_Scilab.h \
+@JAVASCI_TRUE@includes/javasci_Scilab2.h \
+@JAVASCI_TRUE@includes/javasci_globals.h \
+@JAVASCI_TRUE@includes/javasci_SciStringArray.h \
+@JAVASCI_TRUE@includes/javasci_SciComplexArray.h \
+@JAVASCI_TRUE@includes/javasci_SciDoubleArray.h \
+@JAVASCI_TRUE@includes/javasci_SciBooleanArray.h \
+@JAVASCI_TRUE@includes/javasci_SciAbstractArray.h
+
+@JAVASCI_TRUE@USEANT = 1
 
 # Where all the Scilab stuff is installed (macros, help, ...)
-mydatadir = $(pkgdatadir)/modules/$(modulename)
+@JAVASCI_TRUE@mydatadir = $(pkgdatadir)/modules/$(modulename)
 
 #SUFFIXES = .xml .sci .htm
-SUFFIXES = .sci 
+@JAVASCI_TRUE@SUFFIXES = .sci 
 
 ########### INSTALL DOCUMENTATION ###################
 # Install HTML files into the right target
@@ -352,36 +346,36 @@ SUFFIXES = .sci
 # we are building Scilab
 
 # Where it should be installed
-pkgdocdir = $(mydatadir)
+@JAVASCI_TRUE@pkgdocdir = $(mydatadir)
 # Which directories we have to install
-DOCDIRS = help/fr_FR help/en_US
+@JAVASCI_TRUE@DOCDIRS = help/fr_FR help/en_US
 # What is the mask of the help output
-DOCMASK = *.htm
+@JAVASCI_TRUE@DOCMASK = *.htm
 # What is the mask of the help source
-DOCMASKXML = *.xml
+@JAVASCI_TRUE@DOCMASKXML = *.xml
 
 ########### INSTALL DATA ###################
 # Install macros
 # Where it should be installed
-pkgmacrosdir = $(mydatadir)
+@JAVASCI_TRUE@pkgmacrosdir = $(mydatadir)
 # Which directory we process
-MACRODIRS = macros/
+@JAVASCI_TRUE@MACRODIRS = macros/
 # Mask of the Scilab sources macros
-MACROMASK = *.sci
+@JAVASCI_TRUE@MACROMASK = *.sci
 # Mask of the Scilab executable sources macros
-MACROBUILDMASK = *.sce
+@JAVASCI_TRUE@MACROBUILDMASK = *.sce
 # Mask of the Scilab compiled macros
-MACROBINMASK = *.bin
+@JAVASCI_TRUE@MACROBINMASK = *.bin
 # List of the function of a module
-FUNCTION_NAMES = macros/names
+@JAVASCI_TRUE@FUNCTION_NAMES = macros/names
 # Localisation directory name
-LOCALISATIONDIRS = locales/fr_FR/ locales/en_US/
+@JAVASCI_TRUE@LOCALISATIONDIRS = locales/fr_FR/ locales/en_US/
 # Where to export JAVA files (.jar)
-JARDIR = jar/
+@JAVASCI_TRUE@JARDIR = jar/
 # JAR files
-JARMASK = *.jar
+@JAVASCI_TRUE@JARMASK = *.jar
 # List of the localisation (languages) files
-LOCALISATIONFILES = errors.xml menus.xml messages.xml
+@JAVASCI_TRUE@LOCALISATIONFILES = errors.xml menus.xml messages.xml
 all: all-am
 
 .SUFFIXES:
@@ -443,7 +437,7 @@ clean-pkglibLTLIBRARIES:
          rm -f "$${dir}/so_locations"; \
        done
 libjavasci.la: $(libjavasci_la_OBJECTS) $(libjavasci_la_DEPENDENCIES) 
-       $(libjavasci_la_LINK) -rpath $(pkglibdir) $(libjavasci_la_OBJECTS) $(libjavasci_la_LIBADD) $(LIBS)
+       $(libjavasci_la_LINK) $(am_libjavasci_la_rpath) $(libjavasci_la_OBJECTS) $(libjavasci_la_LIBADD) $(LIBS)
 
 mostlyclean-compile:
        -rm -f *.$(OBJEXT)
@@ -676,10 +670,11 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
+@JAVASCI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
+@JAVASCI_FALSE@all-local:
 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) all-local
 installdirs:
        for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libjavasci_la_etcdir)" "$(DESTDIR)$(libjavasci_la_rootdir)" "$(DESTDIR)$(libjavasci_la_includedir)"; do \
@@ -709,6 +704,9 @@ distclean-generic:
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"
        @echo "it deletes files that may require special tools to rebuild."
+@JAVASCI_FALSE@install-data-local:
+@JAVASCI_FALSE@install-html-local:
+@JAVASCI_FALSE@clean-local:
 clean: clean-am
 
 clean-am: clean-generic clean-libtool clean-local \
@@ -796,11 +794,21 @@ uninstall-am: uninstall-libjavasci_la_etcDATA \
        uninstall-libjavasci_la_includeHEADERS \
        uninstall-libjavasci_la_rootDATA uninstall-pkglibLTLIBRARIES
 
-
-tests:: $(JARFILE) $(JAVAFILES)
-       @(cd tests; make tests)
 #.java .class .jar
 
+# This target enables tests for Scilab
+@JAVASCI_TRUE@check-local: $(top_builddir)/scilab-bin
+@JAVASCI_TRUE@ @for check in $(MODULE_CHECKS) ; do \
+@JAVASCI_TRUE@         TESTS="$$TESTS'$$check';"; \
+@JAVASCI_TRUE@ done; \
+@JAVASCI_TRUE@ if test -f build.xml; then \
+@JAVASCI_TRUE@         $(ANT) checkstyle; \
+@JAVASCI_TRUE@ fi;\
+@JAVASCI_TRUE@ if test ! -z "$(MODULE_CHECKS)"; then \
+@JAVASCI_TRUE@         COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+@JAVASCI_TRUE@         $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+@JAVASCI_TRUE@ fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -811,39 +819,34 @@ tests:: $(JARFILE) $(JAVAFILES)
 
 # TODO : Renamed this variable
 
-@GUI_TRUE@java-build:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) jar; \
-@GUI_TRUE@     fi
-
-@GUI_TRUE@java-clean: 
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) clean; \
-@GUI_TRUE@     fi
+@GUI_TRUE@@JAVASCI_TRUE@java-build:
+@GUI_TRUE@@JAVASCI_TRUE@       @if test -f build.xml; then \
+@GUI_TRUE@@JAVASCI_TRUE@               $(ANT) jar; \
+@GUI_TRUE@@JAVASCI_TRUE@       fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
+@GUI_TRUE@@JAVASCI_TRUE@java-clean: 
+@GUI_TRUE@@JAVASCI_TRUE@       @if test -f build.xml; then \
+@GUI_TRUE@@JAVASCI_TRUE@               $(ANT) clean; \
+@GUI_TRUE@@JAVASCI_TRUE@       fi
 
-@GUI_TRUE@all-local:  java-build
-@GUI_FALSE@all-local: 
+@GUI_TRUE@@JAVASCI_TRUE@all-local:  java-build
+@GUI_FALSE@@JAVASCI_TRUE@all-local: 
 
 # If the user request for the SWIG generation of the wrappers Java => C/C++ 
 # We call the target swig-build on the variable BUILT_SOURCES 
 # We need to use BUILT_SOURCES because we want SWIG to be called BEFORE
 # the compilation of the C/C++ files...
-@SWIG_TRUE@$(BUILT_SOURCES): swig-build
-
-swig-build: 
-       @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
-       SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
-       if test ! -z "$(BUILT_SOURCES)"; then \
-               for file in $(BUILT_SOURCES) ; do \
-                       echo "Swig process of $$file ..."; \
-                       $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME  -outdir $$SWIG_OUTDIR $$file; \
-               done; \
-       fi
+@JAVASCI_TRUE@@SWIG_TRUE@$(BUILT_SOURCES): swig-build
+
+@JAVASCI_TRUE@swig-build: 
+@JAVASCI_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
+@JAVASCI_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
+@JAVASCI_TRUE@ if test ! -z "$(BUILT_SOURCES)"; then \
+@JAVASCI_TRUE@         for file in $(BUILT_SOURCES) ; do \
+@JAVASCI_TRUE@                 echo "Swig process of $$file ..."; \
+@JAVASCI_TRUE@                 $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME  -outdir $$SWIG_OUTDIR $$file; \
+@JAVASCI_TRUE@         done; \
+@JAVASCI_TRUE@ fi
 
 # Replace all the .java by .class in JAVAFILES
 #CLASSFILES = $(JAVAFILES:.java=.class)
@@ -870,109 +873,109 @@ swig-build:
 
 ################ MACROS ######################"
 # Rule to build a macro
-.sci.bin:
-       -@( if test ! -x $(top_builddir)/scilab-bin; then \
-       echo "Error : Cannot build $< : Scilab has not been build"; \
-       else \
-       echo "Creating $@"; \
-       $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
-       fi )
-
-macrossly:
-       @( if test ! -x $(top_builddir)/scilab-bin; then \
-       echo "Error : Cannot build $< : Scilab has not been build"; \
-       else \
-       LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$LD_LIBRARY_PATH";      export LD_LIBRARY_PATH; \
-       SCI=`cd $(top_builddir); pwd;`; export SCI; \
-       echo $$SCI/modules/functions/macros/genlib.bin; \
-       if test ! -f $$SCI/modules/functions/macros/genlib.bin; then \
-       (cd $$SCI; $$SCI/scilab-bin -ns -nwni -f $$SCI/modules/functions/scripts/buildmacros/buildmacros.sce;) \
-       fi; \
-       echo $(top_builddir)/scilab-bin -ns -nwni -f macros/buildmacros.sce; \
-       $(top_builddir)/scilab-bin -nwni -f macros/buildmacros.sce; \
-       fi )
-install-html-local:
-       $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
-       @for dir in $(DOCDIRS) ; do \
-        if test -d $$dir; then \
-         $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
-               if ls -lLd $(srcdir)/$$dir/$(DOCMASK) >/dev/null 2>&1; then \
-                 for file in $(srcdir)/$$dir/$(DOCMASK) ; do \
-                   echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \
-               $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \
-                 done ; \
-               fi; \
-        fi; \
-       done
+@JAVASCI_TRUE@.sci.bin:
+@JAVASCI_TRUE@ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+@JAVASCI_TRUE@ echo "Error : Cannot build $< : Scilab has not been build"; \
+@JAVASCI_TRUE@ else \
+@JAVASCI_TRUE@ echo "Creating $@"; \
+@JAVASCI_TRUE@ $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
+@JAVASCI_TRUE@ fi )
+
+@JAVASCI_TRUE@macrossly:
+@JAVASCI_TRUE@ @( if test ! -x $(top_builddir)/scilab-bin; then \
+@JAVASCI_TRUE@ echo "Error : Cannot build $< : Scilab has not been build"; \
+@JAVASCI_TRUE@ else \
+@JAVASCI_TRUE@ LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$LD_LIBRARY_PATH";      export LD_LIBRARY_PATH; \
+@JAVASCI_TRUE@ SCI=`cd $(top_builddir); pwd;`; export SCI; \
+@JAVASCI_TRUE@ echo $$SCI/modules/functions/macros/genlib.bin; \
+@JAVASCI_TRUE@ if test ! -f $$SCI/modules/functions/macros/genlib.bin; then \
+@JAVASCI_TRUE@ (cd $$SCI; $$SCI/scilab-bin -ns -nwni -f $$SCI/modules/functions/scripts/buildmacros/buildmacros.sce;) \
+@JAVASCI_TRUE@ fi; \
+@JAVASCI_TRUE@ echo $(top_builddir)/scilab-bin -ns -nwni -f macros/buildmacros.sce; \
+@JAVASCI_TRUE@ $(top_builddir)/scilab-bin -nwni -f macros/buildmacros.sce; \
+@JAVASCI_TRUE@ fi )
+@JAVASCI_TRUE@install-html-local:
+@JAVASCI_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
+@JAVASCI_TRUE@ @for dir in $(DOCDIRS) ; do \
+@JAVASCI_TRUE@  if test -d $$dir; then \
+@JAVASCI_TRUE@   $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+@JAVASCI_TRUE@         if ls -lLd $(srcdir)/$$dir/$(DOCMASK) >/dev/null 2>&1; then \
+@JAVASCI_TRUE@           for file in $(srcdir)/$$dir/$(DOCMASK) ; do \
+@JAVASCI_TRUE@             echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \
+@JAVASCI_TRUE@         $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \
+@JAVASCI_TRUE@           done ; \
+@JAVASCI_TRUE@         fi; \
+@JAVASCI_TRUE@  fi; \
+@JAVASCI_TRUE@ done
 # If the user wants the help sources to be installed
-@INSTALL_HELP_XML_TRUE@        @for dir in $(DOCDIRS) ; do \
-@INSTALL_HELP_XML_TRUE@         if test -d $$dir; then \
-@INSTALL_HELP_XML_TRUE@          $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
-@INSTALL_HELP_XML_TRUE@                if ls -lLd $(srcdir)/$$dir/$(DOCMASKXML) >/dev/null 2>&1; then \
-@INSTALL_HELP_XML_TRUE@                  for file in $(srcdir)/$$dir/$(DOCMASKXML) ; do \
-@INSTALL_HELP_XML_TRUE@                    echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \
-@INSTALL_HELP_XML_TRUE@                $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \
-@INSTALL_HELP_XML_TRUE@                  done ; \
-@INSTALL_HELP_XML_TRUE@                fi; \
-@INSTALL_HELP_XML_TRUE@         fi; \
-@INSTALL_HELP_XML_TRUE@        done
-install-data-local:
-       $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)
-       $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$(MACRODIRS)
-       @if test -f $(FUNCTION_NAMES); then \
-               echo "$(INSTALL_DATA) $(FUNCTION_NAMES) $(DESTDIR)$(pkgmacrosdir)/macros/"; \
-               $(INSTALL_DATA) $(FUNCTION_NAMES) $(DESTDIR)$(pkgmacrosdir)/$(MACRODIRS); \
-       fi
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@  @for dir in $(DOCDIRS) ; do \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@   if test -d $$dir; then \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@    $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@          if ls -lLd $(srcdir)/$$dir/$(DOCMASKXML) >/dev/null 2>&1; then \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@            for file in $(srcdir)/$$dir/$(DOCMASKXML) ; do \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@              echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@          $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@            done ; \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@          fi; \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@   fi; \
+@INSTALL_HELP_XML_TRUE@@JAVASCI_TRUE@  done
+@JAVASCI_TRUE@install-data-local:
+@JAVASCI_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)
+@JAVASCI_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$(MACRODIRS)
+@JAVASCI_TRUE@ @if test -f $(FUNCTION_NAMES); then \
+@JAVASCI_TRUE@         echo "$(INSTALL_DATA) $(FUNCTION_NAMES) $(DESTDIR)$(pkgmacrosdir)/macros/"; \
+@JAVASCI_TRUE@         $(INSTALL_DATA) $(FUNCTION_NAMES) $(DESTDIR)$(pkgmacrosdir)/$(MACRODIRS); \
+@JAVASCI_TRUE@ fi
 # Install the macros
-       @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
-         $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
-               if test -d $(srcdir)/$$dir/; then \
-                 for file in `ls -1 $(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/lib 2>/dev/null`; do \
-                   echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
-               $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
-                 done; \
-               fi; \
-       done
+@JAVASCI_TRUE@ @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+@JAVASCI_TRUE@   $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+@JAVASCI_TRUE@         if test -d $(srcdir)/$$dir/; then \
+@JAVASCI_TRUE@           for file in `ls -1 $(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/lib 2>/dev/null`; do \
+@JAVASCI_TRUE@             echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
+@JAVASCI_TRUE@         $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
+@JAVASCI_TRUE@           done; \
+@JAVASCI_TRUE@         fi; \
+@JAVASCI_TRUE@ done
 # Install the localisation files
-       @for dir in $(LOCALISATIONDIRS) ; do \
-        if test -d $$dir; then \
-         $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
-                 for file in $(LOCALISATIONFILES) ; do \
-                   echo "$(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \
-               $(INSTALL_DATA) "$$dir/$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \
-                 done ; \
-        fi; \
-       done
+@JAVASCI_TRUE@ @for dir in $(LOCALISATIONDIRS) ; do \
+@JAVASCI_TRUE@  if test -d $$dir; then \
+@JAVASCI_TRUE@   $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+@JAVASCI_TRUE@           for file in $(LOCALISATIONFILES) ; do \
+@JAVASCI_TRUE@             echo "$(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \
+@JAVASCI_TRUE@         $(INSTALL_DATA) "$$dir/$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \
+@JAVASCI_TRUE@           done ; \
+@JAVASCI_TRUE@  fi; \
+@JAVASCI_TRUE@ done
 # Install java files (.jar)
-       $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR)
-       @if ls -lLd $(srcdir)/$(JARDIR)/$(JARMASK) >/dev/null 2>&1; then \
-         for file in $(srcdir)/$(JARDIR)/$(JARMASK) ; do \
-                   echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
-               $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
-         done ; \
-       fi
+@JAVASCI_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR)
+@JAVASCI_TRUE@ @if ls -lLd $(srcdir)/$(JARDIR)/$(JARMASK) >/dev/null 2>&1; then \
+@JAVASCI_TRUE@   for file in $(srcdir)/$(JARDIR)/$(JARMASK) ; do \
+@JAVASCI_TRUE@             echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
+@JAVASCI_TRUE@         $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
+@JAVASCI_TRUE@   done ; \
+@JAVASCI_TRUE@ fi
 
 ########### CLEAN ###################
 # Clean macros and help (generated automatically by Scilab)
-@GUI_TRUE@clean-local: java-clean
-@GUI_FALSE@clean-local:
+@GUI_TRUE@@JAVASCI_TRUE@clean-local: java-clean
+@GUI_FALSE@@JAVASCI_TRUE@clean-local:
 # Removes macros (*.bin generated from .sci)
-       @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
-               echo "rm -f $(srcdir)/$$dir/$(MACROBINMASK)"; \
-               rm -f $(srcdir)/$$dir/$(MACROBINMASK); \
-       done
+@JAVASCI_TRUE@ @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+@JAVASCI_TRUE@         echo "rm -f $(srcdir)/$$dir/$(MACROBINMASK)"; \
+@JAVASCI_TRUE@         rm -f $(srcdir)/$$dir/$(MACROBINMASK); \
+@JAVASCI_TRUE@ done
 # Removes documentation (*.htm generated from .xml) 
-       @for dir in $(DOCDIRS) ; do \
-                if test -d $$dir; then \
-                       echo "rm -f $(srcdir)/$$dir/$(DOCMASK)"; \
-                       rm -f $(srcdir)/$$dir/$(DOCMASK); \
-               fi; \
-       done
-
-macros:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab $(srcdir)/$(MACRODIRS)/$(MACROMASK)
-       -@( \
-       LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$LD_LIBRARY_PATH";      export LD_LIBRARY_PATH; \
-       $(top_builddir)/bin/scilab -nb -nwni -f $(abs_srcdir)/macros/buildmacros.sce    )
+@JAVASCI_TRUE@ @for dir in $(DOCDIRS) ; do \
+@JAVASCI_TRUE@          if test -d $$dir; then \
+@JAVASCI_TRUE@                 echo "rm -f $(srcdir)/$$dir/$(DOCMASK)"; \
+@JAVASCI_TRUE@                 rm -f $(srcdir)/$$dir/$(DOCMASK); \
+@JAVASCI_TRUE@         fi; \
+@JAVASCI_TRUE@ done
+
+@JAVASCI_TRUE@macros:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab $(srcdir)/$(MACRODIRS)/$(MACROMASK)
+@JAVASCI_TRUE@ -@( \
+@JAVASCI_TRUE@ LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$LD_LIBRARY_PATH";      export LD_LIBRARY_PATH; \
+@JAVASCI_TRUE@ $(top_builddir)/bin/scilab -nb -nwni -f $(abs_srcdir)/macros/buildmacros.sce    )
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
index 697ac6f..2171d78 100644 (file)
@@ -813,7 +813,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -941,6 +940,19 @@ uninstall-am: uninstall-libscijvm_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -961,11 +973,6 @@ uninstall-am: uninstall-libscijvm_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index cbf93d4..263b8d1 100644 (file)
@@ -89,6 +89,9 @@ sci_gateway/c/sci_lsq.c
 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/Ex-schur.f \
 sci_gateway/fortran/bschur.f
 
+MODULE_CHECKS = unit_tests/algebra.tst \
+unit_tests/norm.tst
+
 libscilinear_algebra_la_CFLAGS=  -Iincludes/
 
 pkglib_LTLIBRARIES = libscilinear_algebra.la
index 8b2922c..696bbb9 100644 (file)
@@ -395,6 +395,9 @@ sci_gateway/c/sci_lsq.c
 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/Ex-schur.f \
 sci_gateway/fortran/bschur.f
 
+MODULE_CHECKS = unit_tests/algebra.tst \
+unit_tests/norm.tst
+
 libscilinear_algebra_la_CFLAGS = -Iincludes/
 pkglib_LTLIBRARIES = libscilinear_algebra.la
 libscilinear_algebra_la_SOURCES = $(LINEAR_ALGEBRA_FORTRAN_SOURCES) $(LINEAR_ALGEBRA_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
@@ -1049,7 +1052,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1179,6 +1181,19 @@ uninstall-am: uninstall-libscilinear_algebra_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1199,11 +1214,6 @@ uninstall-am: uninstall-libscilinear_algebra_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index b23d24c..48fc23b 100644 (file)
@@ -765,7 +765,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -895,6 +894,19 @@ uninstall-am: uninstall-libscilocalization_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -915,11 +927,6 @@ uninstall-am: uninstall-libscilocalization_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index a23ccc5..002e563 100644 (file)
@@ -401,7 +401,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -511,6 +510,19 @@ uninstall-am: uninstall-libm2sci_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -531,11 +543,6 @@ uninstall-am: uninstall-libm2sci_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 2f05bc1..d5edc38 100644 (file)
@@ -395,7 +395,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -506,6 +505,19 @@ uninstall-am: uninstall-libmaple2scilab_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -526,11 +538,6 @@ uninstall-am: uninstall-libmaple2scilab_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index e44c228..9574f4c 100644 (file)
@@ -115,6 +115,7 @@ sci_gateway/fortran/sci_m6umtree1.f \
 sci_gateway/fortran/sci_m6umtree.f \
 sci_gateway/fortran/sci_m6visitor.f
 
+MODULE_CHECKS = unit_tests/metanet.tst
 
 libscimetanet_la_CFLAGS=  -Iincludes/  -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/hashtable/
 
index 43a6289..e53d7ea 100644 (file)
@@ -421,6 +421,7 @@ sci_gateway/fortran/sci_m6umtree1.f \
 sci_gateway/fortran/sci_m6umtree.f \
 sci_gateway/fortran/sci_m6visitor.f
 
+MODULE_CHECKS = unit_tests/metanet.tst
 libscimetanet_la_CFLAGS = -Iincludes/  -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/libs/hashtable/
 pkglib_LTLIBRARIES = libscimetanet.la
 libscimetanet_la_SOURCES = $(METANET_C_SOURCES) $(METANET_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
@@ -1150,7 +1151,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1283,6 +1283,19 @@ uninstall-am: uninstall-libscimetanet_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1303,11 +1316,6 @@ uninstall-am: uninstall-libscimetanet_la_demosDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 5da4449..5c6debe 100644 (file)
@@ -605,7 +605,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -725,6 +724,19 @@ uninstall-am: uninstall-libmex_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -745,11 +757,6 @@ uninstall-am: uninstall-libmex_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index fa6c80a..b022dcb 100644 (file)
@@ -135,7 +135,9 @@ sci_gateway/fortran/Ex-optim.f \
 sci_gateway/fortran/Ex-fsolve.f \
 sci_gateway/fortran/Ex-lsqrsolve.f
 
-
+MODULE_CHECKS = unit_tests/bvode.tst \
+       unit_tests/colnew.tst \
+       unit_tests/matopt.tst
 
 libscioptimization_la_CFLAGS=  -Iincludes/ 
 #-Isrc/c/
index 5fa11b6..8cfbc8f 100644 (file)
@@ -444,6 +444,10 @@ sci_gateway/fortran/Ex-optim.f \
 sci_gateway/fortran/Ex-fsolve.f \
 sci_gateway/fortran/Ex-lsqrsolve.f
 
+MODULE_CHECKS = unit_tests/bvode.tst \
+       unit_tests/colnew.tst \
+       unit_tests/matopt.tst
+
 libscioptimization_la_CFLAGS = -Iincludes/ 
 #-Isrc/c/
 pkglib_LTLIBRARIES = libscioptimization.la
@@ -1277,7 +1281,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1410,6 +1413,19 @@ uninstall-am: uninstall-libscioptimization_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1430,11 +1446,6 @@ uninstall-am: uninstall-libscioptimization_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 0a5d04f..2085c8c 100644 (file)
@@ -3,6 +3,7 @@
 ### INRIA - Scilab 2006 
 ##########
 
+MODULE_CHECKS = unit_tests/matimp.tst
 
 #### Target ######
 modulename=others
index 1dce368..882d523 100644 (file)
@@ -237,6 +237,7 @@ target_alias = @target_alias@
 tcldir = @tcldir@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
+MODULE_CHECKS = unit_tests/matimp.tst
 
 #### Target ######
 modulename = others
@@ -613,7 +614,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -728,6 +728,19 @@ uninstall-am: uninstall-libsciothers_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -748,11 +761,6 @@ uninstall-am: uninstall-libsciothers_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index e174705..3581d96 100644 (file)
@@ -396,7 +396,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -508,6 +507,19 @@ uninstall-am: uninstall-libscioverloading_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -528,11 +540,6 @@ uninstall-am: uninstall-libscioverloading_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 8aa6b47..15322ae 100644 (file)
@@ -104,9 +104,11 @@ sci_gateway/fortran/sci_f_pclean.f \
 sci_gateway/fortran/sci_f_sfact.f \
 sci_gateway/fortran/sci_f_simpmd.f
 
-#libscipolynomials_la_FFLAGS= -Iincludes/ 
+MODULE_CHECKS = unit_tests/polelm.tst \
+unit_tests/polops.tst
+
 libscipolynomials_la_CFLAGS= -Iincludes/ 
-#-Isrc/c/
+
 pkglib_LTLIBRARIES = libscipolynomials.la
 
 libscipolynomials_la_SOURCES = $(POLYNOMIALS_FORTRAN_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
index 16d382d..174cca0 100644 (file)
@@ -407,10 +407,10 @@ sci_gateway/fortran/sci_f_pclean.f \
 sci_gateway/fortran/sci_f_sfact.f \
 sci_gateway/fortran/sci_f_simpmd.f
 
+MODULE_CHECKS = unit_tests/polelm.tst \
+unit_tests/polops.tst
 
-#libscipolynomials_la_FFLAGS= -Iincludes/ 
 libscipolynomials_la_CFLAGS = -Iincludes/ 
-#-Isrc/c/
 pkglib_LTLIBRARIES = libscipolynomials.la
 libscipolynomials_la_SOURCES = $(POLYNOMIALS_FORTRAN_SOURCES) $(GATEWAY_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
 libscipolynomials_la_LIBADD = 
@@ -1112,7 +1112,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1242,6 +1241,19 @@ uninstall-am: uninstall-libscipolynomials_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1262,11 +1274,6 @@ uninstall-am: uninstall-libscipolynomials_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index afd0b98..6745748 100644 (file)
@@ -50,6 +50,8 @@ sci_gateway/c/sci_pvm_config.c \
 sci_gateway/c/sci_pvm_recv_var.c \
 sci_gateway/c/sci_pvm_exit.c
 
+MODULE_CHECKS = pvm.tst
+
 libscipvm_la_CFLAGS=  -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/ -Isrc/c/
 
 pkglib_LTLIBRARIES = libscipvm.la
index 03af58f..82c468e 100644 (file)
@@ -397,6 +397,7 @@ top_srcdir = @top_srcdir@
 @PVM_TRUE@sci_gateway/c/sci_pvm_recv_var.c \
 @PVM_TRUE@sci_gateway/c/sci_pvm_exit.c
 
+@PVM_TRUE@MODULE_CHECKS = pvm.tst
 @PVM_TRUE@libscipvm_la_CFLAGS = -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/ -Isrc/c/
 @PVM_FALSE@pkglib_LTLIBRARIES = libscipvm.la
 @PVM_TRUE@pkglib_LTLIBRARIES = libscipvm.la
@@ -1135,7 +1136,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1267,6 +1267,19 @@ uninstall-am: uninstall-libscipvm_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+@PVM_TRUE@check-local: $(top_builddir)/scilab-bin
+@PVM_TRUE@     @for check in $(MODULE_CHECKS) ; do \
+@PVM_TRUE@             TESTS="$$TESTS'$$check';"; \
+@PVM_TRUE@     done; \
+@PVM_TRUE@     if test -f build.xml; then \
+@PVM_TRUE@             $(ANT) checkstyle; \
+@PVM_TRUE@     fi;\
+@PVM_TRUE@     if test ! -z "$(MODULE_CHECKS)"; then \
+@PVM_TRUE@             COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+@PVM_TRUE@             $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+@PVM_TRUE@     fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1287,11 +1300,6 @@ uninstall-am: uninstall-libscipvm_la_demosDATA \
 @GUI_TRUE@@PVM_TRUE@           $(ANT) clean; \
 @GUI_TRUE@@PVM_TRUE@   fi
 
-@GUI_TRUE@@PVM_TRUE@check-local:
-@GUI_TRUE@@PVM_TRUE@   @if test -f build.xml; then \
-@GUI_TRUE@@PVM_TRUE@           $(ANT) checkstyle; \
-@GUI_TRUE@@PVM_TRUE@   fi
-
 @GUI_TRUE@@PVM_TRUE@all-local:  java-build
 @GUI_FALSE@@PVM_TRUE@all-local: 
 
@@ -1441,6 +1449,19 @@ uninstall-am: uninstall-libscipvm_la_demosDATA \
 @PVM_TRUE@     $(top_builddir)/bin/scilab -nb -nwni -f $(abs_srcdir)/macros/buildmacros.sce    )
 #.java .class .jar
 
+# This target enables tests for Scilab
+@PVM_FALSE@check-local: $(top_builddir)/scilab-bin
+@PVM_FALSE@    @for check in $(MODULE_CHECKS) ; do \
+@PVM_FALSE@            TESTS="$$TESTS'$$check';"; \
+@PVM_FALSE@    done; \
+@PVM_FALSE@    if test -f build.xml; then \
+@PVM_FALSE@            $(ANT) checkstyle; \
+@PVM_FALSE@    fi;\
+@PVM_FALSE@    if test ! -z "$(MODULE_CHECKS)"; then \
+@PVM_FALSE@            COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+@PVM_FALSE@            $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+@PVM_FALSE@    fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1461,11 +1482,6 @@ uninstall-am: uninstall-libscipvm_la_demosDATA \
 @GUI_TRUE@@PVM_FALSE@          $(ANT) clean; \
 @GUI_TRUE@@PVM_FALSE@  fi
 
-@GUI_TRUE@@PVM_FALSE@check-local:
-@GUI_TRUE@@PVM_FALSE@  @if test -f build.xml; then \
-@GUI_TRUE@@PVM_FALSE@          $(ANT) checkstyle; \
-@GUI_TRUE@@PVM_FALSE@  fi
-
 @GUI_TRUE@@PVM_FALSE@all-local:  java-build
 @GUI_FALSE@@PVM_FALSE@all-local: 
 
index 8366efa..68f2a31 100644 (file)
@@ -39,8 +39,11 @@ src/fortran/gennor.f
 GATEWAY_C_SOURCES = sci_gateway/c/gw_randlib.c \
 sci_gateway/c/sci_grand.c
 
+MODULE_CHECKS = unit_tests/grand.tst \
+unit_tests/grandb.tst
+
 libscirandlib_la_CFLAGS=  -Iincludes/ 
-#-Isrc/c/
+
 pkglib_LTLIBRARIES = libscirandlib.la
 
 libscirandlib_la_SOURCES = $(RANDLIB_C_SOURCES) $(GATEWAY_C_SOURCES) $(RANDLIB_FORTRAN_SOURCES)
index 053ad40..4c8bee2 100644 (file)
@@ -322,8 +322,10 @@ src/fortran/gennor.f
 GATEWAY_C_SOURCES = sci_gateway/c/gw_randlib.c \
 sci_gateway/c/sci_grand.c
 
+MODULE_CHECKS = unit_tests/grand.tst \
+unit_tests/grandb.tst
+
 libscirandlib_la_CFLAGS = -Iincludes/ 
-#-Isrc/c/
 pkglib_LTLIBRARIES = libscirandlib.la
 libscirandlib_la_SOURCES = $(RANDLIB_C_SOURCES) $(GATEWAY_C_SOURCES) $(RANDLIB_FORTRAN_SOURCES)
 libscirandlib_la_LIBADD = \
@@ -812,7 +814,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -945,6 +946,19 @@ uninstall-am: uninstall-libscirandlib_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -965,11 +979,6 @@ uninstall-am: uninstall-libscirandlib_la_demosDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index c69d367..1dc95b2 100644 (file)
@@ -2068,7 +2068,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -2192,6 +2191,19 @@ uninstall-am: uninstall-libscirenderer_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -2212,11 +2224,6 @@ uninstall-am: uninstall-libscirenderer_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index f24204c..a60a4af 100644 (file)
@@ -204,6 +204,10 @@ sci_gateway/fortran/sci_vec2var.f \
 sci_gateway/fortran/sci_scicos_debug.f \
 sci_gateway/fortran/sci_getblocklabel.f
 
+MODULE_CHECKS = unit_tests/scicos_filesassociation.tst  \
+unit_tests/scicos.tst
+
+
 BUILT_SOURCES = includes/blocks.h
 
 includes/blocks.h:
index 7813ac9..44e51f1 100644 (file)
@@ -720,6 +720,9 @@ LOCALISATIONFILES = errors.xml menus.xml messages.xml
 @SCICOS_TRUE@sci_gateway/fortran/sci_scicos_debug.f \
 @SCICOS_TRUE@sci_gateway/fortran/sci_getblocklabel.f
 
+@SCICOS_TRUE@MODULE_CHECKS = unit_tests/scicos_filesassociation.tst  \
+@SCICOS_TRUE@unit_tests/scicos.tst
+
 @SCICOS_TRUE@BUILT_SOURCES = includes/blocks.h
 @SCICOS_TRUE@CLEANFILES = includes/blocks.h build/Cblocknames build/Fblocknames 
 @SCICOS_TRUE@libsciscicos_la_CFLAGS = -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/
@@ -2122,7 +2125,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: $(BUILT_SOURCES)
@@ -2258,6 +2260,19 @@ uninstall-am: uninstall-libsciscicos_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -2278,11 +2293,6 @@ uninstall-am: uninstall-libsciscicos_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 89303a0..438a020 100644 (file)
@@ -428,7 +428,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -544,6 +543,19 @@ uninstall-am: uninstall-libscilab2fortran_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -564,11 +576,6 @@ uninstall-am: uninstall-libscilab2fortran_la_demosDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index b3462d8..b22caf4 100644 (file)
@@ -396,7 +396,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -507,6 +506,19 @@ uninstall-am: uninstall-libsciscipad_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -527,11 +539,6 @@ uninstall-am: uninstall-libsciscipad_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index a3ed300..c6d3f0f 100644 (file)
@@ -748,7 +748,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -876,6 +875,19 @@ uninstall-am: uninstall-libscishell_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -896,11 +908,6 @@ uninstall-am: uninstall-libscishell_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 3407839..cc1bee1 100644 (file)
@@ -1053,7 +1053,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1187,6 +1186,19 @@ uninstall-am: uninstall-libscisignal_processing_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1207,11 +1219,6 @@ uninstall-am: uninstall-libscisignal_processing_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index b26a4cd..6354abb 100644 (file)
@@ -13,6 +13,13 @@ sci_gateway/c/gw_sound.c \
 sci_gateway/c/sci_beep.c \
 sci_gateway/c/sci_PlaySound.c
 
+MODULE_CHECKS = unit_tests/analyse.tst \
+unit_tests/beep.tst \
+unit_tests/mapsound.tst \
+unit_tests/playsnd.tst \
+unit_tests/savewave.tst \
+unit_tests/sound.tst \
+unit_tests/wavread.tst
 
 libscisound_la_CFLAGS=  -Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/
 
index b96c386..64b2cc7 100644 (file)
@@ -285,6 +285,14 @@ sci_gateway/c/gw_sound.c \
 sci_gateway/c/sci_beep.c \
 sci_gateway/c/sci_PlaySound.c
 
+MODULE_CHECKS = unit_tests/analyse.tst \
+unit_tests/beep.tst \
+unit_tests/mapsound.tst \
+unit_tests/playsnd.tst \
+unit_tests/savewave.tst \
+unit_tests/sound.tst \
+unit_tests/wavread.tst
+
 libscisound_la_CFLAGS = -Iincludes/ -Isrc/c/ -I$(top_srcdir)/libs/MALLOC/includes/
 pkglib_LTLIBRARIES = libscisound.la
 libscisound_la_SOURCES = $(SOUND_C_SOURCES) $(GATEWAY_C_SOURCES)
@@ -682,7 +690,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -814,6 +821,19 @@ uninstall-am: uninstall-libscisound_la_demosDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -834,11 +854,6 @@ uninstall-am: uninstall-libscisound_la_demosDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index ef36a28..c82943c 100644 (file)
@@ -161,6 +161,11 @@ sci_gateway/fortran/sci_lusolve.f \
 sci_gateway/fortran/sci_fadj2sp.f \
 sci_gateway/fortran/sci_sfinit.f
 
+
+MODULE_CHECKS = unit_tests/lsparse.tst \
+unit_tests/sparse.tst
+
+
 libscisparse_la_CFLAGS=  -Iincludes/ 
 #-Isrc/c/
 pkglib_LTLIBRARIES = libscisparse.la
index 346e644..1e27d43 100644 (file)
@@ -471,6 +471,9 @@ sci_gateway/fortran/sci_lusolve.f \
 sci_gateway/fortran/sci_fadj2sp.f \
 sci_gateway/fortran/sci_sfinit.f
 
+MODULE_CHECKS = unit_tests/lsparse.tst \
+unit_tests/sparse.tst
+
 libscisparse_la_CFLAGS = -Iincludes/ 
 #-Isrc/c/
 pkglib_LTLIBRARIES = libscisparse.la
@@ -1436,7 +1439,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1564,6 +1566,19 @@ uninstall-am: uninstall-libscisparse_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1584,11 +1599,6 @@ uninstall-am: uninstall-libscisparse_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index b8b4331..6a56c1b 100644 (file)
@@ -31,6 +31,8 @@ sci_gateway/fortran/sci_f_oldbesselj.f \
 sci_gateway/fortran/sci_f_oldbesselk.f \
 sci_gateway/fortran/sci_f_calerf.f
 
+MODULE_CHECKS = unit_tests/specfun.tst
+
 libscispecial_functions_la_includedir=$(pkgincludedir)/special_functions
 
 libscispecial_functions_la_include_HEADERS = includes/gw_special_functions1.h \
index d3bfc7a..6a702b5 100644 (file)
@@ -321,6 +321,7 @@ sci_gateway/fortran/sci_f_oldbesselj.f \
 sci_gateway/fortran/sci_f_oldbesselk.f \
 sci_gateway/fortran/sci_f_calerf.f
 
+MODULE_CHECKS = unit_tests/specfun.tst
 libscispecial_functions_la_includedir = $(pkgincludedir)/special_functions
 libscispecial_functions_la_include_HEADERS = includes/gw_special_functions1.h \
 includes/gw_special_functions2.h
@@ -803,7 +804,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -933,6 +933,19 @@ uninstall-am: uninstall-libscispecial_functions_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -953,11 +966,6 @@ uninstall-am: uninstall-libscispecial_functions_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 6b84615..aa9b7c5 100644 (file)
@@ -90,6 +90,8 @@ sci_gateway/c/sci_cdfbet.c \
 sci_gateway/c/sci_cdfnbn.c \
 sci_gateway/c/sci_cdfnor.c
 
+MODULE_CHECKS = unit_tests/dcd.tst
+
 libscistatistics_la_CFLAGS=  -Iincludes/ -Isrc/c/
 #-Isrc/c/
 pkglib_LTLIBRARIES = libscistatistics.la
index 8f42b23..c131d24 100644 (file)
@@ -386,6 +386,7 @@ sci_gateway/c/sci_cdfbet.c \
 sci_gateway/c/sci_cdfnbn.c \
 sci_gateway/c/sci_cdfnor.c
 
+MODULE_CHECKS = unit_tests/dcd.tst
 libscistatistics_la_CFLAGS = -Iincludes/ -Isrc/c/
 #-Isrc/c/
 pkglib_LTLIBRARIES = libscistatistics.la
@@ -1029,7 +1030,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1159,6 +1159,19 @@ uninstall-am: uninstall-libscistatistics_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1179,11 +1192,6 @@ uninstall-am: uninstall-libscistatistics_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 09b53f0..c02dc88 100644 (file)
@@ -43,6 +43,23 @@ sci_gateway/fortran/sci_ascii.f \
 sci_gateway/fortran/sci_strsubst.f \
 sci_gateway/fortran/strops.f
 
+MODULE_CHECKS = unit_tests/convstr.tst \
+unit_tests/string.tst \
+unit_tests/base.tst \
+unit_tests/length.tst \
+unit_tests/part.tst \
+unit_tests/strsubst.tst \
+unit_tests/strindex.tst \
+unit_tests/str2code.tst \
+unit_tests/code2str.tst \
+unit_tests/ascii.tst \
+unit_tests/sort.tst \
+unit_tests/strcat.tst \
+unit_tests/grep.tst \
+unit_tests/mulf.tst \
+unit_tests/addf.tst
+
+
 libscistring_la_CFLAGS=  -Isrc/c -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/
 
 pkglib_LTLIBRARIES = libscistring.la
index c2b3f67..8d587a8 100644 (file)
@@ -329,6 +329,22 @@ sci_gateway/fortran/sci_ascii.f \
 sci_gateway/fortran/sci_strsubst.f \
 sci_gateway/fortran/strops.f
 
+MODULE_CHECKS = unit_tests/convstr.tst \
+unit_tests/string.tst \
+unit_tests/base.tst \
+unit_tests/length.tst \
+unit_tests/part.tst \
+unit_tests/strsubst.tst \
+unit_tests/strindex.tst \
+unit_tests/str2code.tst \
+unit_tests/code2str.tst \
+unit_tests/ascii.tst \
+unit_tests/sort.tst \
+unit_tests/strcat.tst \
+unit_tests/grep.tst \
+unit_tests/mulf.tst \
+unit_tests/addf.tst
+
 libscistring_la_CFLAGS = -Isrc/c -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/
 pkglib_LTLIBRARIES = libscistring.la
 libscistring_la_SOURCES = $(STRING_C_SOURCES) $(STRING_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
@@ -850,7 +866,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -978,6 +993,19 @@ uninstall-am: uninstall-libscistring_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -998,11 +1026,6 @@ uninstall-am: uninstall-libscistring_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index a89b11f..931ee49 100644 (file)
@@ -657,7 +657,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -786,6 +785,19 @@ uninstall-am: uninstall-libscisymbolic_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -806,11 +818,6 @@ uninstall-am: uninstall-libscisymbolic_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index aef9e7a..7d75a70 100644 (file)
@@ -45,6 +45,8 @@ sci_gateway/c/sci_set.c \
 sci_gateway/c/sci_TCL_ExistArray.c \
 sci_gateway/c/sci_TCL_UpVar.c
 
+MODULE_CHECKS = unit_tests/TCL_SetGet.tst
+
 pkglib_LTLIBRARIES = libscitclsci.la
 
 libscitclsci_la_CFLAGS=  -Iincludes/ -Isrc/c -Isci_gateway/c/ -I$(top_srcdir)/libs/MALLOC/includes/ $(TCL_INC_PATH) $(TK_INC_PATH) 
index 0e8292e..2cf8173 100644 (file)
@@ -396,6 +396,7 @@ top_srcdir = @top_srcdir@
 @TCLTK_TRUE@sci_gateway/c/sci_TCL_ExistArray.c \
 @TCLTK_TRUE@sci_gateway/c/sci_TCL_UpVar.c
 
+@TCLTK_TRUE@MODULE_CHECKS = unit_tests/TCL_SetGet.tst
 @TCLTK_FALSE@pkglib_LTLIBRARIES = libscitclsci.la
 @TCLTK_TRUE@pkglib_LTLIBRARIES = libscitclsci.la
 @TCLTK_FALSE@libscitclsci_la_CFLAGS = -Iincludes/  -I$(top_srcdir)/libs/MALLOC/includes/
@@ -1356,7 +1357,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -1497,6 +1497,19 @@ uninstall-am: uninstall-libscitclsci_la_demossciGUIDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+@TCLTK_TRUE@check-local: $(top_builddir)/scilab-bin
+@TCLTK_TRUE@   @for check in $(MODULE_CHECKS) ; do \
+@TCLTK_TRUE@           TESTS="$$TESTS'$$check';"; \
+@TCLTK_TRUE@   done; \
+@TCLTK_TRUE@   if test -f build.xml; then \
+@TCLTK_TRUE@           $(ANT) checkstyle; \
+@TCLTK_TRUE@   fi;\
+@TCLTK_TRUE@   if test ! -z "$(MODULE_CHECKS)"; then \
+@TCLTK_TRUE@           COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+@TCLTK_TRUE@           $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+@TCLTK_TRUE@   fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1517,11 +1530,6 @@ uninstall-am: uninstall-libscitclsci_la_demossciGUIDATA \
 @GUI_TRUE@@TCLTK_TRUE@         $(ANT) clean; \
 @GUI_TRUE@@TCLTK_TRUE@ fi
 
-@GUI_TRUE@@TCLTK_TRUE@check-local:
-@GUI_TRUE@@TCLTK_TRUE@ @if test -f build.xml; then \
-@GUI_TRUE@@TCLTK_TRUE@         $(ANT) checkstyle; \
-@GUI_TRUE@@TCLTK_TRUE@ fi
-
 @GUI_TRUE@@TCLTK_TRUE@all-local:  java-build
 @GUI_FALSE@@TCLTK_TRUE@all-local: 
 
@@ -1671,6 +1679,19 @@ uninstall-am: uninstall-libscitclsci_la_demossciGUIDATA \
 @TCLTK_TRUE@   $(top_builddir)/bin/scilab -nb -nwni -f $(abs_srcdir)/macros/buildmacros.sce    )
 #.java .class .jar
 
+# This target enables tests for Scilab
+@TCLTK_FALSE@check-local: $(top_builddir)/scilab-bin
+@TCLTK_FALSE@  @for check in $(MODULE_CHECKS) ; do \
+@TCLTK_FALSE@          TESTS="$$TESTS'$$check';"; \
+@TCLTK_FALSE@  done; \
+@TCLTK_FALSE@  if test -f build.xml; then \
+@TCLTK_FALSE@          $(ANT) checkstyle; \
+@TCLTK_FALSE@  fi;\
+@TCLTK_FALSE@  if test ! -z "$(MODULE_CHECKS)"; then \
+@TCLTK_FALSE@          COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+@TCLTK_FALSE@          $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+@TCLTK_FALSE@  fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -1691,11 +1712,6 @@ uninstall-am: uninstall-libscitclsci_la_demossciGUIDATA \
 @GUI_TRUE@@TCLTK_FALSE@                $(ANT) clean; \
 @GUI_TRUE@@TCLTK_FALSE@        fi
 
-@GUI_TRUE@@TCLTK_FALSE@check-local:
-@GUI_TRUE@@TCLTK_FALSE@        @if test -f build.xml; then \
-@GUI_TRUE@@TCLTK_FALSE@                $(ANT) checkstyle; \
-@GUI_TRUE@@TCLTK_FALSE@        fi
-
 @GUI_TRUE@@TCLTK_FALSE@all-local:  java-build
 @GUI_FALSE@@TCLTK_FALSE@all-local: 
 
index 31e811e..02eb990 100644 (file)
@@ -395,7 +395,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -506,6 +505,19 @@ uninstall-am: uninstall-libscitexmacs_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -526,11 +538,6 @@ uninstall-am: uninstall-libscitexmacs_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index cd17a73..98d13e9 100644 (file)
@@ -21,6 +21,8 @@ libscitime_la_CFLAGS=  -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/ -Isrc/c
 
 pkglib_LTLIBRARIES = libscitime.la
 
+MODULE_CHECKS = unit_tests/date.tst
+
 libscitime_la_SOURCES = $(TIME_C_SOURCES) $(GATEWAY_C_SOURCES)
 
 libscitime_la_LIBADD = \
index adda0aa..6dc65bb 100644 (file)
@@ -291,6 +291,7 @@ sci_gateway/c/gw_time.c
 
 libscitime_la_CFLAGS = -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/ -Isrc/c/
 pkglib_LTLIBRARIES = libscitime.la
+MODULE_CHECKS = unit_tests/date.tst
 libscitime_la_SOURCES = $(TIME_C_SOURCES) $(GATEWAY_C_SOURCES)
 libscitime_la_LIBADD = \
        $(top_builddir)/modules/intersci/libsciintersci.la \
@@ -694,7 +695,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -822,6 +822,19 @@ uninstall-am: uninstall-libscitime_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -842,11 +855,6 @@ uninstall-am: uninstall-libscitime_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: 
 
index 3522f6c..d15b534 100644 (file)
@@ -1,6 +1,5 @@
 ##########
 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
-### TEMPLATE MAKEFILE 
 ### INRIA - Scilab 2007
 ##########
 
index 10dda6a..6be59b3 100644 (file)
@@ -16,7 +16,6 @@
 
 ##########
 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
-### TEMPLATE MAKEFILE 
 ### INRIA - Scilab 2007
 ##########
 
@@ -599,7 +598,6 @@ distdir: $(DISTFILES)
            || exit 1; \
          fi; \
        done
-@GUI_FALSE@check-local:
 check-am: all-am
        $(MAKE) $(AM_MAKEFLAGS) check-local
 check: check-am
@@ -729,6 +727,19 @@ uninstall-am: uninstall-libsciwindows_tools_la_etcDATA \
 
 #.java .class .jar
 
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin
+       @for check in $(MODULE_CHECKS) ; do \
+               TESTS="$$TESTS'$$check';"; \
+       done; \
+       if test -f build.xml; then \
+               $(ANT) checkstyle; \
+       fi;\
+       if test ! -z "$(MODULE_CHECKS)"; then \
+               COMMAND="myTests=[$$TESTS];launchtest(pwd(),myTests);quit";\
+               $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+       fi
+
 ########################### JAVA ######################################
 #### We had to create those rules because autotools does NOT provide
 #### a kind of mechanism like C or Fortran sources :
@@ -749,11 +760,6 @@ uninstall-am: uninstall-libsciwindows_tools_la_etcDATA \
 @GUI_TRUE@             $(ANT) clean; \
 @GUI_TRUE@     fi
 
-@GUI_TRUE@check-local:
-@GUI_TRUE@     @if test -f build.xml; then \
-@GUI_TRUE@             $(ANT) checkstyle; \
-@GUI_TRUE@     fi
-
 @GUI_TRUE@all-local:  java-build
 @GUI_FALSE@all-local: