external_tests/sebastian_notebook_mac.R

library(BatchJobs)
source("helpers.R")

runTests = function(staged.queries) {
  conf = BatchJobs:::getBatchJobsConf()
  conf$mail.start = conf$mail.done = conf$mail.error = "none"
  conf$staged.queries = staged.queries
  
  conf$cluster.functions = makeClusterFunctionsInteractive()
  doExternalTest(whitespace=FALSE)
  
  conf$cluster.functions = makeClusterFunctionsLocal()
  doExternalTest(whitespace=FALSE)
  
  conf$cluster.functions = makeClusterFunctionsMulticore()
  doExternalTest(whitespace=FALSE)
  doKillTest(n=2)
  
  conf$cluster.functions = makeClusterFunctionsSSH(
    makeSSHWorker("localhost"))
  doExternalTest(whitespace=FALSE)
  doKillTest(n=2)
}

runTests(staged.queries=FALSE)
runTests(staged.queries=TRUE)
tudo-r/BatchJobs documentation built on April 3, 2022, 3:28 a.m.