-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Glamhoth/ros-108/design-inspection-tests
ROS#108 - Design & Inspection tests
- Loading branch information
Showing
20 changed files
with
205 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
Cargo.lock | ||
target/ | ||
|
||
docs/ | ||
docs-test/ | ||
|
||
# editor files | ||
!.vscode/*.md | ||
!.vscode/*.svd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/// @SRS{ROS-BSP-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_rtos() {} | ||
|
||
/// @SRS{ROS-FUN-RTOS-020} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_tasklet_persistent_context_data() {} | ||
|
||
/// @SRS{ROS-FUN-RTOS-030} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_tasklet_user_data_safe_access() {} | ||
|
||
/// @SRS{ROS-FUN-RTOS-040} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_safe_access_to_shared_data() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-WDT-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_wdt() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-NVIC-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_nvic() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-SCB-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_scb() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-SYST-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_syst() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-PMC-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_pcm() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-UART-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_uart() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-PIO-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_pio() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-SPI-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_spi() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-TIC-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_tic() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-XDMAC-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_xdmac() {} | ||
|
||
/// @SRS{ROS-FUN-BSP-FPU-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_provide_driver_fpu() {} | ||
|
||
/// @SRS{ROS-RES-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_bsp_target_samv71() {} | ||
|
||
/// @SRS{ROS-DES-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_bsp_implemented_in_rust() {} | ||
|
||
/// @SRS{ROS-DES-020} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_implemented_in_rust() {} | ||
|
||
/// @SRS{ROS-POR-010} | ||
/// | ||
/// Design Analysis is described in N7S-ROS-SVSR-001, chapter 6.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn des_ros_partitioned_into_platform_specific_and_agnostic_code() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// @SRS{ROS-GEN-010} | ||
/// | ||
/// Inspection is described in N7S-ROS-SVSR-001, chapter 7.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn insp_english_documentation() {} | ||
|
||
/// @SRS{ROS-DES-030} | ||
/// | ||
/// Inspection is described in N7S-ROS-SVSR-001, chapter 7.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn insp_create_appliction_without_dynamic_allocations() {} | ||
|
||
/// @SRS{ROS-DES-040} | ||
/// | ||
/// Inspection is described in N7S-ROS-SVSR-001, chapter 7.2. | ||
#[cfg_attr(not(doc), test)] | ||
fn insp_evaluate_async_construct() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
mod test_basic_execution; | ||
mod test_boolean_condition; | ||
mod test_event_cancellation; | ||
mod test_event_clear_queue; | ||
mod test_events; | ||
mod test_hal_timer; | ||
mod test_hal_watchdog; | ||
mod test_message_queue; | ||
mod test_tasklet_priority; | ||
mod test_tasklet_priority_multiple_queues; | ||
mod design; | ||
mod inspection; | ||
mod test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mod test_basic_execution; | ||
mod test_boolean_condition; | ||
mod test_event_cancellation; | ||
mod test_event_clear_queue; | ||
mod test_events; | ||
mod test_hal_timer; | ||
mod test_hal_watchdog; | ||
mod test_message_queue; | ||
mod test_tasklet_priority; | ||
mod test_tasklet_priority_multiple_queues; |
3 changes: 2 additions & 1 deletion
3
tests/requirements/test_basic_execution.rs → ...requirements/test/test_basic_execution.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...s/requirements/test_event_cancellation.rs → ...uirements/test/test_event_cancellation.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
tests/requirements/test_event_clear_queue.rs → ...quirements/test/test_event_clear_queue.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tests/requirements/test_events.rs → tests/requirements/test/test_events.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
tests/requirements/test_message_queue.rs → ...s/requirements/test/test_message_queue.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.