Rev 18065 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#-*- Makefile -*-## ${RHOME}/tests/Makefile.winsrcdir = .## Can't test when cross-buildingRHOME = $(shell ../src/gnuwin32/Rpwd.exe ..)# must be absolute pathR= $(RHOME)/bin/Rterm --vanilla LC_ALL=C SRCDIR=.RDIFF = $(RHOME)/bin/Rcmd Rdiff.shRVAL_IF_DIFF=0test-src-gct = \eval-etc.R \simple-true.R \arith-true.R \arith.R \demos.R \lm-tests.R \primitive-funs.R \ok-errors.R \method-dispatch.Rtest-src-strict-1 = \$(test-src-gct) \d-p-q-r-tests.Rtest-src-strict-auto = \isas-tests.Rtest-src-sloppy-1 = \print-tests.Rtest-src-sloppy-auto = \no-segfault.Rtest-src-1 = $(test-src-strict-1) $(test-src-sloppy-1)test-src-auto = $(test-src-strict-auto) $(test-src-sloppy-auto)test-src-sloppy = $(test-src-sloppy-1) #$(test-src-sloppy-auto)test-src-strict = $(test-src-strict-1) $(test-src-strict-auto)test-src = $(test-src-strict) $(test-src-sloppy)test-src-internet = internet.Rtest-src-lapack = lapack.Rtest-src-nafns = nafns.Rtest-src-random = p-r-random-tests.Rtest-src-postscript = ps-tests.Rtest-src-reg-1 = \reg-tests-1.R reg-tests-2.R reg-IO.R reg-IO2.R reg-plot.Rtest-src-reg-auto =test-src-reg = $(test-src-reg-1) $(test-src-reg-auto)test-out-strict = $(test-src-strict:.R=.Rout)test-out-sloppy = $(test-src-sloppy:.R=.Rout)test-out-internet = $(test-src-internet:.R=.Rout)test-out-lapack = $(test-src-lapack:.R=.Rout)test-out-nafns = $(test-src-nafns:.R=.Rout)test-out-postscript = $(test-src-postscript:.R=.Rout)test-out-random = $(test-src-random:.R=.Rout)test-out-reg = $(test-src-reg:.R=.Rout)all-extra-tests = Lapack Nafns Postscript Random Regtest-out = $(test-src:.R=.Rout) $(test-out-gct) \$(test-out-internet) $(test-out-lapack) $(test-out-nafns) \$(test-out-random) $(test-out-postscript) $(test-out-reg).SUFFIXES:.SUFFIXES: .R .Rin .Rout.Rin.R:@echo "creating \`$@'"@$(R) < $< > /dev/null.R.Rout:@rm -f $@ $@.fail@echo "running \`$<'"@$(R) < $< > $@@if [ -f $(srcdir)/$@.save ] ; then \mv $@ $@.fail; \echo -n \"Comparing \`$@' to \`$(srcdir)/$@.save' ..."; \$(RDIFF) $@.fail $(srcdir)/$@.save $(RVAL_IF_DIFF) || exit 1; \mv $@.fail $@; \echo "OK"; \fiall: test-Specifictest-Specific-strict: $(test-out-strict)test-Specific-sloppy: $(test-out-sloppy)test-Specific:@echo "running strict specific tests"@$(MAKE) -f Makefile.win test-Specific-strict RVAL_IF_DIFF=1@echo "running sloppy specific tests"@$(MAKE) -f Makefile.win test-Specific-sloppy RVAL_IF_DIFF=0@rm -f data F.Rd c0.Rd df0.Rd l0.Rdtest-all-extras:@for name in $(all-extra-tests); do \$(MAKE) -f Makefile.win test-$${name} || exit 1; \donetest-Internet:@echo "running tests of Internet and socket functions"@$(RM) internet.Rout@$(MAKE) -f Makefile.win test-Internet-run RVAL_IF_DIFF=0$(R) --internet2 --vanilla < internet.R > internet.Rout2diff internet.Rout internet.Rout2test-Internet-run: $(test-out-internet)test-Lapack:@echo "running tests of LAPACK-based functions"@$(MAKE) -f Makefile.win test-Lapack-run RVAL_IF_DIFF=0test-Lapack-run: $(test-out-lapack)test-Nafns:@echo "running tests of NA handling functions"@$(MAKE) -f Makefile.win test-Nafns-run RVAL_IF_DIFF=0test-Nafns-run: $(test-out-nafns)test-Postscript:@echo "running tests of postscript() families"@$(MAKE) -f Makefile.win $(test-out-postscript) RVAL_IF_DIFF=0test-Random:@echo "running tests of random deviate generation"@$(MAKE) -f Makefile.win test-Random-run RVAL_IF_DIFF=1test-Random-run: $(test-out-random)test-Reg:@echo "running regression tests"@$(MAKE) -f Makefile.win test-Reg-run RVAL_IF_DIFF=0test-Reg-run: $(test-out-reg)clean:@rm -f *.Rout *.Rout.fail *.Rout2 Rplots.ps reg-plot.ps $(test-src-auto)