inst/unitTests/ptest/runit_ptest.R

test.mpiIsWorkingOnSeveralProcesses <- function()
{	
	result <- ptest()
	print(paste(result))
	one_result <- paste(result, collapse = '')
	checkTrue(grepl("1", one_result), "MPI is not running across multiple processes. Did you run this test from the command line using 'mpiexec -n'?")
}

Try the sprint package in your browser

Any scripts or data that you put into this service are public.

sprint documentation built on May 30, 2017, 8:25 a.m.