Simplified test XML.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14522 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-06-09 11:56:33 +00:00
parent 2033af9d94
commit c6be38efba
44 changed files with 12992 additions and 12052 deletions

View File

@ -74,6 +74,7 @@
***************************************************************************** *****************************************************************************
*** Next *** *** Next ***
- NEW: Simplified test XML schema.
- NEW: Simplified interface between ports and RT/NIL. - NEW: Simplified interface between ports and RT/NIL.
- NEW: Removed duplicated files for ARM ports: chtypes.h. - NEW: Removed duplicated files for ARM ports: chtypes.h.
- NEW: Removed duplicated files for all ports: chcore_timer.h. - NEW: Removed duplicated files for all ports: chcore_timer.h.

View File

@ -24,6 +24,7 @@ integrated in our structure: WolfSSL, FatFS and lwIP.
- Updated CMSIS headers for STM32F7, G0, G4, H7, L0, L4, L4+. - Updated CMSIS headers for STM32F7, G0, G4, H7, L0, L4, L4+.
- Mail Queues test implementation in CMSIS RTOS wrapper. - Mail Queues test implementation in CMSIS RTOS wrapper.
- Added latency measurement test application. - Added latency measurement test application.
- Simplified test XML schema.
*** What's new in RT/NIL ports *** *** What's new in RT/NIL ports ***

File diff suppressed because it is too large Load Diff

View File

