User Tools

Site Tools


for_developers:testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
for_developers:testing [2019/01/23 12:25] – fix broken link to primer.md kunzfor_developers:testing [2020/06/18 16:28] – [Running the Tests] ursgraf
Line 10: Line 10:
  
 ===== Running the Tests ===== ===== Running the Tests =====
-Navigate to the directory ''test'' of the build directory of eeros and run the tests as follows.: +Make sure to compile the unit tests with the cmake argument ''-DUSE_TESTS=TRUE''Navigate to the directory ''test'' of the build directory of eeros and run the tests as follows.: 
 <code cpp> <code cpp>
 $ ./unitTests  --library sim                  // run all the tests using the simulator as hal $ ./unitTests  --library sim                  // run all the tests using the simulator as hal
-$ ./unitTests  -lib sim                       // run all the tests using the simulator, short option +$ ./unitTests  -sim                         // run all the tests using the simulator, short option 
-$ ./unitTests  -lib flink                     // run all the tests using flink, short option +$ ./unitTests  -flink                       // run all the tests using flink, short option 
-$ ./unitTests  -lib comedi                    // run all the tests using comedi, short option+$ ./unitTests  -comedi                      // run all the tests using comedi, short option
 $ ./unitTests  --gtest_filter=control*        // run all the tests in control $ ./unitTests  --gtest_filter=control*        // run all the tests in control
 $ ./unitTests  --gtest_filter=math*           // run all the tests in math $ ./unitTests  --gtest_filter=math*           // run all the tests in math
 $ ./unitTests  --gtest_filter=mathMatrix*     // run all the tests in math/Matrix $ ./unitTests  --gtest_filter=mathMatrix*     // run all the tests in math/Matrix
 $ ./unitTests  --gtest_filter=-hal*           // run all the tests without hal $ ./unitTests  --gtest_filter=-hal*           // run all the tests without hal
-$ ./unitTests  -lib sim --gtest_filter=hal*   // run all the tests in hal using the simulator+$ ./unitTests  -sim --gtest_filter=hal*     // run all the tests in hal using the simulator
 </code> </code>
 +
 +For the test with the HAL you need to install the [[getting_started:install_wrapper#simulator|]].
  
for_developers/testing.txt · Last modified: 2021/05/25 14:11 by ursgraf