void thread_func( TestRunner& trun ) { bool ret = true; // todo-add some capability to use USE_ODIRECT or not ret = ret && trun.runTest( IDBDataFile::UNBUFFERED, 0 ); // todo-add some capability to use USE_VBUF or not ret = ret && trun.runTest( IDBDataFile::BUFFERED, 0 ); if( trun.runOpts().useHdfs ) ret = ret && trun.runTest( IDBDataFile::HDFS, 0 ); trun.logMsg( TestRunner::INFO, string(ret?"A":"NOT a") + "ll tests passed!\n", true ); }
void runTests() { TestRunner runner; // Bayesian Node Tests runner.runTest("Can Sample Node", canSample); runner.runTest("Can Average Node Value", canAverage); runner.runTest("Can Marginalize Node", canMarginalizeNode); runner.runTest("Can obtain Markov Blanket of Node", canMarkovBlanket); // Bayesian Network Tests runner.runTest("Can Sample Network", canSampleNetwork); runner.runTest("Can Marginalize Network", canMarginalizeNetwork); ostringstream oss; for (int i = 100; i < 1000; i += 100) { oss << "Marginalization of Bayesian Network of Size (" << i << ")"; for (int j = 8; j <= 64; j *= 2) runner.runTest(oss.str(), bind(run, i, j)); oss.str(""); } runner.runTests(); }