@ -97,6 +97,7 @@ static void cry_test_001_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [1.1.2] Encrypt.*/ /* [1.1.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -112,6 +113,7 @@ static void cry_test_001_001_execute(void) {
} }
} }
test_end_step(2);
/* [1.1.3] Decrypt.*/ /* [1.1.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -127,6 +129,7 @@ static void cry_test_001_001_execute(void) {
} }
} }
test_end_step(3);
/* [1.1.4] loading the key with 24 byte size.*/ /* [1.1.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -135,6 +138,7 @@ static void cry_test_001_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [1.1.5] Encrypt.*/ /* [1.1.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -150,6 +154,7 @@ static void cry_test_001_001_execute(void) {
} }
} }
test_end_step(5);
/* [1.1.6] Decrypt.*/ /* [1.1.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -165,6 +170,7 @@ static void cry_test_001_001_execute(void) {
} }
} }
test_end_step(6);
/* [1.1.7] loading the key with 32 byte size.*/ /* [1.1.7] loading the key with 32 byte size.*/
test_set_step(7); test_set_step(7);
@ -173,6 +179,7 @@ static void cry_test_001_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(7);
/* [1.1.8] Encrypt.*/ /* [1.1.8] Encrypt.*/
test_set_step(8); test_set_step(8);
@ -188,6 +195,7 @@ static void cry_test_001_001_execute(void) {
} }
} }
test_end_step(8);
/* [1.1.9] Decrypt.*/ /* [1.1.9] Decrypt.*/
test_set_step(9); test_set_step(9);
@ -203,6 +211,7 @@ static void cry_test_001_001_execute(void) {
} }
} }
test_end_step(9);
} }
static const testcase_t cry_test_001_001 = { static const testcase_t cry_test_001_001 = {
@ -254,6 +263,7 @@ static void cry_test_001_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [1.2.2] Encrypt.*/ /* [1.2.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -269,6 +279,7 @@ static void cry_test_001_002_execute(void) {
} }
} }
test_end_step(2);
/* [1.2.3] Decrypt.*/ /* [1.2.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -284,6 +295,7 @@ static void cry_test_001_002_execute(void) {
} }
} }
test_end_step(3);
/* [1.2.4] loading the key with 24 byte size.*/ /* [1.2.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -292,6 +304,7 @@ static void cry_test_001_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [1.2.5] Encrypt.*/ /* [1.2.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -307,6 +320,7 @@ static void cry_test_001_002_execute(void) {
} }
} }
test_end_step(5);
/* [1.2.6] Decrypt.*/ /* [1.2.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -322,6 +336,7 @@ static void cry_test_001_002_execute(void) {
} }
} }
test_end_step(6);
/* [1.2.7] loading the key with 32 byte size.*/ /* [1.2.7] loading the key with 32 byte size.*/
test_set_step(7); test_set_step(7);
@ -330,6 +345,7 @@ static void cry_test_001_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(7);
/* [1.2.8] Encrypt.*/ /* [1.2.8] Encrypt.*/
test_set_step(8); test_set_step(8);
@ -345,6 +361,7 @@ static void cry_test_001_002_execute(void) {
} }
} }
test_end_step(8);
/* [1.2.9] Decrypt.*/ /* [1.2.9] Decrypt.*/
test_set_step(9); test_set_step(9);
@ -360,6 +377,7 @@ static void cry_test_001_002_execute(void) {
} }
} }
test_end_step(9);
} }
static const testcase_t cry_test_001_002 = { static const testcase_t cry_test_001_002 = {

View File

@ -97,6 +97,7 @@ static void cry_test_002_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [2.1.2] Encrypt.*/ /* [2.1.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -112,6 +113,7 @@ static void cry_test_002_001_execute(void) {
} }
} }
test_end_step(2);
/* [2.1.3] Decrypt.*/ /* [2.1.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -127,6 +129,7 @@ static void cry_test_002_001_execute(void) {
} }
} }
test_end_step(3);
/* [2.1.4] loading the key with 24 byte size.*/ /* [2.1.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -135,6 +138,7 @@ static void cry_test_002_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [2.1.5] Encrypt.*/ /* [2.1.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -150,6 +154,7 @@ static void cry_test_002_001_execute(void) {
} }
} }
test_end_step(5);
/* [2.1.6] Decrypt.*/ /* [2.1.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -165,6 +170,7 @@ static void cry_test_002_001_execute(void) {
} }
} }
test_end_step(6);
/* [2.1.7] loading the key with 32 byte size.*/ /* [2.1.7] loading the key with 32 byte size.*/
test_set_step(7); test_set_step(7);
@ -173,6 +179,7 @@ static void cry_test_002_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(7);
/* [2.1.8] Encrypt.*/ /* [2.1.8] Encrypt.*/
test_set_step(8); test_set_step(8);
@ -188,6 +195,7 @@ static void cry_test_002_001_execute(void) {
} }
} }
test_end_step(8);
/* [2.1.9] Decrypt.*/ /* [2.1.9] Decrypt.*/
test_set_step(9); test_set_step(9);
@ -203,6 +211,7 @@ static void cry_test_002_001_execute(void) {
} }
} }
test_end_step(9);
} }
static const testcase_t cry_test_002_001 = { static const testcase_t cry_test_002_001 = {
@ -254,6 +263,7 @@ static void cry_test_002_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [2.2.2] Encrypt.*/ /* [2.2.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -269,6 +279,7 @@ static void cry_test_002_002_execute(void) {
} }
} }
test_end_step(2);
/* [2.2.3] Decrypt.*/ /* [2.2.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -284,6 +295,7 @@ static void cry_test_002_002_execute(void) {
} }
} }
test_end_step(3);
/* [2.2.4] loading the key with 24 byte size.*/ /* [2.2.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -292,6 +304,7 @@ static void cry_test_002_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [2.2.5] Encrypt.*/ /* [2.2.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -307,6 +320,7 @@ static void cry_test_002_002_execute(void) {
} }
} }
test_end_step(5);
/* [2.2.6] Decrypt.*/ /* [2.2.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -322,6 +336,7 @@ static void cry_test_002_002_execute(void) {
} }
} }
test_end_step(6);
/* [2.2.7] loading the key with 32 byte size.*/ /* [2.2.7] loading the key with 32 byte size.*/
test_set_step(7); test_set_step(7);
@ -330,6 +345,7 @@ static void cry_test_002_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(7);
/* [2.2.8] Encrypt.*/ /* [2.2.8] Encrypt.*/
test_set_step(8); test_set_step(8);
@ -345,6 +361,7 @@ static void cry_test_002_002_execute(void) {
} }
} }
test_end_step(8);
/* [2.2.9] Decrypt.*/ /* [2.2.9] Decrypt.*/
test_set_step(9); test_set_step(9);
@ -360,6 +377,7 @@ static void cry_test_002_002_execute(void) {
} }
} }
test_end_step(9);
} }
static const testcase_t cry_test_002_002 = { static const testcase_t cry_test_002_002 = {

View File

@ -97,6 +97,7 @@ static void cry_test_003_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [3.1.2] Encrypt.*/ /* [3.1.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -110,8 +111,8 @@ static void cry_test_003_001_execute(void) {
for (int i = 0; i < TEST_DATA_WORD_LEN; i++) { for (int i = 0; i < TEST_DATA_WORD_LEN; i++) {
test_assert(msg_encrypted[i] == ((uint32_t*) refAES_CBC_128)[i], "encrypt mismatch"); test_assert(msg_encrypted[i] == ((uint32_t*) refAES_CBC_128)[i], "encrypt mismatch");
} }
} }
test_end_step(2);
/* [3.1.3] Decrypt.*/ /* [3.1.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -125,8 +126,8 @@ static void cry_test_003_001_execute(void) {
for (int i = 0; i < TEST_DATA_WORD_LEN; i++) { for (int i = 0; i < TEST_DATA_WORD_LEN; i++) {
test_assert(msg_decrypted[i] == msg_clear[i], "decrypt mismatch"); test_assert(msg_decrypted[i] == msg_clear[i], "decrypt mismatch");
} }
} }
test_end_step(3);
/* [3.1.4] loading the key with 24 byte size.*/ /* [3.1.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -135,6 +136,7 @@ static void cry_test_003_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [3.1.5] Encrypt.*/ /* [3.1.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -148,8 +150,8 @@ static void cry_test_003_001_execute(void) {
for (int i = 0; i < TEST_DATA_WORD_LEN; i++) { for (int i = 0; i < TEST_DATA_WORD_LEN; i++) {
test_assert(msg_encrypted[i] == ((uint32_t*) refAES_CBC_192)[i], "encrypt mismatch"); test_assert(msg_encrypted[i] == ((uint32_t*) refAES_CBC_192)[i], "encrypt mismatch");
} }
} }
test_end_step(5);
/* [3.1.6] Decrypt.*/ /* [3.1.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -163,8 +165,8 @@ static void cry_test_003_001_execute(void) {
for (int i = 0; i < TEST_DATA_WORD_LEN; i++) { for (int i = 0; i < TEST_DATA_WORD_LEN; i++) {
test_assert(msg_decrypted[i] == msg_clear[i], "decrypt mismatch"); test_assert(msg_decrypted[i] == msg_clear[i], "decrypt mismatch");
} }
} }
test_end_step(6);
/* [3.1.7] loading the key with 32 byte size.*/ /* [3.1.7] loading the key with 32 byte size.*/
test_set_step(7); test_set_step(7);
@ -173,6 +175,7 @@ static void cry_test_003_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(7);
/* [3.1.8] Encrypt.*/ /* [3.1.8] Encrypt.*/
test_set_step(8); test_set_step(8);
@ -188,6 +191,7 @@ static void cry_test_003_001_execute(void) {
} }
} }
test_end_step(8);
/* [3.1.9] Decrypt.*/ /* [3.1.9] Decrypt.*/
test_set_step(9); test_set_step(9);
@ -203,6 +207,7 @@ static void cry_test_003_001_execute(void) {
} }
} }
test_end_step(9);
} }
static const testcase_t cry_test_003_001 = { static const testcase_t cry_test_003_001 = {
@ -254,6 +259,7 @@ static void cry_test_003_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [3.2.2] Encrypt.*/ /* [3.2.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -269,6 +275,7 @@ static void cry_test_003_002_execute(void) {
} }
} }
test_end_step(2);
/* [3.2.3] Decrypt.*/ /* [3.2.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -284,6 +291,7 @@ static void cry_test_003_002_execute(void) {
} }
} }
test_end_step(3);
/* [3.2.4] loading the key with 24 byte size.*/ /* [3.2.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -292,6 +300,7 @@ static void cry_test_003_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [3.2.5] Encrypt.*/ /* [3.2.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -307,6 +316,7 @@ static void cry_test_003_002_execute(void) {
} }
} }
test_end_step(5);
/* [3.2.6] Decrypt.*/ /* [3.2.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -322,6 +332,7 @@ static void cry_test_003_002_execute(void) {
} }
} }
test_end_step(6);
/* [3.2.7] loading the key with 32 byte size.*/ /* [3.2.7] loading the key with 32 byte size.*/
test_set_step(7); test_set_step(7);
@ -330,6 +341,7 @@ static void cry_test_003_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(7);
/* [3.2.8] Encrypt.*/ /* [3.2.8] Encrypt.*/
test_set_step(8); test_set_step(8);
@ -345,6 +357,7 @@ static void cry_test_003_002_execute(void) {
} }
} }
test_end_step(8);
/* [3.2.9] Decrypt.*/ /* [3.2.9] Decrypt.*/
test_set_step(9); test_set_step(9);
@ -360,6 +373,7 @@ static void cry_test_003_002_execute(void) {
} }
} }
test_end_step(9);
} }
static const testcase_t cry_test_003_002 = { static const testcase_t cry_test_003_002 = {

View File

@ -97,6 +97,7 @@ static void cry_test_004_001_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [4.1.2] Encrypt.*/ /* [4.1.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -112,6 +113,7 @@ static void cry_test_004_001_execute(void) {
} }
} }
test_end_step(2);
/* [4.1.3] Decrypt.*/ /* [4.1.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -127,6 +129,7 @@ static void cry_test_004_001_execute(void) {
} }
} }
test_end_step(3);
} }
static const testcase_t cry_test_004_001 = { static const testcase_t cry_test_004_001 = {
@ -175,6 +178,7 @@ static void cry_test_004_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [4.2.2] Encrypt.*/ /* [4.2.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -190,6 +194,7 @@ static void cry_test_004_002_execute(void) {
} }
} }
test_end_step(2);
/* [4.2.3] Decrypt.*/ /* [4.2.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -205,6 +210,7 @@ static void cry_test_004_002_execute(void) {
} }
} }
test_end_step(3);
/* [4.2.4] loading the key with 24 byte size.*/ /* [4.2.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -213,6 +219,7 @@ static void cry_test_004_002_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [4.2.5] Encrypt.*/ /* [4.2.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -228,6 +235,7 @@ static void cry_test_004_002_execute(void) {
} }
} }
test_end_step(5);
/* [4.2.6] Decrypt.*/ /* [4.2.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -243,6 +251,7 @@ static void cry_test_004_002_execute(void) {
} }
} }
test_end_step(6);
} }
static const testcase_t cry_test_004_002 = { static const testcase_t cry_test_004_002 = {
@ -291,6 +300,7 @@ static void cry_test_004_003_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [4.3.2] Encrypt.*/ /* [4.3.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -306,6 +316,7 @@ static void cry_test_004_003_execute(void) {
} }
} }
test_end_step(2);
/* [4.3.3] Decrypt.*/ /* [4.3.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -321,6 +332,7 @@ static void cry_test_004_003_execute(void) {
} }
} }
test_end_step(3);
/* [4.3.4] loading the key with 24 byte size.*/ /* [4.3.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -329,6 +341,7 @@ static void cry_test_004_003_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [4.3.5] Encrypt.*/ /* [4.3.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -344,6 +357,7 @@ static void cry_test_004_003_execute(void) {
} }
} }
test_end_step(5);
/* [4.3.6] Decrypt.*/ /* [4.3.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -359,6 +373,7 @@ static void cry_test_004_003_execute(void) {
} }
} }
test_end_step(6);
} }
static const testcase_t cry_test_004_003 = { static const testcase_t cry_test_004_003 = {
@ -407,6 +422,7 @@ static void cry_test_004_004_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [4.4.2] Encrypt.*/ /* [4.4.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -422,6 +438,7 @@ static void cry_test_004_004_execute(void) {
} }
} }
test_end_step(2);
/* [4.4.3] Decrypt.*/ /* [4.4.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -437,6 +454,7 @@ static void cry_test_004_004_execute(void) {
} }
} }
test_end_step(3);
/* [4.4.4] loading the key with 24 byte size.*/ /* [4.4.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -445,6 +463,7 @@ static void cry_test_004_004_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [4.4.5] Encrypt.*/ /* [4.4.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -460,6 +479,7 @@ static void cry_test_004_004_execute(void) {
} }
} }
test_end_step(5);
/* [4.4.6] Decrypt.*/ /* [4.4.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -475,6 +495,7 @@ static void cry_test_004_004_execute(void) {
} }
} }
test_end_step(6);
} }
static const testcase_t cry_test_004_004 = { static const testcase_t cry_test_004_004 = {
@ -523,6 +544,7 @@ static void cry_test_004_005_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(1);
/* [4.5.2] Encrypt.*/ /* [4.5.2] Encrypt.*/
test_set_step(2); test_set_step(2);
@ -538,6 +560,7 @@ static void cry_test_004_005_execute(void) {
} }
} }
test_end_step(2);
/* [4.5.3] Decrypt.*/ /* [4.5.3] Decrypt.*/
test_set_step(3); test_set_step(3);
@ -553,6 +576,7 @@ static void cry_test_004_005_execute(void) {
} }
} }
test_end_step(3);
/* [4.5.4] loading the key with 24 byte size.*/ /* [4.5.4] loading the key with 24 byte size.*/
test_set_step(4); test_set_step(4);
@ -561,6 +585,7 @@ static void cry_test_004_005_execute(void) {
test_assert(ret == CRY_NOERROR, "failed load transient key"); test_assert(ret == CRY_NOERROR, "failed load transient key");
} }
test_end_step(4);
/* [4.5.5] Encrypt.*/ /* [4.5.5] Encrypt.*/
test_set_step(5); test_set_step(5);
@ -576,6 +601,7 @@ static void cry_test_004_005_execute(void) {
} }
} }
test_end_step(5);
/* [4.5.6] Decrypt.*/ /* [4.5.6] Decrypt.*/
test_set_step(6); test_set_step(6);
@ -591,6 +617,7 @@ static void cry_test_004_005_execute(void) {
} }
} }
test_end_step(6);
} }
static const testcase_t cry_test_004_005 = { static const testcase_t cry_test_004_005 = {

View File

@ -97,6 +97,7 @@ static void cry_test_005_001_execute(void) {
} }
test_end_step(1);
} }
static const testcase_t cry_test_005_001 = { static const testcase_t cry_test_005_001 = {

View File

@ -233,6 +233,7 @@ static void cry_test_006_001_execute(void) {
} }
test_end_step(1);
} }
static const testcase_t cry_test_006_001 = { static const testcase_t cry_test_006_001 = {
@ -335,6 +336,7 @@ static void cry_test_006_002_execute(void) {
} }
test_end_step(1);
} }
static const testcase_t cry_test_006_002 = { static const testcase_t cry_test_006_002 = {
@ -437,6 +439,7 @@ static void cry_test_006_003_execute(void) {
} }
test_end_step(1);
} }
static const testcase_t cry_test_006_003 = { static const testcase_t cry_test_006_003 = {

View File

@ -227,6 +227,7 @@ static void cry_test_007_001_execute(void) {
} }
} }
test_end_step(1);
} }
static const testcase_t cry_test_007_001 = { static const testcase_t cry_test_007_001 = {
@ -329,6 +330,7 @@ static void cry_test_007_002_execute(void) {
} }
test_end_step(1);
} }
static const testcase_t cry_test_007_002 = { static const testcase_t cry_test_007_002 = {
@ -430,6 +432,7 @@ static void cry_test_007_003_execute(void) {
} }
} }
test_end_step(1);
} }
static const testcase_t cry_test_007_003 = { static const testcase_t cry_test_007_003 = {

View File

@ -203,6 +203,7 @@ static void cry_test_008_001_execute(void) {
} }
} }
test_end_step(1);
} }
static const testcase_t cry_test_008_001 = { static const testcase_t cry_test_008_001 = {
@ -326,6 +327,7 @@ static void cry_test_008_002_execute(void) {
} }
} }
test_end_step(1);
} }
static const testcase_t cry_test_008_002 = { static const testcase_t cry_test_008_002 = {

View File

@ -184,6 +184,7 @@ static void cry_test_009_001_execute(void) {
test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC256_1)[i], "hmac mismatch"); test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC256_1)[i], "hmac mismatch");
} }
} }
test_end_step(1);
/* [9.1.2] hmac 512.*/ /* [9.1.2] hmac 512.*/
test_set_step(2); test_set_step(2);
@ -194,6 +195,7 @@ static void cry_test_009_001_execute(void) {
test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC512_1)[i], "hmac mismatch"); test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC512_1)[i], "hmac mismatch");
} }
} }
test_end_step(2);
} }
static const testcase_t cry_test_009_001 = { static const testcase_t cry_test_009_001 = {
@ -238,6 +240,7 @@ static void cry_test_009_002_execute(void) {
test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC256_1)[i], "hmac mismatch"); test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC256_1)[i], "hmac mismatch");
} }
} }
test_end_step(1);
/* [9.2.2] hmac 512.*/ /* [9.2.2] hmac 512.*/
test_set_step(2); test_set_step(2);
@ -248,6 +251,7 @@ static void cry_test_009_002_execute(void) {
test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC512_1)[i], "hmac mismatch"); test_assert(HMACOUT[i] == ((uint32_t*) refHMAC_HMAC512_1)[i], "hmac mismatch");
} }
} }
test_end_step(2);
} }
static const testcase_t cry_test_009_002 = { static const testcase_t cry_test_009_002 = {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -110,6 +110,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
test_assert_sequence("", "task executed"); test_assert_sequence("", "task executed");
} }
test_end_step(1);
/* [1.1.2] OS_TaskCreate() is invoked with task_name set to NULL, an /* [1.1.2] OS_TaskCreate() is invoked with task_name set to NULL, an
error is expected.*/ error is expected.*/
@ -128,6 +129,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
test_assert_sequence("", "task executed"); test_assert_sequence("", "task executed");
} }
test_end_step(2);
/* [1.1.3] OS_TaskCreate() is invoked with stack_pointer set to NULL, /* [1.1.3] OS_TaskCreate() is invoked with stack_pointer set to NULL,
an error is expected.*/ an error is expected.*/
@ -146,6 +148,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
test_assert_sequence("", "task executed"); test_assert_sequence("", "task executed");
} }
test_end_step(3);
/* [1.1.4] OS_TaskCreate() is invoked with a very long task name, an /* [1.1.4] OS_TaskCreate() is invoked with a very long task name, an
error is expected.*/ error is expected.*/
@ -164,6 +167,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
test_assert_sequence("", "task executed"); test_assert_sequence("", "task executed");
} }
test_end_step(4);
/* [1.1.5] OS_TaskCreate() is invoked with priority below and above /* [1.1.5] OS_TaskCreate() is invoked with priority below and above
allowed range, an error is expected.*/ allowed range, an error is expected.*/
@ -192,6 +196,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_ERR_INVALID_PRIORITY, "priority error not detected"); test_assert(err == OS_ERR_INVALID_PRIORITY, "priority error not detected");
test_assert_sequence("", "task executed"); test_assert_sequence("", "task executed");
} }
test_end_step(5);
/* [1.1.6] OS_TaskCreate() is invoked with a stack size below /* [1.1.6] OS_TaskCreate() is invoked with a stack size below
minimum, an error is expected.*/ minimum, an error is expected.*/
@ -210,6 +215,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_INVALID_INT_NUM, "stack insufficient size not detected"); test_assert(err == OS_INVALID_INT_NUM, "stack insufficient size not detected");
test_assert_sequence("", "task executed"); test_assert_sequence("", "task executed");
} }
test_end_step(6);
/* [1.1.7] OS_TaskCreate() is invoked twice with duplicated name and /* [1.1.7] OS_TaskCreate() is invoked twice with duplicated name and
then duplicated stack, an error is expected in both cases.*/ then duplicated stack, an error is expected in both cases.*/
@ -262,6 +268,7 @@ static void nasa_osal_test_001_001_execute(void) {
test_assert(err == OS_SUCCESS, "wait failed"); test_assert(err == OS_SUCCESS, "wait failed");
test_assert_sequence("A", "task not executed"); test_assert_sequence("A", "task not executed");
} }
test_end_step(7);
} }
static const testcase_t nasa_osal_test_001_001 = { static const testcase_t nasa_osal_test_001_001 = {
@ -337,6 +344,7 @@ static void nasa_osal_test_001_002_execute(void) {
0); 0);
test_assert(err == OS_SUCCESS, "task 1 creation failed"); test_assert(err == OS_SUCCESS, "task 1 creation failed");
} }
test_end_step(1);
/* [1.2.2] Tasks are made runnable atomically and their execution /* [1.2.2] Tasks are made runnable atomically and their execution
order tested.*/ order tested.*/
@ -345,6 +353,7 @@ static void nasa_osal_test_001_002_execute(void) {
OS_TaskDelay(5); OS_TaskDelay(5);
test_assert_sequence("ABCD", "task order violation"); test_assert_sequence("ABCD", "task order violation");
} }
test_end_step(2);
/* [1.2.3] Four tasks are created in priority order from high to /* [1.2.3] Four tasks are created in priority order from high to
low.*/ low.*/
@ -389,6 +398,7 @@ static void nasa_osal_test_001_002_execute(void) {
0); 0);
test_assert(err == OS_SUCCESS, "task 4 creation failed"); test_assert(err == OS_SUCCESS, "task 4 creation failed");
} }
test_end_step(3);
/* [1.2.4] Tasks are made runnable atomically and their execution /* [1.2.4] Tasks are made runnable atomically and their execution
order tested.*/ order tested.*/
@ -397,6 +407,7 @@ static void nasa_osal_test_001_002_execute(void) {
OS_TaskDelay(5); OS_TaskDelay(5);
test_assert_sequence("ABCD", "task order violation"); test_assert_sequence("ABCD", "task order violation");
} }
test_end_step(4);
/* [1.2.5] Four tasks are created in an not ordered way.*/ /* [1.2.5] Four tasks are created in an not ordered way.*/
test_set_step(5); test_set_step(5);
@ -440,6 +451,7 @@ static void nasa_osal_test_001_002_execute(void) {
0); 0);
test_assert(err == OS_SUCCESS, "task 3 creation failed"); test_assert(err == OS_SUCCESS, "task 3 creation failed");
} }
test_end_step(5);
/* [1.2.6] Tasks are made runnable atomically and their execution /* [1.2.6] Tasks are made runnable atomically and their execution
order tested.*/ order tested.*/
@ -448,6 +460,7 @@ static void nasa_osal_test_001_002_execute(void) {
OS_TaskDelay(5); OS_TaskDelay(5);
test_assert_sequence("ABCD", "task order violation"); test_assert_sequence("ABCD", "task order violation");
} }
test_end_step(6);
} }
static const testcase_t nasa_osal_test_001_002 = { static const testcase_t nasa_osal_test_001_002 = {
@ -480,6 +493,7 @@ static void nasa_osal_test_001_003_execute(void) {
err = OS_TaskDelete((uint32)-1); err = OS_TaskDelete((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "wrong task id not detected"); test_assert(err == OS_ERR_INVALID_ID, "wrong task id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_001_003 = { static const testcase_t nasa_osal_test_001_003 = {
@ -520,6 +534,7 @@ static void nasa_osal_test_001_004_execute(void) {
0); 0);
test_assert(err == OS_SUCCESS, "deletable task creation failed"); test_assert(err == OS_SUCCESS, "deletable task creation failed");
} }
test_end_step(1);
/* [1.4.2] Letting the task run for a while then deleting it. A check /* [1.4.2] Letting the task run for a while then deleting it. A check
is performed on the correct execution of the delete handler.*/ is performed on the correct execution of the delete handler.*/
@ -532,6 +547,7 @@ static void nasa_osal_test_001_004_execute(void) {
test_assert(err == OS_SUCCESS, "delete failed"); test_assert(err == OS_SUCCESS, "delete failed");
test_assert_sequence("ABC", "events order violation"); test_assert_sequence("ABC", "events order violation");
} }
test_end_step(2);
} }
static const testcase_t nasa_osal_test_001_004 = { static const testcase_t nasa_osal_test_001_004 = {

View File

@ -89,6 +89,7 @@ static void nasa_osal_test_002_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [2.1.2] OS_QueueCreate() is invoked with task_name set to NULL, an /* [2.1.2] OS_QueueCreate() is invoked with task_name set to NULL, an
error is expected.*/ error is expected.*/
@ -104,6 +105,7 @@ static void nasa_osal_test_002_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [2.1.3] OS_QueueCreate() is invoked with a very long task name, an /* [2.1.3] OS_QueueCreate() is invoked with a very long task name, an
error is expected.*/ error is expected.*/
@ -119,6 +121,7 @@ static void nasa_osal_test_002_001_execute(void) {
0); 0);
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(3);
/* [2.1.4] OS_QueueDelete() is invoked with queue_id set to -1, an /* [2.1.4] OS_QueueDelete() is invoked with queue_id set to -1, an
error is expected.*/ error is expected.*/
@ -129,6 +132,7 @@ static void nasa_osal_test_002_001_execute(void) {
err = OS_QueueDelete((uint32)-1); err = OS_QueueDelete((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "wrong queue id not detected"); test_assert(err == OS_ERR_INVALID_ID, "wrong queue id not detected");
} }
test_end_step(4);
/* [2.1.5] OS_QueueCreate() is invoked twice with duplicated name, an /* [2.1.5] OS_QueueCreate() is invoked twice with duplicated name, an
error is expected, then the queue is deleted using error is expected, then the queue is deleted using
@ -147,6 +151,7 @@ static void nasa_osal_test_002_001_execute(void) {
err = OS_QueueDelete(qid1); err = OS_QueueDelete(qid1);
test_assert(err == OS_SUCCESS, "queue deletion failed"); test_assert(err == OS_SUCCESS, "queue deletion failed");
} }
test_end_step(5);
} }
static const testcase_t nasa_osal_test_002_001 = { static const testcase_t nasa_osal_test_002_001 = {
@ -183,6 +188,7 @@ static void nasa_osal_test_002_002_execute(void) {
err = OS_QueueGetIdByName(NULL, "queue"); err = OS_QueueGetIdByName(NULL, "queue");
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [2.2.2] OS_QueueGetIdByName() is invoked with queue_name set to /* [2.2.2] OS_QueueGetIdByName() is invoked with queue_name set to
NULL, an error is expected.*/ NULL, an error is expected.*/
@ -193,6 +199,7 @@ static void nasa_osal_test_002_002_execute(void) {
err = OS_QueueGetIdByName(&qid, NULL); err = OS_QueueGetIdByName(&qid, NULL);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [2.2.3] OS_QueueGetIdByName() is invoked with a very long task /* [2.2.3] OS_QueueGetIdByName() is invoked with a very long task
name, an error is expected.*/ name, an error is expected.*/
@ -203,6 +210,7 @@ static void nasa_osal_test_002_002_execute(void) {
err = OS_QueueGetIdByName(&qid, "very very long queue name"); err = OS_QueueGetIdByName(&qid, "very very long queue name");
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_002_002 = { static const testcase_t nasa_osal_test_002_002 = {
@ -254,6 +262,7 @@ static void nasa_osal_test_002_003_execute(void) {
err = OS_QueueCreate(&qid, "test queue", 4, MESSAGE_SIZE, 0); err = OS_QueueCreate(&qid, "test queue", 4, MESSAGE_SIZE, 0);
test_assert(err == OS_SUCCESS, "queue creation failed"); test_assert(err == OS_SUCCESS, "queue creation failed");
} }
test_end_step(1);
/* [2.3.2] Creating the writer task.*/ /* [2.3.2] Creating the writer task.*/
test_set_step(2); test_set_step(2);
@ -269,6 +278,7 @@ static void nasa_osal_test_002_003_execute(void) {
0); 0);
test_assert(err == OS_SUCCESS, "writer task creation failed"); test_assert(err == OS_SUCCESS, "writer task creation failed");
} }
test_end_step(2);
/* [2.3.3] Reading messages from the writer task.*/ /* [2.3.3] Reading messages from the writer task.*/
test_set_step(3); test_set_step(3);
@ -284,6 +294,7 @@ static void nasa_osal_test_002_003_execute(void) {
"wrong message"); "wrong message");
} }
} }
test_end_step(3);
/* [2.3.4] Waiting for task termination then checking for errors.*/ /* [2.3.4] Waiting for task termination then checking for errors.*/
test_set_step(4); test_set_step(4);
@ -292,6 +303,7 @@ static void nasa_osal_test_002_003_execute(void) {
tid = 0; tid = 0;
test_assert_sequence("", "queue write errors occurred"); test_assert_sequence("", "queue write errors occurred");
} }
test_end_step(4);
} }
static const testcase_t nasa_osal_test_002_003 = { static const testcase_t nasa_osal_test_002_003 = {
@ -339,6 +351,7 @@ static void nasa_osal_test_002_004_execute(void) {
err = OS_QueueGetIdByName(&local_qid, "test queue"); err = OS_QueueGetIdByName(&local_qid, "test queue");
test_assert(err == OS_SUCCESS, "queue not found"); test_assert(err == OS_SUCCESS, "queue not found");
} }
test_end_step(1);
/* [2.4.2] Get operation with a one second timeout, an error is /* [2.4.2] Get operation with a one second timeout, an error is
expected.*/ expected.*/
@ -349,6 +362,7 @@ static void nasa_osal_test_002_004_execute(void) {
err = OS_QueueGet(qid, data, MESSAGE_SIZE, &copied, OS_Milli2Ticks(1000)); err = OS_QueueGet(qid, data, MESSAGE_SIZE, &copied, OS_Milli2Ticks(1000));
test_assert(err == OS_QUEUE_TIMEOUT, "unexpected error code"); test_assert(err == OS_QUEUE_TIMEOUT, "unexpected error code");
} }
test_end_step(2);
/* [2.4.3] Get operation in non-blocking mode, an error is /* [2.4.3] Get operation in non-blocking mode, an error is
expected.*/ expected.*/
@ -359,6 +373,7 @@ static void nasa_osal_test_002_004_execute(void) {
err = OS_QueueGet(qid, data, MESSAGE_SIZE, &copied, OS_CHECK); err = OS_QueueGet(qid, data, MESSAGE_SIZE, &copied, OS_CHECK);
test_assert(err == OS_QUEUE_EMPTY, "unexpected error code"); test_assert(err == OS_QUEUE_EMPTY, "unexpected error code");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_002_004 = { static const testcase_t nasa_osal_test_002_004 = {

View File

@ -87,6 +87,7 @@ static void nasa_osal_test_003_001_execute(void) {
tmr_callback); tmr_callback);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [3.1.2] OS_TimerCreate() is invoked with timer_name set to NULL, /* [3.1.2] OS_TimerCreate() is invoked with timer_name set to NULL,
an error is expected.*/ an error is expected.*/
@ -102,6 +103,7 @@ static void nasa_osal_test_003_001_execute(void) {
tmr_callback); tmr_callback);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [3.1.3] OS_TimerCreate() is invoked with accuracy set to NULL, an /* [3.1.3] OS_TimerCreate() is invoked with accuracy set to NULL, an
error is expected.*/ error is expected.*/
@ -116,6 +118,7 @@ static void nasa_osal_test_003_001_execute(void) {
tmr_callback); tmr_callback);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(3);
/* [3.1.4] OS_TimerCreate() is invoked with callback_ptr set to NULL, /* [3.1.4] OS_TimerCreate() is invoked with callback_ptr set to NULL,
an error is expected.*/ an error is expected.*/
@ -131,6 +134,7 @@ static void nasa_osal_test_003_001_execute(void) {
NULL); /* Error.*/ NULL); /* Error.*/
test_assert(err == OS_TIMER_ERR_INVALID_ARGS, "NULL not detected"); test_assert(err == OS_TIMER_ERR_INVALID_ARGS, "NULL not detected");
} }
test_end_step(4);
/* [3.1.5] OS_TimerCreate() is invoked with a very long timer name, /* [3.1.5] OS_TimerCreate() is invoked with a very long timer name,
an error is expected.*/ an error is expected.*/
@ -146,6 +150,7 @@ static void nasa_osal_test_003_001_execute(void) {
tmr_callback); tmr_callback);
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(5);
/* [3.1.6] OS_TimerDelete() is invoked with timer_id set to -1, an /* [3.1.6] OS_TimerDelete() is invoked with timer_id set to -1, an
error is expected.*/ error is expected.*/
@ -156,6 +161,7 @@ static void nasa_osal_test_003_001_execute(void) {
err = OS_TimerDelete((uint32)-1); err = OS_TimerDelete((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "wrong timer id not detected"); test_assert(err == OS_ERR_INVALID_ID, "wrong timer id not detected");
} }
test_end_step(6);
/* [3.1.7] OS_TimerCreate() is invoked twice with duplicated name, an /* [3.1.7] OS_TimerCreate() is invoked twice with duplicated name, an
error is expected, then the queue is deleted using error is expected, then the queue is deleted using
@ -175,6 +181,7 @@ static void nasa_osal_test_003_001_execute(void) {
err = OS_TimerDelete(tmid1); err = OS_TimerDelete(tmid1);
test_assert(err == OS_SUCCESS, "timer deletion failed"); test_assert(err == OS_SUCCESS, "timer deletion failed");
} }
test_end_step(7);
} }
static const testcase_t nasa_osal_test_003_001 = { static const testcase_t nasa_osal_test_003_001 = {
@ -207,6 +214,7 @@ static void nasa_osal_test_003_002_execute(void) {
err = OS_TimerSet((uint32)-1, 10, 10); err = OS_TimerSet((uint32)-1, 10, 10);
test_assert(err == OS_ERR_INVALID_ID, "invalid timer_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid timer_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_003_002 = { static const testcase_t nasa_osal_test_003_002 = {
@ -243,6 +251,7 @@ static void nasa_osal_test_003_003_execute(void) {
err = OS_TimerGetIdByName(NULL, "timer"); err = OS_TimerGetIdByName(NULL, "timer");
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [3.3.2] OS_TimerGetIdByName() is invoked with timer name set to /* [3.3.2] OS_TimerGetIdByName() is invoked with timer name set to
NULL, an error is expected.*/ NULL, an error is expected.*/
@ -253,6 +262,7 @@ static void nasa_osal_test_003_003_execute(void) {
err = OS_TimerGetIdByName(&tmid, NULL); err = OS_TimerGetIdByName(&tmid, NULL);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [3.3.3] OS_TimerGetIdByName() is invoked with a very long task /* [3.3.3] OS_TimerGetIdByName() is invoked with a very long task
name, an error is expected.*/ name, an error is expected.*/
@ -263,6 +273,7 @@ static void nasa_osal_test_003_003_execute(void) {
err = OS_TimerGetIdByName(&tmid, "very very long timer name"); err = OS_TimerGetIdByName(&tmid, "very very long timer name");
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_003_003 = { static const testcase_t nasa_osal_test_003_003 = {
@ -310,6 +321,7 @@ static void nasa_osal_test_003_004_execute(void) {
err = OS_TimerGetIdByName(&local_tmid, "test timer"); err = OS_TimerGetIdByName(&local_tmid, "test timer");
test_assert(err == OS_SUCCESS, "timer not found"); test_assert(err == OS_SUCCESS, "timer not found");
} }
test_end_step(1);
/* [3.4.2] Setting up the timer for a 70mS one-shot tick.*/ /* [3.4.2] Setting up the timer for a 70mS one-shot tick.*/
test_set_step(2); test_set_step(2);
@ -319,6 +331,7 @@ static void nasa_osal_test_003_004_execute(void) {
err = OS_TimerSet(local_tmid, 70000, 0); err = OS_TimerSet(local_tmid, 70000, 0);
test_assert(err == OS_SUCCESS, "timer setup failed"); test_assert(err == OS_SUCCESS, "timer setup failed");
} }
test_end_step(2);
/* [3.4.3] Waiting one second then counting the occurred ticks.*/ /* [3.4.3] Waiting one second then counting the occurred ticks.*/
test_set_step(3); test_set_step(3);
@ -326,6 +339,7 @@ static void nasa_osal_test_003_004_execute(void) {
(void) OS_TaskDelay(1000); (void) OS_TaskDelay(1000);
test_assert(cnt == 1, "wrong ticks"); test_assert(cnt == 1, "wrong ticks");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_003_004 = { static const testcase_t nasa_osal_test_003_004 = {
@ -375,6 +389,7 @@ static void nasa_osal_test_003_005_execute(void) {
err = OS_TimerGetIdByName(&local_tmid, "test timer"); err = OS_TimerGetIdByName(&local_tmid, "test timer");
test_assert(err == OS_SUCCESS, "timer not found"); test_assert(err == OS_SUCCESS, "timer not found");
} }
test_end_step(1);
/* [3.5.2] Setting up the timer for a 70mS periodic tick.*/ /* [3.5.2] Setting up the timer for a 70mS periodic tick.*/
test_set_step(2); test_set_step(2);
@ -384,6 +399,7 @@ static void nasa_osal_test_003_005_execute(void) {
err = OS_TimerSet(local_tmid, 70000, 70000); err = OS_TimerSet(local_tmid, 70000, 70000);
test_assert(err == OS_SUCCESS, "timer setup failed"); test_assert(err == OS_SUCCESS, "timer setup failed");
} }
test_end_step(2);
/* [3.5.3] Waiting one second then counting the occurred ticks.*/ /* [3.5.3] Waiting one second then counting the occurred ticks.*/
test_set_step(3); test_set_step(3);
@ -391,6 +407,7 @@ static void nasa_osal_test_003_005_execute(void) {
(void) OS_TaskDelay(1000); (void) OS_TaskDelay(1000);
test_assert(cnt == 14, "wrong ticks"); test_assert(cnt == 14, "wrong ticks");
} }
test_end_step(3);
/* [3.5.4] Stopping the timer.*/ /* [3.5.4] Stopping the timer.*/
test_set_step(4); test_set_step(4);
@ -400,6 +417,7 @@ static void nasa_osal_test_003_005_execute(void) {
err = OS_TimerSet(local_tmid, 0, 0); err = OS_TimerSet(local_tmid, 0, 0);
test_assert(err == OS_SUCCESS, "timer stop failed"); test_assert(err == OS_SUCCESS, "timer stop failed");
} }
test_end_step(4);
} }
static const testcase_t nasa_osal_test_003_005 = { static const testcase_t nasa_osal_test_003_005 = {

View File

@ -76,6 +76,7 @@ static void nasa_osal_test_004_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [4.1.2] OS_BinSemCreate() is invoked with sem_name set to NULL, an /* [4.1.2] OS_BinSemCreate() is invoked with sem_name set to NULL, an
error is expected.*/ error is expected.*/
@ -89,6 +90,7 @@ static void nasa_osal_test_004_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [4.1.3] OS_BinSemCreate() is invoked with an invalid /* [4.1.3] OS_BinSemCreate() is invoked with an invalid
sem_initial_value, an error is expected.*/ sem_initial_value, an error is expected.*/
@ -102,6 +104,7 @@ static void nasa_osal_test_004_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_INT_NUM, "counter error not detected"); test_assert(err == OS_INVALID_INT_NUM, "counter error not detected");
} }
test_end_step(3);
/* [4.1.4] OS_BinSemCreate() is invoked with a very long timer name, /* [4.1.4] OS_BinSemCreate() is invoked with a very long timer name,
an error is expected.*/ an error is expected.*/
@ -117,6 +120,7 @@ static void nasa_osal_test_004_001_execute(void) {
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
#endif #endif
} }
test_end_step(4);
/* [4.1.5] OS_BinSemDelete() is invoked with timer_id set to -1, an /* [4.1.5] OS_BinSemDelete() is invoked with timer_id set to -1, an
error is expected.*/ error is expected.*/
@ -127,6 +131,7 @@ static void nasa_osal_test_004_001_execute(void) {
err = OS_BinSemDelete((uint32)-1); err = OS_BinSemDelete((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "wrong semaphore id not detected"); test_assert(err == OS_ERR_INVALID_ID, "wrong semaphore id not detected");
} }
test_end_step(5);
/* [4.1.6] OS_BinSemCreate() is invoked twice with duplicated name, /* [4.1.6] OS_BinSemCreate() is invoked twice with duplicated name,
an error is expected, then the queue is deleted using an error is expected, then the queue is deleted using
@ -147,6 +152,7 @@ static void nasa_osal_test_004_001_execute(void) {
err = OS_BinSemDelete(bsid1); err = OS_BinSemDelete(bsid1);
test_assert(err == OS_SUCCESS, "semaphore deletion failed"); test_assert(err == OS_SUCCESS, "semaphore deletion failed");
} }
test_end_step(6);
} }
static const testcase_t nasa_osal_test_004_001 = { static const testcase_t nasa_osal_test_004_001 = {
@ -179,6 +185,7 @@ static void nasa_osal_test_004_002_execute(void) {
err = OS_BinSemFlush((uint32)-1); err = OS_BinSemFlush((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_004_002 = { static const testcase_t nasa_osal_test_004_002 = {
@ -211,6 +218,7 @@ static void nasa_osal_test_004_003_execute(void) {
err = OS_BinSemGive((uint32)-1); err = OS_BinSemGive((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_004_003 = { static const testcase_t nasa_osal_test_004_003 = {
@ -243,6 +251,7 @@ static void nasa_osal_test_004_004_execute(void) {
err = OS_BinSemTake((uint32)-1); err = OS_BinSemTake((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_004_004 = { static const testcase_t nasa_osal_test_004_004 = {
@ -288,6 +297,7 @@ static void nasa_osal_test_004_005_execute(void) {
err = OS_BinSemTimedWait((uint32)-1, 1000); err = OS_BinSemTimedWait((uint32)-1, 1000);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
/* [4.5.2] OS_BinSemTimedWait() is invoked with msecs set to 0, an /* [4.5.2] OS_BinSemTimedWait() is invoked with msecs set to 0, an
error is expected.*/ error is expected.*/
@ -298,6 +308,7 @@ static void nasa_osal_test_004_005_execute(void) {
err = OS_BinSemTimedWait(bsid, 0); err = OS_BinSemTimedWait(bsid, 0);
test_assert(err == OS_INVALID_INT_NUM, "invalid msec not detected"); test_assert(err == OS_INVALID_INT_NUM, "invalid msec not detected");
} }
test_end_step(2);
} }
static const testcase_t nasa_osal_test_004_005 = { static const testcase_t nasa_osal_test_004_005 = {
@ -334,6 +345,7 @@ static void nasa_osal_test_004_006_execute(void) {
err = OS_BinSemGetIdByName(NULL, "semaphore"); err = OS_BinSemGetIdByName(NULL, "semaphore");
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [4.6.2] OS_BinSemGetIdByName() is invoked with semaphore name set /* [4.6.2] OS_BinSemGetIdByName() is invoked with semaphore name set
to NULL, an error is expected.*/ to NULL, an error is expected.*/
@ -344,6 +356,7 @@ static void nasa_osal_test_004_006_execute(void) {
err = OS_BinSemGetIdByName(&bsid, NULL); err = OS_BinSemGetIdByName(&bsid, NULL);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [4.6.3] OS_BinSemGetIdByName() is invoked with a very long task /* [4.6.3] OS_BinSemGetIdByName() is invoked with a very long task
name, an error is expected.*/ name, an error is expected.*/
@ -354,6 +367,7 @@ static void nasa_osal_test_004_006_execute(void) {
err = OS_BinSemGetIdByName(&bsid, "very very long semaphore name"); err = OS_BinSemGetIdByName(&bsid, "very very long semaphore name");
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_004_006 = { static const testcase_t nasa_osal_test_004_006 = {
@ -397,6 +411,7 @@ static void nasa_osal_test_004_007_execute(void) {
err = OS_BinSemTimedWait(bsid, 1000); err = OS_BinSemTimedWait(bsid, 1000);
test_assert(err == OS_SEM_TIMEOUT, "unexpected error code"); test_assert(err == OS_SEM_TIMEOUT, "unexpected error code");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_004_007 = { static const testcase_t nasa_osal_test_004_007 = {

View File

@ -75,6 +75,7 @@ static void nasa_osal_test_005_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [5.1.2] OS_CountSemCreate() is invoked with sem_name set to NULL, /* [5.1.2] OS_CountSemCreate() is invoked with sem_name set to NULL,
an error is expected.*/ an error is expected.*/
@ -88,6 +89,7 @@ static void nasa_osal_test_005_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [5.1.3] OS_CountSemCreate() is invoked with an invalid /* [5.1.3] OS_CountSemCreate() is invoked with an invalid
sem_initial_value, an error is expected.*/ sem_initial_value, an error is expected.*/
@ -101,6 +103,7 @@ static void nasa_osal_test_005_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_INT_NUM, "counter error not detected"); test_assert(err == OS_INVALID_INT_NUM, "counter error not detected");
} }
test_end_step(3);
/* [5.1.4] OS_CountSemCreate() is invoked with a very long timer /* [5.1.4] OS_CountSemCreate() is invoked with a very long timer
name, an error is expected.*/ name, an error is expected.*/
@ -116,6 +119,7 @@ static void nasa_osal_test_005_001_execute(void) {
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
#endif #endif
} }
test_end_step(4);
/* [5.1.5] OS_CountSemDelete() is invoked with timer_id set to -1, an /* [5.1.5] OS_CountSemDelete() is invoked with timer_id set to -1, an
error is expected.*/ error is expected.*/
@ -126,6 +130,7 @@ static void nasa_osal_test_005_001_execute(void) {
err = OS_CountSemDelete((uint32)-1); err = OS_CountSemDelete((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "wrong semaphore id not detected"); test_assert(err == OS_ERR_INVALID_ID, "wrong semaphore id not detected");
} }
test_end_step(5);
/* [5.1.6] OS_CountSemCreate() is invoked twice with duplicated name, /* [5.1.6] OS_CountSemCreate() is invoked twice with duplicated name,
an error is expected, then the queue is deleted using an error is expected, then the queue is deleted using
@ -146,6 +151,7 @@ static void nasa_osal_test_005_001_execute(void) {
err = OS_CountSemDelete(csid1); err = OS_CountSemDelete(csid1);
test_assert(err == OS_SUCCESS, "semaphore deletion failed"); test_assert(err == OS_SUCCESS, "semaphore deletion failed");
} }
test_end_step(6);
} }
static const testcase_t nasa_osal_test_005_001 = { static const testcase_t nasa_osal_test_005_001 = {
@ -178,6 +184,7 @@ static void nasa_osal_test_005_002_execute(void) {
err = OS_CountSemGive((uint32)-1); err = OS_CountSemGive((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_005_002 = { static const testcase_t nasa_osal_test_005_002 = {
@ -210,6 +217,7 @@ static void nasa_osal_test_005_003_execute(void) {
err = OS_CountSemTake((uint32)-1); err = OS_CountSemTake((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_005_003 = { static const testcase_t nasa_osal_test_005_003 = {
@ -255,6 +263,7 @@ static void nasa_osal_test_005_004_execute(void) {
err = OS_CountSemTimedWait((uint32)-1, 1000); err = OS_CountSemTimedWait((uint32)-1, 1000);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
/* [5.4.2] OS_CountSemTimedWait() is invoked with msecs set to 0, an /* [5.4.2] OS_CountSemTimedWait() is invoked with msecs set to 0, an
error is expected.*/ error is expected.*/
@ -265,6 +274,7 @@ static void nasa_osal_test_005_004_execute(void) {
err = OS_CountSemTimedWait(csid, 0); err = OS_CountSemTimedWait(csid, 0);
test_assert(err == OS_INVALID_INT_NUM, "invalid msec not detected"); test_assert(err == OS_INVALID_INT_NUM, "invalid msec not detected");
} }
test_end_step(2);
} }
static const testcase_t nasa_osal_test_005_004 = { static const testcase_t nasa_osal_test_005_004 = {
@ -301,6 +311,7 @@ static void nasa_osal_test_005_005_execute(void) {
err = OS_CountSemGetIdByName(NULL, "semaphore"); err = OS_CountSemGetIdByName(NULL, "semaphore");
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [5.5.2] OS_CountSemGetIdByName() is invoked with semaphore name /* [5.5.2] OS_CountSemGetIdByName() is invoked with semaphore name
set to NULL, an error is expected.*/ set to NULL, an error is expected.*/
@ -311,6 +322,7 @@ static void nasa_osal_test_005_005_execute(void) {
err = OS_CountSemGetIdByName(&csid, NULL); err = OS_CountSemGetIdByName(&csid, NULL);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [5.5.3] OS_CountSemGetIdByName() is invoked with a very long task /* [5.5.3] OS_CountSemGetIdByName() is invoked with a very long task
name, an error is expected.*/ name, an error is expected.*/
@ -321,6 +333,7 @@ static void nasa_osal_test_005_005_execute(void) {
err = OS_CountSemGetIdByName(&csid, "very very long semaphore name"); err = OS_CountSemGetIdByName(&csid, "very very long semaphore name");
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_005_005 = { static const testcase_t nasa_osal_test_005_005 = {
@ -364,6 +377,7 @@ static void nasa_osal_test_005_006_execute(void) {
err = OS_CountSemTimedWait(csid, 1000); err = OS_CountSemTimedWait(csid, 1000);
test_assert(err == OS_SEM_TIMEOUT, "unexpected error code"); test_assert(err == OS_SEM_TIMEOUT, "unexpected error code");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_005_006 = { static const testcase_t nasa_osal_test_005_006 = {

View File

@ -70,6 +70,7 @@ static void nasa_osal_test_006_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [6.1.2] OS_MutSemCreate() is invoked with sem_name set to NULL, an /* [6.1.2] OS_MutSemCreate() is invoked with sem_name set to NULL, an
error is expected.*/ error is expected.*/
@ -82,6 +83,7 @@ static void nasa_osal_test_006_001_execute(void) {
0); 0);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [6.1.3] OS_MutSemCreate() is invoked with a very long timer name, /* [6.1.3] OS_MutSemCreate() is invoked with a very long timer name,
an error is expected.*/ an error is expected.*/
@ -96,6 +98,7 @@ static void nasa_osal_test_006_001_execute(void) {
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
#endif #endif
} }
test_end_step(3);
/* [6.1.4] OS_MutSemDelete() is invoked with timer_id set to -1, an /* [6.1.4] OS_MutSemDelete() is invoked with timer_id set to -1, an
error is expected.*/ error is expected.*/
@ -106,6 +109,7 @@ static void nasa_osal_test_006_001_execute(void) {
err = OS_MutSemDelete((uint32)-1); err = OS_MutSemDelete((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "wrong semaphore id not detected"); test_assert(err == OS_ERR_INVALID_ID, "wrong semaphore id not detected");
} }
test_end_step(4);
/* [6.1.5] OS_MutSemCreate() is invoked twice with duplicated name, /* [6.1.5] OS_MutSemCreate() is invoked twice with duplicated name,
an error is expected, then the queue is deleted using an error is expected, then the queue is deleted using
@ -126,6 +130,7 @@ static void nasa_osal_test_006_001_execute(void) {
err = OS_MutSemDelete(msid1); err = OS_MutSemDelete(msid1);
test_assert(err == OS_SUCCESS, "semaphore deletion failed"); test_assert(err == OS_SUCCESS, "semaphore deletion failed");
} }
test_end_step(5);
} }
static const testcase_t nasa_osal_test_006_001 = { static const testcase_t nasa_osal_test_006_001 = {
@ -158,6 +163,7 @@ static void nasa_osal_test_006_002_execute(void) {
err = OS_MutSemGive((uint32)-1); err = OS_MutSemGive((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_006_002 = { static const testcase_t nasa_osal_test_006_002 = {
@ -190,6 +196,7 @@ static void nasa_osal_test_006_003_execute(void) {
err = OS_MutSemTake((uint32)-1); err = OS_MutSemTake((uint32)-1);
test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected"); test_assert(err == OS_ERR_INVALID_ID, "invalid sem_id not detected");
} }
test_end_step(1);
} }
static const testcase_t nasa_osal_test_006_003 = { static const testcase_t nasa_osal_test_006_003 = {
@ -226,6 +233,7 @@ static void nasa_osal_test_006_004_execute(void) {
err = OS_MutSemGetIdByName(NULL, "semaphore"); err = OS_MutSemGetIdByName(NULL, "semaphore");
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(1);
/* [6.4.2] OS_MutSemGetIdByName() is invoked with semaphore name set /* [6.4.2] OS_MutSemGetIdByName() is invoked with semaphore name set
to NULL, an error is expected.*/ to NULL, an error is expected.*/
@ -236,6 +244,7 @@ static void nasa_osal_test_006_004_execute(void) {
err = OS_MutSemGetIdByName(&msid, NULL); err = OS_MutSemGetIdByName(&msid, NULL);
test_assert(err == OS_INVALID_POINTER, "NULL not detected"); test_assert(err == OS_INVALID_POINTER, "NULL not detected");
} }
test_end_step(2);
/* [6.4.3] OS_MutSemGetIdByName() is invoked with a very long task /* [6.4.3] OS_MutSemGetIdByName() is invoked with a very long task
name, an error is expected.*/ name, an error is expected.*/
@ -246,6 +255,7 @@ static void nasa_osal_test_006_004_execute(void) {
err = OS_MutSemGetIdByName(&msid, "very very long semaphore name"); err = OS_MutSemGetIdByName(&msid, "very very long semaphore name");
test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected"); test_assert(err == OS_ERR_NAME_TOO_LONG, "name limit not detected");
} }
test_end_step(3);
} }
static const testcase_t nasa_osal_test_006_004 = { static const testcase_t nasa_osal_test_006_004 = {

File diff suppressed because it is too large Load Diff

View File

@ -53,14 +53,14 @@ const testsequence_t * const nil_test_suite_array[] = {
&nil_test_sequence_001, &nil_test_sequence_001,
&nil_test_sequence_002, &nil_test_sequence_002,
&nil_test_sequence_003, &nil_test_sequence_003,
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&nil_test_sequence_004, &nil_test_sequence_004,
#endif #endif
&nil_test_sequence_005, &nil_test_sequence_005,
#if (CH_CFG_USE_EVENTS) || defined(__DOXYGEN__) #if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
&nil_test_sequence_006, &nil_test_sequence_006,
#endif #endif
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&nil_test_sequence_007, &nil_test_sequence_007,
#endif #endif
&nil_test_sequence_008, &nil_test_sequence_008,

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -42,7 +42,7 @@
* . * .
*/ */
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -305,4 +305,4 @@ const testsequence_t nil_test_sequence_004 = {
nil_test_sequence_004_array nil_test_sequence_004_array
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */

View File

@ -31,7 +31,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_EVENTS * - CH_CFG_USE_EVENTS == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -45,7 +45,7 @@
* . * .
*/ */
#if (CH_CFG_USE_EVENTS) || defined(__DOXYGEN__) #if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -629,4 +629,4 @@ const testsequence_t nil_test_sequence_006 = {
nil_test_sequence_006_array nil_test_sequence_006_array
}; };
#endif /* CH_CFG_USE_EVENTS */ #endif /* CH_CFG_USE_EVENTS == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -40,7 +40,7 @@
* . * .
*/ */
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -139,4 +139,4 @@ const testsequence_t nil_test_sequence_007 = {
nil_test_sequence_007_array nil_test_sequence_007_array
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */

View File

@ -108,7 +108,7 @@ static THD_FUNCTION(bmk_thread4, p) {
* Test cases. * Test cases.
****************************************************************************/ ****************************************************************************/
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page nil_test_008_001 [8.1] Messages performance #1 * @page nil_test_008_001 [8.1] Messages performance #1
* *
@ -120,7 +120,7 @@ static THD_FUNCTION(bmk_thread4, p) {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -179,9 +179,9 @@ static const testcase_t nil_test_008_001 = {
NULL, NULL,
nil_test_008_001_execute nil_test_008_001_execute
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page nil_test_008_002 [8.2] Messages performance #2 * @page nil_test_008_002 [8.2] Messages performance #2
* *
@ -193,7 +193,7 @@ static const testcase_t nil_test_008_001 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -252,7 +252,7 @@ static const testcase_t nil_test_008_002 = {
NULL, NULL,
nil_test_008_002_execute nil_test_008_002_execute
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */
/** /**
* @page nil_test_008_003 [8.3] Context Switch performance * @page nil_test_008_003 [8.3] Context Switch performance
@ -467,7 +467,7 @@ static const testcase_t nil_test_008_005 = {
nil_test_008_005_execute nil_test_008_005_execute
}; };
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page nil_test_008_006 [8.6] Semaphores wait/signal performance * @page nil_test_008_006 [8.6] Semaphores wait/signal performance
* *
@ -480,7 +480,7 @@ static const testcase_t nil_test_008_005 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -539,7 +539,7 @@ static const testcase_t nil_test_008_006 = {
NULL, NULL,
nil_test_008_006_execute nil_test_008_006_execute
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */
/** /**
* @page nil_test_008_007 [8.7] RAM Footprint * @page nil_test_008_007 [8.7] RAM Footprint
@ -637,16 +637,16 @@ static const testcase_t nil_test_008_007 = {
* @brief Array of test cases. * @brief Array of test cases.
*/ */
const testcase_t * const nil_test_sequence_008_array[] = { const testcase_t * const nil_test_sequence_008_array[] = {
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&nil_test_008_001, &nil_test_008_001,
#endif #endif
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&nil_test_008_002, &nil_test_008_002,
#endif #endif
&nil_test_008_003, &nil_test_008_003,
&nil_test_008_004, &nil_test_008_004,
&nil_test_008_005, &nil_test_008_005,
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&nil_test_008_006, &nil_test_008_006,
#endif #endif
&nil_test_008_007, &nil_test_008_007,

File diff suppressed because it is too large Load Diff

View File

@ -52,25 +52,25 @@
*/ */
const testsequence_t * const oslib_test_suite_array[] = { const testsequence_t * const oslib_test_suite_array[] = {
&oslib_test_sequence_001, &oslib_test_sequence_001,
#if (CH_CFG_USE_MAILBOXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MAILBOXES == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_002, &oslib_test_sequence_002,
#endif #endif
#if (CH_CFG_USE_PIPES) || defined(__DOXYGEN__) #if (CH_CFG_USE_PIPES == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_003, &oslib_test_sequence_003,
#endif #endif
#if (CH_CFG_USE_JOBS) || defined(__DOXYGEN__) #if (CH_CFG_USE_JOBS == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_004, &oslib_test_sequence_004,
#endif #endif
#if (CH_CFG_USE_DELEGATES) || defined(__DOXYGEN__) #if (CH_CFG_USE_DELEGATES == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_005, &oslib_test_sequence_005,
#endif #endif
#if (CH_CFG_USE_OBJ_CACHES) || defined(__DOXYGEN__) #if (CH_CFG_USE_OBJ_CACHES == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_006, &oslib_test_sequence_006,
#endif #endif
#if (CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__) #if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_007, &oslib_test_sequence_007,
#endif #endif
#if (CH_CFG_USE_HEAP) || defined(__DOXYGEN__) #if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__)
&oslib_test_sequence_008, &oslib_test_sequence_008,
#endif #endif
#if ((CH_CFG_USE_FACTORY == TRUE) && (CH_CFG_USE_MEMPOOLS == TRUE) && (CH_CFG_USE_HEAP == TRUE)) || defined(__DOXYGEN__) #if ((CH_CFG_USE_FACTORY == TRUE) && (CH_CFG_USE_MEMPOOLS == TRUE) && (CH_CFG_USE_HEAP == TRUE)) || defined(__DOXYGEN__)

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MAILBOXES * - CH_CFG_USE_MAILBOXES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -42,7 +42,7 @@
* . * .
*/ */
#if (CH_CFG_USE_MAILBOXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MAILBOXES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -432,4 +432,4 @@ const testsequence_t oslib_test_sequence_002 = {
oslib_test_sequence_002_array oslib_test_sequence_002_array
}; };
#endif /* CH_CFG_USE_MAILBOXES */ #endif /* CH_CFG_USE_MAILBOXES == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_PIPES * - CH_CFG_USE_PIPES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -41,7 +41,7 @@
* . * .
*/ */
#if (CH_CFG_USE_PIPES) || defined(__DOXYGEN__) #if (CH_CFG_USE_PIPES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -377,4 +377,4 @@ const testsequence_t oslib_test_sequence_003 = {
oslib_test_sequence_003_array oslib_test_sequence_003_array
}; };
#endif /* CH_CFG_USE_PIPES */ #endif /* CH_CFG_USE_PIPES == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_JOBS * - CH_CFG_USE_JOBS == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -40,7 +40,7 @@
* . * .
*/ */
#if (CH_CFG_USE_JOBS) || defined(__DOXYGEN__) #if (CH_CFG_USE_JOBS == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -185,4 +185,4 @@ const testsequence_t oslib_test_sequence_004 = {
oslib_test_sequence_004_array oslib_test_sequence_004_array
}; };
#endif /* CH_CFG_USE_JOBS */ #endif /* CH_CFG_USE_JOBS == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_DELEGATES * - CH_CFG_USE_DELEGATES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -40,7 +40,7 @@
* . * .
*/ */
#if (CH_CFG_USE_DELEGATES) || defined(__DOXYGEN__) #if (CH_CFG_USE_DELEGATES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -210,4 +210,4 @@ const testsequence_t oslib_test_sequence_005 = {
oslib_test_sequence_005_array oslib_test_sequence_005_array
}; };
#endif /* CH_CFG_USE_DELEGATES */ #endif /* CH_CFG_USE_DELEGATES == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_OBJ_CACHES * - CH_CFG_USE_OBJ_CACHES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -40,7 +40,7 @@
* . * .
*/ */
#if (CH_CFG_USE_OBJ_CACHES) || defined(__DOXYGEN__) #if (CH_CFG_USE_OBJ_CACHES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -263,4 +263,4 @@ const testsequence_t oslib_test_sequence_006 = {
oslib_test_sequence_006_array oslib_test_sequence_006_array
}; };
#endif /* CH_CFG_USE_OBJ_CACHES */ #endif /* CH_CFG_USE_OBJ_CACHES == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MEMPOOLS * - CH_CFG_USE_MEMPOOLS == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -42,7 +42,7 @@
* . * .
*/ */
#if (CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__) #if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -157,7 +157,7 @@ static const testcase_t oslib_test_007_001 = {
oslib_test_007_001_execute oslib_test_007_001_execute
}; };
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page oslib_test_007_002 [7.2] Loading and emptying a guarded memory pool without waiting * @page oslib_test_007_002 [7.2] Loading and emptying a guarded memory pool without waiting
* *
@ -168,7 +168,7 @@ static const testcase_t oslib_test_007_001 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -244,9 +244,9 @@ static const testcase_t oslib_test_007_002 = {
NULL, NULL,
oslib_test_007_002_execute oslib_test_007_002_execute
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page oslib_test_007_003 [7.3] Guarded Memory Pools timeout * @page oslib_test_007_003 [7.3] Guarded Memory Pools timeout
* *
@ -256,7 +256,7 @@ static const testcase_t oslib_test_007_002 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -286,7 +286,7 @@ static const testcase_t oslib_test_007_003 = {
NULL, NULL,
oslib_test_007_003_execute oslib_test_007_003_execute
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */
/**************************************************************************** /****************************************************************************
* Exported data. * Exported data.
@ -297,10 +297,10 @@ static const testcase_t oslib_test_007_003 = {
*/ */
const testcase_t * const oslib_test_sequence_007_array[] = { const testcase_t * const oslib_test_sequence_007_array[] = {
&oslib_test_007_001, &oslib_test_007_001,
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&oslib_test_007_002, &oslib_test_007_002,
#endif #endif
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&oslib_test_007_003, &oslib_test_007_003,
#endif #endif
NULL NULL
@ -314,4 +314,4 @@ const testsequence_t oslib_test_sequence_007 = {
oslib_test_sequence_007_array oslib_test_sequence_007_array
}; };
#endif /* CH_CFG_USE_MEMPOOLS */ #endif /* CH_CFG_USE_MEMPOOLS == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_HEAP * - CH_CFG_USE_HEAP == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -41,7 +41,7 @@
* . * .
*/ */
#if (CH_CFG_USE_HEAP) || defined(__DOXYGEN__) #if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -289,4 +289,4 @@ const testsequence_t oslib_test_sequence_008 = {
oslib_test_sequence_008_array oslib_test_sequence_008_array
}; };
#endif /* CH_CFG_USE_HEAP */ #endif /* CH_CFG_USE_HEAP == TRUE */

File diff suppressed because it is too large Load Diff

View File

@ -60,19 +60,19 @@ const testsequence_t * const rt_test_suite_array[] = {
&rt_test_sequence_004, &rt_test_sequence_004,
&rt_test_sequence_005, &rt_test_sequence_005,
&rt_test_sequence_006, &rt_test_sequence_006,
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&rt_test_sequence_007, &rt_test_sequence_007,
#endif #endif
#if (CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
&rt_test_sequence_008, &rt_test_sequence_008,
#endif #endif
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&rt_test_sequence_009, &rt_test_sequence_009,
#endif #endif
#if (CH_CFG_USE_EVENTS) || defined(__DOXYGEN__) #if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
&rt_test_sequence_010, &rt_test_sequence_010,
#endif #endif
#if (CH_CFG_USE_DYNAMIC) || defined(__DOXYGEN__) #if (CH_CFG_USE_DYNAMIC == TRUE) || defined(__DOXYGEN__)
&rt_test_sequence_011, &rt_test_sequence_011,
#endif #endif
&rt_test_sequence_012, &rt_test_sequence_012,

View File

@ -264,7 +264,7 @@ static const testcase_t rt_test_005_003 = {
rt_test_005_003_execute rt_test_005_003_execute
}; };
#if (CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_005_004 [5.4] Priority change test with Priority Inheritance * @page rt_test_005_004 [5.4] Priority change test with Priority Inheritance
* *
@ -275,7 +275,7 @@ static const testcase_t rt_test_005_003 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MUTEXES * - CH_CFG_USE_MUTEXES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -337,7 +337,7 @@ static const testcase_t rt_test_005_004 = {
NULL, NULL,
rt_test_005_004_execute rt_test_005_004_execute
}; };
#endif /* CH_CFG_USE_MUTEXES */ #endif /* CH_CFG_USE_MUTEXES == TRUE */
/**************************************************************************** /****************************************************************************
* Exported data. * Exported data.
@ -350,7 +350,7 @@ const testcase_t * const rt_test_sequence_005_array[] = {
&rt_test_005_001, &rt_test_005_001,
&rt_test_005_002, &rt_test_005_002,
&rt_test_005_003, &rt_test_005_003,
#if (CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
&rt_test_005_004, &rt_test_005_004,
#endif #endif
NULL NULL

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -45,7 +45,7 @@
* . * .
*/ */
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -532,4 +532,4 @@ const testsequence_t rt_test_sequence_007 = {
rt_test_sequence_007_array rt_test_sequence_007_array
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MUTEXES * - CH_CFG_USE_MUTEXES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -48,7 +48,7 @@
* . * .
*/ */
#if (CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -305,7 +305,7 @@ static const testcase_t rt_test_008_001 = {
rt_test_008_001_execute rt_test_008_001_execute
}; };
#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) #if (CH_DBG_THREADS_PROFILING == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_002 [8.2] Priority inheritance, simple case * @page rt_test_008_002 [8.2] Priority inheritance, simple case
* *
@ -320,7 +320,7 @@ static const testcase_t rt_test_008_001 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_DBG_THREADS_PROFILING * - CH_DBG_THREADS_PROFILING == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -377,9 +377,9 @@ static const testcase_t rt_test_008_002 = {
NULL, NULL,
rt_test_008_002_execute rt_test_008_002_execute
}; };
#endif /* CH_DBG_THREADS_PROFILING */ #endif /* CH_DBG_THREADS_PROFILING == TRUE */
#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) #if (CH_DBG_THREADS_PROFILING == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_003 [8.3] Priority inheritance, complex case * @page rt_test_008_003 [8.3] Priority inheritance, complex case
* *
@ -393,7 +393,7 @@ static const testcase_t rt_test_008_002 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_DBG_THREADS_PROFILING * - CH_DBG_THREADS_PROFILING == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -453,7 +453,7 @@ static const testcase_t rt_test_008_003 = {
NULL, NULL,
rt_test_008_003_execute rt_test_008_003_execute
}; };
#endif /* CH_DBG_THREADS_PROFILING */ #endif /* CH_DBG_THREADS_PROFILING == TRUE */
/** /**
* @page rt_test_008_004 [8.4] Priority return verification * @page rt_test_008_004 [8.4] Priority return verification
@ -581,7 +581,7 @@ static const testcase_t rt_test_008_004 = {
rt_test_008_004_execute rt_test_008_004_execute
}; };
#if (!CH_CFG_USE_MUTEXES_RECURSIVE) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES_RECURSIVE == FALSE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_005 [8.5] Repeated locks, non recursive scenario * @page rt_test_008_005 [8.5] Repeated locks, non recursive scenario
* *
@ -592,7 +592,7 @@ static const testcase_t rt_test_008_004 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - !CH_CFG_USE_MUTEXES_RECURSIVE * - CH_CFG_USE_MUTEXES_RECURSIVE == FALSE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -687,9 +687,9 @@ static const testcase_t rt_test_008_005 = {
NULL, NULL,
rt_test_008_005_execute rt_test_008_005_execute
}; };
#endif /* !CH_CFG_USE_MUTEXES_RECURSIVE */ #endif /* CH_CFG_USE_MUTEXES_RECURSIVE == FALSE */
#if (CH_CFG_USE_MUTEXES_RECURSIVE) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES_RECURSIVE == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_006 [8.6] Repeated locks using, recursive scenario * @page rt_test_008_006 [8.6] Repeated locks using, recursive scenario
* *
@ -700,7 +700,7 @@ static const testcase_t rt_test_008_005 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MUTEXES_RECURSIVE * - CH_CFG_USE_MUTEXES_RECURSIVE == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -833,9 +833,9 @@ static const testcase_t rt_test_008_006 = {
NULL, NULL,
rt_test_008_006_execute rt_test_008_006_execute
}; };
#endif /* CH_CFG_USE_MUTEXES_RECURSIVE */ #endif /* CH_CFG_USE_MUTEXES_RECURSIVE == TRUE */
#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) #if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_007 [8.7] Condition Variable signal test * @page rt_test_008_007 [8.7] Condition Variable signal test
* *
@ -849,7 +849,7 @@ static const testcase_t rt_test_008_006 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_CONDVARS * - CH_CFG_USE_CONDVARS == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -906,9 +906,9 @@ static const testcase_t rt_test_008_007 = {
NULL, NULL,
rt_test_008_007_execute rt_test_008_007_execute
}; };
#endif /* CH_CFG_USE_CONDVARS */ #endif /* CH_CFG_USE_CONDVARS == TRUE */
#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) #if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_008 [8.8] Condition Variable broadcast test * @page rt_test_008_008 [8.8] Condition Variable broadcast test
* *
@ -921,7 +921,7 @@ static const testcase_t rt_test_008_007 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_CONDVARS * - CH_CFG_USE_CONDVARS == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -969,9 +969,9 @@ static const testcase_t rt_test_008_008 = {
NULL, NULL,
rt_test_008_008_execute rt_test_008_008_execute
}; };
#endif /* CH_CFG_USE_CONDVARS */ #endif /* CH_CFG_USE_CONDVARS == TRUE */
#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) #if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_008_009 [8.9] Condition Variable priority boost test * @page rt_test_008_009 [8.9] Condition Variable priority boost test
* *
@ -986,7 +986,7 @@ static const testcase_t rt_test_008_008 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_CONDVARS * - CH_CFG_USE_CONDVARS == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -1076,7 +1076,7 @@ static const testcase_t rt_test_008_009 = {
NULL, NULL,
rt_test_008_009_execute rt_test_008_009_execute
}; };
#endif /* CH_CFG_USE_CONDVARS */ #endif /* CH_CFG_USE_CONDVARS == TRUE */
/**************************************************************************** /****************************************************************************
* Exported data. * Exported data.
@ -1087,26 +1087,26 @@ static const testcase_t rt_test_008_009 = {
*/ */
const testcase_t * const rt_test_sequence_008_array[] = { const testcase_t * const rt_test_sequence_008_array[] = {
&rt_test_008_001, &rt_test_008_001,
#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) #if (CH_DBG_THREADS_PROFILING == TRUE) || defined(__DOXYGEN__)
&rt_test_008_002, &rt_test_008_002,
#endif #endif
#if (CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__) #if (CH_DBG_THREADS_PROFILING == TRUE) || defined(__DOXYGEN__)
&rt_test_008_003, &rt_test_008_003,
#endif #endif
&rt_test_008_004, &rt_test_008_004,
#if (!CH_CFG_USE_MUTEXES_RECURSIVE) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES_RECURSIVE == FALSE) || defined(__DOXYGEN__)
&rt_test_008_005, &rt_test_008_005,
#endif #endif
#if (CH_CFG_USE_MUTEXES_RECURSIVE) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES_RECURSIVE == TRUE) || defined(__DOXYGEN__)
&rt_test_008_006, &rt_test_008_006,
#endif #endif
#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) #if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
&rt_test_008_007, &rt_test_008_007,
#endif #endif
#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) #if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
&rt_test_008_008, &rt_test_008_008,
#endif #endif
#if (CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__) #if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
&rt_test_008_009, &rt_test_008_009,
#endif #endif
NULL NULL
@ -1120,4 +1120,4 @@ const testsequence_t rt_test_sequence_008 = {
rt_test_sequence_008_array rt_test_sequence_008_array
}; };
#endif /* CH_CFG_USE_MUTEXES */ #endif /* CH_CFG_USE_MUTEXES == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -40,7 +40,7 @@
* . * .
*/ */
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -129,4 +129,4 @@ const testsequence_t rt_test_sequence_009 = {
rt_test_sequence_009_array rt_test_sequence_009_array
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */

View File

@ -31,7 +31,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_EVENTS * - CH_CFG_USE_EVENTS == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -45,7 +45,7 @@
* . * .
*/ */
#if (CH_CFG_USE_EVENTS) || defined(__DOXYGEN__) #if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -426,7 +426,7 @@ static const testcase_t rt_test_010_005 = {
rt_test_010_005_execute rt_test_010_005_execute
}; };
#if (CH_CFG_USE_EVENTS_TIMEOUT) || defined(__DOXYGEN__) #if (CH_CFG_USE_EVENTS_TIMEOUT == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_010_006 [10.6] Events Flags wait timeouts * @page rt_test_010_006 [10.6] Events Flags wait timeouts
* *
@ -437,7 +437,7 @@ static const testcase_t rt_test_010_005 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_EVENTS_TIMEOUT * - CH_CFG_USE_EVENTS_TIMEOUT == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -488,7 +488,7 @@ static const testcase_t rt_test_010_006 = {
NULL, NULL,
rt_test_010_006_execute rt_test_010_006_execute
}; };
#endif /* CH_CFG_USE_EVENTS_TIMEOUT */ #endif /* CH_CFG_USE_EVENTS_TIMEOUT == TRUE */
/** /**
* @page rt_test_010_007 [10.7] Broadcasting using chEvtBroadcast() * @page rt_test_010_007 [10.7] Broadcasting using chEvtBroadcast()
@ -586,7 +586,7 @@ const testcase_t * const rt_test_sequence_010_array[] = {
&rt_test_010_003, &rt_test_010_003,
&rt_test_010_004, &rt_test_010_004,
&rt_test_010_005, &rt_test_010_005,
#if (CH_CFG_USE_EVENTS_TIMEOUT) || defined(__DOXYGEN__) #if (CH_CFG_USE_EVENTS_TIMEOUT == TRUE) || defined(__DOXYGEN__)
&rt_test_010_006, &rt_test_010_006,
#endif #endif
&rt_test_010_007, &rt_test_010_007,
@ -601,4 +601,4 @@ const testsequence_t rt_test_sequence_010 = {
rt_test_sequence_010_array rt_test_sequence_010_array
}; };
#endif /* CH_CFG_USE_EVENTS */ #endif /* CH_CFG_USE_EVENTS == TRUE */

