## ${R_HOME}/share/make/tests.mk include $(R_HOME)/etc/Makeconf makevars = srcdir = . test-src = $(test-src-1) $(test-src-auto) test-out = $(test-src:.R=.Rout) R = srcdir=$(srcdir) $(R_HOME)/bin/R --vanilla RDIFF = $(R_HOME)/bin/Rdiff USE_GCT = 0 .SUFFIXES: .SUFFIXES: .R .Rin .Rout .Rin.R: @echo "Creating \`$@'" @$(R) < $< > /dev/null .R.Rout: @rm -f $@ $@.fail @echo " Running \`$<'" ## ## Eventually make setting T and F to NULL unconditional ... @(if test "$(USE_GCT)" != 0; then echo "gctorture(TRUE)"; fi; \ if test -n "$(R_CHECK_WITH_T_N_F_AS_NULL)"; then \ echo "T <- F <- NULL"; \ fi; \ cat $<) | R_LIBS=$(R_LIBS) $(R) > $@ ## @if test -f $(srcdir)/$@.save; then \ mv $@ $@.fail; \ echo $(ECHO_N) " Comparing \`$@' to \`$@.save' ...$(ECHO_C)"; \ $(RDIFF) $@.fail $(srcdir)/$@.save 0 || exit 1; \ mv $@.fail $@; \ echo "$(ECHO_T) OK"; \ fi all: @(out=`echo "$(test-out)" | sed 's/ $$//g'`; \ if test -n "$${out}"; then \ $(MAKE) -f $(R_HOME)/share/make/tests.mk $(makevars) $${out}; \ fi) clean: @rm -f $(test-out) $(test-src-auto) *.fail