https://github.com/cran/doParallel
Tip revision: 105255fdd13c946ab65b2424ce6e399c0a1b547e authored by Revolution Analytics on 06 December 2011, 00:00:00 UTC
version 1.0.0
version 1.0.0
Tip revision: 105255f
runTestSuite.sh
#!/bin/sh
LOGFILE=test.log
R --vanilla --slave > ${LOGFILE} 2>&1 <<'EOF'
library(doMC)
library(RUnit)
verbose <- as.logical(Sys.getenv('FOREACH_VERBOSE', 'FALSE'))
library(doMC)
registerDoMC()
options(warn=1)
options(showWarnCalls=TRUE)
cat('Starting test at', date(), '\n')
cat(sprintf('doMC version: %s\n', getDoParVersion()))
cat(sprintf('Running with %d worker(s)\n', getDoParWorkers()))
tests <- c('options.R')
errcase <- list()
for (f in tests) {
cat('\nRunning test file:', f, '\n')
t <- runTestFile(f)
e <- getErrors(t)
if (e$nErr + e$nFail > 0) {
errcase <- c(errcase, t)
print(t)
}
}
if (length(errcase) == 0) {
cat('*** Ran all tests successfully ***\n')
} else {
cat('!!! Encountered', length(errcase), 'problems !!!\n')
for (t in errcase) {
print(t)
}
}
cat('Finished test at', date(), '\n')
EOF