View File

@ -32,7 +32,7 @@
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This sequence is only executed if the following preprocessor condition * This sequence is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_DYNAMIC * - CH_CFG_USE_DYNAMIC == TRUE
* . * .
* *
* <h2>Test Cases</h2> * <h2>Test Cases</h2>
@ -41,7 +41,7 @@
* . * .
*/ */
#if (CH_CFG_USE_DYNAMIC) || defined(__DOXYGEN__) #if (CH_CFG_USE_DYNAMIC == TRUE) || defined(__DOXYGEN__)
/**************************************************************************** /****************************************************************************
* Shared code. * Shared code.
@ -63,7 +63,7 @@ static THD_FUNCTION(dyn_thread1, p) {
* Test cases. * Test cases.
****************************************************************************/ ****************************************************************************/
#if (CH_CFG_USE_HEAP) || defined(__DOXYGEN__) #if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_011_001 [11.1] Threads creation from Memory Heap * @page rt_test_011_001 [11.1] Threads creation from Memory Heap
* *
@ -76,7 +76,7 @@ static THD_FUNCTION(dyn_thread1, p) {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_HEAP * - CH_CFG_USE_HEAP == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -174,9 +174,9 @@ static const testcase_t rt_test_011_001 = {
NULL, NULL,
rt_test_011_001_execute rt_test_011_001_execute
}; };
#endif /* CH_CFG_USE_HEAP */ #endif /* CH_CFG_USE_HEAP == TRUE */
#if (CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__) #if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_011_002 [11.2] Threads creation from Memory Pool * @page rt_test_011_002 [11.2] Threads creation from Memory Pool
* *
@ -188,7 +188,7 @@ static const testcase_t rt_test_011_001 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MEMPOOLS * - CH_CFG_USE_MEMPOOLS == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -274,7 +274,7 @@ static const testcase_t rt_test_011_002 = {
NULL, NULL,
rt_test_011_002_execute rt_test_011_002_execute
}; };
#endif /* CH_CFG_USE_MEMPOOLS */ #endif /* CH_CFG_USE_MEMPOOLS == TRUE */
/**************************************************************************** /****************************************************************************
* Exported data. * Exported data.
@ -284,10 +284,10 @@ static const testcase_t rt_test_011_002 = {
* @brief Array of test cases. * @brief Array of test cases.
*/ */
const testcase_t * const rt_test_sequence_011_array[] = { const testcase_t * const rt_test_sequence_011_array[] = {
#if (CH_CFG_USE_HEAP) || defined(__DOXYGEN__) #if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__)
&rt_test_011_001, &rt_test_011_001,
#endif #endif
#if (CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__) #if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
&rt_test_011_002, &rt_test_011_002,
#endif #endif
NULL NULL
@ -301,4 +301,4 @@ const testsequence_t rt_test_sequence_011 = {
rt_test_sequence_011_array rt_test_sequence_011_array
}; };
#endif /* CH_CFG_USE_DYNAMIC */ #endif /* CH_CFG_USE_DYNAMIC == TRUE */

View File

@ -142,7 +142,7 @@ static THD_FUNCTION(bmk_thread8, p) {
* Test cases. * Test cases.
****************************************************************************/ ****************************************************************************/
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_012_001 [12.1] Messages performance #1 * @page rt_test_012_001 [12.1] Messages performance #1
* *
@ -154,7 +154,7 @@ static THD_FUNCTION(bmk_thread8, p) {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -204,9 +204,9 @@ static const testcase_t rt_test_012_001 = {
NULL, NULL,
rt_test_012_001_execute rt_test_012_001_execute
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_012_002 [12.2] Messages performance #2 * @page rt_test_012_002 [12.2] Messages performance #2
* *
@ -218,7 +218,7 @@ static const testcase_t rt_test_012_001 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -268,9 +268,9 @@ static const testcase_t rt_test_012_002 = {
NULL, NULL,
rt_test_012_002_execute rt_test_012_002_execute
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_012_003 [12.3] Messages performance #3 * @page rt_test_012_003 [12.3] Messages performance #3
* *
@ -283,7 +283,7 @@ static const testcase_t rt_test_012_002 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MESSAGES * - CH_CFG_USE_MESSAGES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -346,7 +346,7 @@ static const testcase_t rt_test_012_003 = {
NULL, NULL,
rt_test_012_003_execute rt_test_012_003_execute
}; };
#endif /* CH_CFG_USE_MESSAGES */ #endif /* CH_CFG_USE_MESSAGES == TRUE */
/** /**
* @page rt_test_012_004 [12.4] Context Switch performance * @page rt_test_012_004 [12.4] Context Switch performance
@ -551,7 +551,7 @@ static const testcase_t rt_test_012_006 = {
rt_test_012_006_execute rt_test_012_006_execute
}; };
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_012_007 [12.7] Mass reschedule performance * @page rt_test_012_007 [12.7] Mass reschedule performance
* *
@ -564,7 +564,7 @@ static const testcase_t rt_test_012_006 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -642,7 +642,7 @@ static const testcase_t rt_test_012_007 = {
NULL, NULL,
rt_test_012_007_execute rt_test_012_007_execute
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */
/** /**
* @page rt_test_012_008 [12.8] Round-Robin voluntary reschedule * @page rt_test_012_008 [12.8] Round-Robin voluntary reschedule
@ -768,7 +768,7 @@ static const testcase_t rt_test_012_009 = {
rt_test_012_009_execute rt_test_012_009_execute
}; };
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_012_010 [12.10] Semaphores wait/signal performance * @page rt_test_012_010 [12.10] Semaphores wait/signal performance
* *
@ -781,7 +781,7 @@ static const testcase_t rt_test_012_009 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_SEMAPHORES * - CH_CFG_USE_SEMAPHORES == TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -840,9 +840,9 @@ static const testcase_t rt_test_012_010 = {
NULL, NULL,
rt_test_012_010_execute rt_test_012_010_execute
}; };
#endif /* CH_CFG_USE_SEMAPHORES */ #endif /* CH_CFG_USE_SEMAPHORES == TRUE */
#if (CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES ==TRUE) || defined(__DOXYGEN__)
/** /**
* @page rt_test_012_011 [12.11] Mutexes lock/unlock performance * @page rt_test_012_011 [12.11] Mutexes lock/unlock performance
* *
@ -855,7 +855,7 @@ static const testcase_t rt_test_012_010 = {
* <h2>Conditions</h2> * <h2>Conditions</h2>
* This test is only executed if the following preprocessor condition * This test is only executed if the following preprocessor condition
* evaluates to true: * evaluates to true:
* - CH_CFG_USE_MUTEXES * - CH_CFG_USE_MUTEXES ==TRUE
* . * .
* *
* <h2>Test Steps</h2> * <h2>Test Steps</h2>
@ -914,7 +914,7 @@ static const testcase_t rt_test_012_011 = {
NULL, NULL,
rt_test_012_011_execute rt_test_012_011_execute
}; };
#endif /* CH_CFG_USE_MUTEXES */ #endif /* CH_CFG_USE_MUTEXES ==TRUE */
/** /**
* @page rt_test_012_012 [12.12] RAM Footprint * @page rt_test_012_012 [12.12] RAM Footprint
@ -1046,27 +1046,27 @@ static const testcase_t rt_test_012_012 = {
* @brief Array of test cases. * @brief Array of test cases.
*/ */
const testcase_t * const rt_test_sequence_012_array[] = { const testcase_t * const rt_test_sequence_012_array[] = {
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&rt_test_012_001, &rt_test_012_001,
#endif #endif
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&rt_test_012_002, &rt_test_012_002,
#endif #endif
#if (CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
&rt_test_012_003, &rt_test_012_003,
#endif #endif
&rt_test_012_004, &rt_test_012_004,
&rt_test_012_005, &rt_test_012_005,
&rt_test_012_006, &rt_test_012_006,
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&rt_test_012_007, &rt_test_012_007,
#endif #endif
&rt_test_012_008, &rt_test_012_008,
&rt_test_012_009, &rt_test_012_009,
#if (CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__) #if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
&rt_test_012_010, &rt_test_012_010,
#endif #endif
#if (CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__) #if (CH_CFG_USE_MUTEXES ==TRUE) || defined(__DOXYGEN__)
&rt_test_012_011, &rt_test_012_011,
#endif #endif
&rt_test_012_012, &rt_test_012_012,