#!/usr/bin/Rscript
# vim:set ff=unix expandtab ts=2 sw=2:
source("prolog.R")
alltests <- defineTestSuite(
  name="allTests",
  dirs=".",
  testFileRegexp = "^example.+\\.[rR]",
  testFuncRegexp = "^test.+",
  rngKind = "Marsaglia-Multicarry",
  rngNormalKind = "Kinderman-Ramage"
)

testResult <- runTestSuite(alltests)
printTextProtocol(testResult)
#produce exitstatus ne 0 for buildbot to notice
ef=getErrors(testResult)
n=ef$nErr+ef$nFail
if (n>0) {stop(1)}
