Skip to content

Commit 820e15b

Browse files
committed
unit tests vignette runs full tests if the test env var is set
roll Version: in DESCRIPTION set Date: manually in DESCRIPTION as SVN no longer does that for us
1 parent 2cbe013 commit 820e15b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 0.10.6
4-
Date: $Date$
3+
Version: 0.10.6.1
4+
Date: 2013-11-13
55
Author: Dirk Eddelbuettel and Romain Francois, with contributions
66
by Douglas Bates, John Chambers and JJ Allaire
77
Maintainer: Dirk Eddelbuettel <edd@debian.org>

vignettes/Rcpp-unitTests.Rnw

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ library(RUnit)
3030
<<unitTesting,echo=FALSE,print=FALSE>>=
3131
pkg <- "Rcpp"
3232
33-
## Make sure we run all tests for the vignette
34-
Sys.setenv("RunAllRcppTests"="yes")
33+
## Check the environemnt variable to see if all tests should be run
34+
if (Sys.getenv("RunAllRcppTests") != "yes") {
35+
writeLines("The environment variable 'RunAllRcppTests' was not set to 'yes', so skipping some tests.")
36+
}
3537
3638
if (file.exists("unitTests-results")) unlink("unitTests-results", recursive = TRUE)
3739
dir.create("unitTests-results")
@@ -61,7 +63,7 @@ results <- "unitTests-results/Rcpp-unitTests.txt"
6163
if (file.exists(results)) {
6264
writeLines(readLines(results))
6365
} else{
64-
writeLines( "unit test results not available" )
66+
writeLines("Unit test results not available")
6567
}
6668
@
6769

0 commit comments

Comments
 (0)