The R Project SVN R

Rev

Rev 23262 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23262 Rev 33649
Line 6... Line 6...
6
srcdir = .
6
srcdir = .
7
 
7
 
8
test-src = $(test-src-1) $(test-src-auto)
8
test-src = $(test-src-1) $(test-src-auto)
9
test-out = $(test-src:.R=.Rout)
9
test-out = $(test-src:.R=.Rout)
10
 
10
 
11
R = srcdir=$(srcdir) $(R_HOME)/bin/Rterm.exe --vanilla
11
R = srcdir=$(srcdir) LANGUAGE=C $(R_HOME)/bin/Rterm.exe --vanilla
12
RDIFF = $(R_HOME)/bin/Rcmd Rdiff.sh
12
RDIFF = $(R_HOME)/bin/Rcmd Rdiff.sh
13
USE_GCT = 0
13
USE_GCT = 0
-
 
14
R_OPTS =
14
 
15
 
15
.SUFFIXES:
16
.SUFFIXES:
16
.SUFFIXES: .R .Rin .Rout
17
.SUFFIXES: .R .Rin .Rout
17
 
18
 
18
.Rin.R:
19
.Rin.R:
Line 21... Line 22...
21
 
22
 
22
.R.Rout:
23
.R.Rout:
23
	@rm -f $@ $@.fail
24
	@rm -f $@ $@.fail
24
	@echo "  Running '$<'"
25
	@echo "  Running '$<'"
25
	@(if test "$(USE_GCT)" != 0; then echo "gctorture(TRUE)"; fi; \
26
	@(if test "$(USE_GCT)" != 0; then echo "gctorture(TRUE)"; fi; \
26
	  cat $<) | $(R) R_LIBS="$(R_LIBS)" > $@ 2>&1
27
	  cat $<) | $(R) R_LIBS="$(R_LIBS)" $(R_OPTS) > $@ 2>&1 || \
-
 
28
	  (mv $@ $@.fail && exit 1)
27
	@if test -f $(srcdir)/$@.save; then \
29
	@if test -f $(srcdir)/$@.save; then \
28
	  mv $@ $@.fail; \
30
	  mv $@ $@.fail; \
29
	  echo -n "  Comparing '$@' to '$@.save' ..."; \
31
	  echo -n "  Comparing '$@' to '$@.save' ..."; \
30
	  $(RDIFF) $@.fail $(srcdir)/$@.save 0 || exit 1; \
32
	  $(RDIFF) $@.fail $(srcdir)/$@.save 0 || exit 1; \
31
	  mv $@.fail $@; \
33
	  mv $@.fail $@; \