Ocean
Ocean Test Platform Library

The Ocean Test Platform Library implemenets/provides several tests for Ocean's individual platform libraries. More...

Collaboration diagram for Ocean Test Platform Library:

Data Structures

class  Ocean::Test::TestPlatform::TestApple
 This class implements a test for the Apple library. More...
 

Functions

OCEAN_TEST_PLATFORM_EXPORT bool Ocean::Test::TestPlatform::testPlatform (const double testDuration, Worker &worker, const std::string &testFunctions=std::string())
 Tests all Platform libraries. More...
 
OCEAN_TEST_PLATFORM_EXPORT void Ocean::Test::TestPlatform::testPlatformAsynchron (const double testDuration, const std::string &testFunctions=std::string())
 Tests all Platform libraries. More...
 

Detailed Description

The Ocean Test Platform Library implemenets/provides several tests for Ocean's individual platform libraries.

The library is platform independent (by invoking only those tests that are available on each individual platform).

Function Documentation

◆ testPlatform()

OCEAN_TEST_PLATFORM_EXPORT bool Ocean::Test::TestPlatform::testPlatform ( const double  testDuration,
Worker worker,
const std::string &  testFunctions = std::string() 
)

Tests all Platform libraries.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object to distribute some computation on as many CPU cores as defined in the worker object
testFunctionsOptional name of the functions to be tested
Returns
True, if the entire test succeeded

◆ testPlatformAsynchron()

OCEAN_TEST_PLATFORM_EXPORT void Ocean::Test::TestPlatform::testPlatformAsynchron ( const double  testDuration,
const std::string &  testFunctions = std::string() 
)

Tests all Platform libraries.

This function returns directly as the actual test is invoked in an own thread.
Use this function in intended for non-console applications like e.g., mobile devices.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
testFunctionsOptional name of the functions to be tested