From 7bc68323242b0892b34bff5cf1e82257b0d75c21 Mon Sep 17 00:00:00 2001 From: Eanna O Cathain Date: Tue, 31 May 2022 14:14:32 +0100 Subject: MLECO-3148 Enabling Ctest driven testing Signed-off-by: Eanna O Cathain Change-Id: Ica67662d20b0c02b75418f79d4ba2f4d18373310 --- docs/sections/testing_benchmarking.md | 52 +++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/sections/testing_benchmarking.md b/docs/sections/testing_benchmarking.md index 2641049..41ac8df 100644 --- a/docs/sections/testing_benchmarking.md +++ b/docs/sections/testing_benchmarking.md @@ -38,18 +38,58 @@ placed under `/bin/` folder. For example: ├── ethos-u- └── ethos-u- ``` +To view all the available tests to run, use the following command in the ``: +```commandline +ctest -N +``` +Sample output: +```commandline +Test #1: ad-tests +Test #2: asr-tests +Test #3: img_class-tests +Test #4: kws-tests +Test #5: kws_asr-tests +Test #6: noise_reduction-tests +Test #7: object_detection-tests +Test #8: vww-tests + +Total Tests: 8 +``` + +To execute a specific unit-test from the above list, in addition to the common tests, run the following command in the ``: -To execute unit-tests for a specific use-case, in addition to the common tests, use: +```commandline +ctest -R +``` + +To run every test that has been built, run the following command in the ``: ```commandline -arm_ml_embedded_evaluation_kit--tests +ctest ``` +Sample output: ```log -INFO - native platform initialised -... -=============================================================================== - All tests passed (37 assertions in 7 test cases) +Start 1: ad-tests +1/8 Test #1: ad-tests ......................... Passed 0.17 sec + Start 2: asr-tests +2/8 Test #2: asr-tests ........................ Passed 3.04 sec + Start 3: img_class-tests +3/8 Test #3: img_class-tests .................. Passed 0.49 sec + Start 4: kws-tests +4/8 Test #4: kws-tests ........................ Passed 7.52 sec + Start 5: kws_asr-tests +5/8 Test #5: kws_asr-tests .................... Passed 2.85 sec + Start 6: noise_reduction-tests +6/8 Test #6: noise_reduction-tests ............ Passed 16.41 sec + Start 7: object_detection-tests +7/8 Test #7: object_detection-tests ........... Passed 0.58 sec + Start 8: vww-tests +8/8 Test #8: vww-tests ........................ Passed 0.07 sec + + +Total Test time (real) = 34.71 sec + ``` > **Note:** Test outputs could contain `[ERROR]` messages. This is OK as they are coming from negative scenarios tests. -- cgit v1.2.1