Skip to content

Commit

Permalink
make fullcheck
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@21242 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
pd committed Sep 9, 2002
1 parent 7b106d8 commit 93d29fc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makeconf.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ PERL = @PERL@
R_GUIS = @R_GUIS@ R_GUIS = @R_GUIS@
R_PKGS_BASE = base ctest eda lqs methods modreg mva nls splines stepfun tcltk tools ts R_PKGS_BASE = base ctest eda lqs methods modreg mva nls splines stepfun tcltk tools ts
R_PKGS_RECOMMENDED = survival boot cluster foreign grid lattice KernSmooth mgcv nlme rpart VR R_PKGS_RECOMMENDED = survival boot cluster foreign grid lattice KernSmooth mgcv nlme rpart VR
R_PKGS_RECOMMENDED_EXPANDED = survival boot cluster foreign grid lattice KernSmooth mgcv nlme rpart MASS nnet spatial class
R_PKGS = $(R_PKGS_BASE) @USE_RECOMMENDED_PACKAGES_TRUE@ $(R_PKGS_RECOMMENDED) R_PKGS = $(R_PKGS_BASE) @USE_RECOMMENDED_PACKAGES_TRUE@ $(R_PKGS_RECOMMENDED)
R_XTRA_CFLAGS = @R_XTRA_CFLAGS@ R_XTRA_CFLAGS = @R_XTRA_CFLAGS@
R_XTRA_CPPFLAGS = @R_XTRA_CPPFLAGS@ -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/include R_XTRA_CPPFLAGS = @R_XTRA_CPPFLAGS@ -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/include
Expand Down
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ install-dvi install-info install-pdf:
uninstall-dvi uninstall-info uninstall-pdf: uninstall-dvi uninstall-info uninstall-pdf:
-@(cd doc/manual && $(MAKE) $@) -@(cd doc/manual && $(MAKE) $@)


check: check fullcheck:
@(cd tests && $(MAKE) $@) @(cd tests && $(MAKE) $@)


reset-recommended: reset-recommended:
@(cd src/library/Recommended && rm -f Timestamp && $(MAKE) Timestamp) @(cd src/library/Recommended && $(MAKE) clean)


TAGS: TAGS:
33 changes: 30 additions & 3 deletions tests/Examples/Makefile.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ R = $(top_builddir)/bin/R --vanilla
EX_IN = $(R_PKGS_BASE:=-Ex.R) EX_IN = $(R_PKGS_BASE:=-Ex.R)
EX_OUT = $(EX_IN:.R=.Rout) EX_OUT = $(EX_IN:.R=.Rout)


RECOMMENDED_EX_IN = $(R_PKGS_RECOMMENDED_EXPANDED:=-Ex.R)
RECOMMENDED_EX_OUT = $(RECOMMENDED_EX_IN:.R=.Rout)

.SUFFIXES: .SUFFIXES:
.SUFFIXES: .R .Rout .SUFFIXES: .R .Rout


all: Makefile Makedeps test-Examples all: Makefile Makedeps test-Examples


Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Expand All @@ -37,11 +40,15 @@ Makedeps: Makefile
echo $${dep}; \ echo $${dep}; \
done) >> Makefile done) >> Makefile
@touch $@ @touch $@

test-Examples: test-Base-Examples
test-Examples: Makefile test-Base-Examples: Makefile
@$(MAKE) Makedeps @$(MAKE) Makedeps
@$(MAKE) $(EX_OUT) @$(MAKE) $(EX_OUT)


test-Recommended-Examples: test-Base-Examples
@$(MAKE) $(RECOMMENDED_EX_OUT)


R: R:
@cd $(top_builddir) && $(MAKE) R @cd $(top_builddir) && $(MAKE) R


Expand Down Expand Up @@ -71,12 +78,32 @@ $(EX_IN): FORCE
$(top_srcdir)/tools/move-if-change $${f} $@; \ $(top_srcdir)/tools/move-if-change $${f} $@; \
touch $@; \ touch $@; \
fi) fi)
$(RECOMMENDED_EX_IN): FORCE
@(pkg=`basename $@ -Ex.R`; \
if [ $(top_builddir)/library/$${pkg} -nt "$@" ]; then \
if test -f $@ ; then \
if test -n "`tail -6 $@ | grep '^Time elapsed'`" ; then \
if test -f $@.bak ; then mv $@.bak $@.bakk ; fi; \
cp -p $@ $@.bak; \
fi; \
fi; \
echo "collecting examples for package '$${pkg}' ..."; \
f=$${TMPDIR-/tmp}/R$$$$; \
$(PERL) $(top_srcdir)/share/perl/massage-Examples.pl $${pkg} \
$(top_builddir)/library/$${pkg}/R-ex > $${f}; \
$(top_srcdir)/tools/move-if-change $${f} $@; \
touch $@; \
fi)
FORCE: FORCE:


$(EX_OUT): Makefile \ $(EX_OUT): Makefile \
$(top_builddir)/bin/R.bin \ $(top_builddir)/bin/R.bin \
$(top_builddir)/library/base/R/base \ $(top_builddir)/library/base/R/base \
$(top_builddir)/modules/lapack$(SHLIB_EXT) $(top_builddir)/modules/lapack$(SHLIB_EXT)
$(RECOMMENDED_EX_OUT): Makefile \
$(top_builddir)/bin/R.bin \
$(top_builddir)/library/base/R/base \
$(top_builddir)/modules/lapack$(SHLIB_EXT)


base-Ex.Rout: $(top_builddir)/modules/vfonts$(SHLIB_EXT) base-Ex.Rout: $(top_builddir)/modules/vfonts$(SHLIB_EXT)


Expand Down
3 changes: 3 additions & 0 deletions tests/Makefile.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ test-out = $(test-src:.R=.Rout) $(test-out-gct) \
.SUFFIXES: .R .Rin .Rout .Rout-gct .SUFFIXES: .R .Rin .Rout .Rout-gct


all check: Makefile test-all-basics all check: Makefile test-all-basics
fullcheck: check test-Recommended-Examples


Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Expand Down Expand Up @@ -148,6 +149,8 @@ test-all-basics: Makefile
done done
test-Examples: test-Examples:
@(cd Examples && $(MAKE) $@) @(cd Examples && $(MAKE) $@)
test-Recommended-Examples:
@(cd Examples && $(MAKE) $@)
test-Specific-strict: $(test-out-strict) test-Specific-strict: $(test-out-strict)
test-Specific-sloppy: $(test-out-sloppy) test-Specific-sloppy: $(test-out-sloppy)
test-Specific: test-Specific:
Expand Down

0 comments on commit 93d29fc

Please sign in to comment.