add ocloc versioning

Adds versioning of ocloc and new api function returning ocloc
version.
This commit is contained in:
Krystian Chmielewski
2020-12-18 12:14:58 +01:00
committed by Compute-Runtime-Automation
parent c3083592ad
commit 903ed4e6d4
3 changed files with 22 additions and 0 deletions

View File

@ -19,6 +19,10 @@ extern Environment *gEnvironment;
using namespace std::string_literals;
TEST(OclocApiTests, WhenOclocVersionIsCalledThenCurrentOclocVersionIsReturned) {
EXPECT_EQ(ocloc_version_t::OCLOC_VERSION_CURRENT, oclocVersion());
}
TEST(OclocApiTests, WhenGoodArgsAreGivenThenSuccessIsReturned) {
const char *argv[] = {
"ocloc",