Skip to content

Commit

Permalink
feat: split test suite of component_a into multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
xxthunder committed Jan 15, 2025
1 parent 3386dbd commit e231444
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 261 deletions.
6 changes: 4 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"description": "Which variant do you want to select?",
"options": [
"CustA/Disco",
"CustB/Sleep"
"CustB/Sleep",
"Base/Dev"
]
},
{
Expand All @@ -75,7 +76,8 @@
"main_control_knob",
"power_signal_processing",
"rte",
"spled"
"spled",
"examples/component_a"
]
}
]
Expand Down
3 changes: 2 additions & 1 deletion src/examples/component_a/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
spl_add_source(src/component_a.c)
spl_add_test_source(test/test_component_a.cc)
spl_add_test_source(test/test_component_a_suite_1.cc)
spl_add_test_source(test/test_component_a_suite_2.cc)
spl_create_component()
5 changes: 1 addition & 4 deletions src/examples/component_a/src/component_a.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ int CheckReadSomeDataAndReturn() {
}
}


int CheckReadMultipleDataAndReturn() {
int var1 = 0;
int var2 = 0;
Expand All @@ -40,7 +39,6 @@ int CheckReadMultipleDataAndReturn() {
}
}


void CheckReadDataStructure(MyDataType* output) {
ReadDataStructure(output);
}
Expand All @@ -49,10 +47,9 @@ void CheckReadDataStructureArray(MyDataType* output) {
ReadDataStructureArray(output);
}


extern void CalculateSquare(void) {
int input, output;
Read_MyInput(&input);
output = input * input;
Write_MyInput(&output);
}
}
254 changes: 0 additions & 254 deletions src/examples/component_a/test/test_component_a.cc

This file was deleted.

Loading

0 comments on commit e231444

Please sign in to comment.