Commit ae1944fa authored by Jussi Lindgren's avatar Jussi Lindgren

Tests: Added LDA native tests

- Removed unused AGDLDA tests
- Fixed misleading error reporting in test_accuracy
parent 4a140cf0
......@@ -12,7 +12,7 @@ ELSE(WIN32)
SET(OV_LOGFILE "$ENV{HOME}/.config/openvibe/log/openvibe-designer.log")
ENDIF(WIN32)
SET(TEST_SCENARIOS LDA-OneVsOne-HT-Test LDA-OneVsOne-PKPD-Test LDA-OneVsOne-Voting-Test LDA-OneVsAll-Test sLDA-OneVsOne-HT-Test sLDA-OneVsOne-PKPD-Test sLDA-OneVsOne-Voting-Test sLDA-OneVsAll-Test SVM-Native-Test SVM-OneVsOne-Voting-Test SVM-OneVsOne-HT-Test SVM-OneVsOne-PKPD-Test SVM-OneVsAll-Test MLP-Native-Test MLP-OneVsOne-Voting-Test MLP-OneVsOne-HT-Test MLP-OneVsOne-PKPD-Test MLP-OneVsAll-Test)
SET(TEST_SCENARIOS LDA-Native-Test LDA-OneVsOne-HT-Test LDA-OneVsOne-PKPD-Test LDA-OneVsOne-Voting-Test LDA-OneVsAll-Test sLDA-Native-Test sLDA-OneVsOne-HT-Test sLDA-OneVsOne-PKPD-Test sLDA-OneVsOne-Voting-Test sLDA-OneVsAll-Test SVM-Native-Test SVM-OneVsOne-Voting-Test SVM-OneVsOne-HT-Test SVM-OneVsOne-PKPD-Test SVM-OneVsAll-Test MLP-Native-Test MLP-OneVsOne-Voting-Test MLP-OneVsOne-HT-Test MLP-OneVsOne-PKPD-Test MLP-OneVsAll-Test)
FOREACH(TEST_NAME ${TEST_SCENARIOS})
......
......@@ -55,9 +55,16 @@ int main (int argc, char** argv)
}
}
}
cout << "Error: EOF of log file reached without finding the cross-validation accuracy string.\n";
return 4;
}
else
{
cout << "Error: Problem opening [" << argv[1] << "]\n";
cerr << "Error: Code is " << strerror(errno) << "\n";
return 5;
}
cout << "Error: Problem opening [" << argv[1] << "]\n";
cerr << "Error: " << strerror(errno);
return 2;
return 2; // shouldn't happen
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment