From a0fccbe17ae6bcc3a663580b30ad2aab70e5f3fc Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 15 Jun 2023 09:50:32 +0200 Subject: spec: Reorganize BSP-specific tests --- .../val/fatal-cache-snooping-disabled-boot.yml | 6 +- .../fatal-cache-snooping-disabled-secondary.yml | 6 +- .../sparc/leon3/val/fatal-clock-initialization.yml | 6 +- spec/bsp/sparc/leon3/val/fatal-shutdown.yml | 2 +- spec/bsp/sparc/leon3/val/gr712rc.yml | 2 +- spec/testsuites/bsp-sparc-leon3-gr712rc.yml | 18 ---- ...al-sparc-leon3-cache-snooping-disabled-boot.yml | 27 +++++ ...arc-leon3-cache-snooping-disabled-secondary.yml | 30 ++++++ .../fatal-sparc-leon3-clock-initialization.yml | 24 +++++ .../testsuites/bsps/fatal-sparc-leon3-shutdown.yml | 117 +++++++++++++++++++++ spec/testsuites/bsps/validation-bsp-0.yml | 19 ++++ ...sp-sparc-leon3-cache-snooping-disabled-boot.yml | 27 ----- ...arc-leon3-cache-snooping-disabled-secondary.yml | 30 ------ .../fatal-bsp-sparc-leon3-clock-initialization.yml | 24 ----- spec/testsuites/fatal-bsp-sparc-leon3-shutdown.yml | 117 --------------------- spec/testsuites/validation-dev-0.yml | 19 ---- 16 files changed, 228 insertions(+), 246 deletions(-) delete mode 100644 spec/testsuites/bsp-sparc-leon3-gr712rc.yml create mode 100644 spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-boot.yml create mode 100644 spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-secondary.yml create mode 100644 spec/testsuites/bsps/fatal-sparc-leon3-clock-initialization.yml create mode 100644 spec/testsuites/bsps/fatal-sparc-leon3-shutdown.yml create mode 100644 spec/testsuites/bsps/validation-bsp-0.yml delete mode 100644 spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.yml delete mode 100644 spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.yml delete mode 100644 spec/testsuites/fatal-bsp-sparc-leon3-clock-initialization.yml delete mode 100644 spec/testsuites/fatal-bsp-sparc-leon3-shutdown.yml delete mode 100644 spec/testsuites/validation-dev-0.yml diff --git a/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-boot.yml b/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-boot.yml index a3a48210..c806ba3b 100644 --- a/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-boot.yml +++ b/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-boot.yml @@ -54,13 +54,13 @@ test-header: dir: null name: code specifier: ${/rtems/userext/if/fatal-code:/name} ${.:name} - target: testsuites/validation/tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.h + target: testsuites/validation/bsps/tr-fatal-sparc-leon3-cache-snooping-disabled-boot.h test-includes: - rtems/sysinit.h - bsp/fatal.h - bsp/leon3.h test-local-includes: -- tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.h +- tr-fatal-sparc-leon3-cache-snooping-disabled-boot.h test-setup: null test-stop: null test-support: | @@ -78,6 +78,6 @@ test-support: | RTEMS_SYSINIT_BSP_EARLY, RTEMS_SYSINIT_ORDER_FIRST ); -test-target: testsuites/validation/tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.c +test-target: testsuites/validation/bsps/tr-fatal-sparc-leon3-cache-snooping-disabled-boot.c test-teardown: null type: test-case diff --git a/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-secondary.yml b/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-secondary.yml index abe090f3..9540e74c 100644 --- a/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-secondary.yml +++ b/spec/bsp/sparc/leon3/val/fatal-cache-snooping-disabled-secondary.yml @@ -54,13 +54,13 @@ test-header: dir: null name: code specifier: ${/rtems/userext/if/fatal-code:/name} ${.:name} - target: testsuites/validation/tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.h + target: testsuites/validation/bsps/tr-fatal-sparc-leon3-cache-snooping-disabled-secondary.h test-includes: - bsp/bootcard.h - bsp/fatal.h - bsp/leon3.h test-local-includes: -- tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.h +- tr-fatal-sparc-leon3-cache-snooping-disabled-secondary.h test-setup: null test-stop: null test-support: | @@ -78,6 +78,6 @@ test-support: | __real_bsp_start_on_secondary_processor( cpu_self ); } -test-target: testsuites/validation/tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.c +test-target: testsuites/validation/bsps/tr-fatal-sparc-leon3-cache-snooping-disabled-secondary.c test-teardown: null type: test-case diff --git a/spec/bsp/sparc/leon3/val/fatal-clock-initialization.yml b/spec/bsp/sparc/leon3/val/fatal-clock-initialization.yml index 2d52ef58..edb4e5ef 100644 --- a/spec/bsp/sparc/leon3/val/fatal-clock-initialization.yml +++ b/spec/bsp/sparc/leon3/val/fatal-clock-initialization.yml @@ -51,14 +51,14 @@ test-header: dir: null name: code specifier: ${/rtems/userext/if/fatal-code:/name} ${.:name} - target: testsuites/validation/tr-fatal-bsp-sparc-leon3-clock-initialization.h + target: testsuites/validation/bsps/tr-fatal-sparc-leon3-clock-initialization.h test-includes: - rtems/irq-extension.h - rtems/sysinit.h - bsp/fatal.h - bsp/leon3.h test-local-includes: -- tr-fatal-bsp-sparc-leon3-clock-initialization.h +- tr-fatal-sparc-leon3-clock-initialization.h test-setup: null test-stop: null test-support: | @@ -90,6 +90,6 @@ test-support: | RTEMS_SYSINIT_DEVICE_DRIVERS, RTEMS_SYSINIT_ORDER_FIRST ); -test-target: testsuites/validation/tr-fatal-bsp-sparc-leon3-clock-initialization.c +test-target: testsuites/validation/bsps/tr-fatal-sparc-leon3-clock-initialization.c test-teardown: null type: test-case diff --git a/spec/bsp/sparc/leon3/val/fatal-shutdown.yml b/spec/bsp/sparc/leon3/val/fatal-shutdown.yml index 839446cb..be71f7ab 100644 --- a/spec/bsp/sparc/leon3/val/fatal-shutdown.yml +++ b/spec/bsp/sparc/leon3/val/fatal-shutdown.yml @@ -133,6 +133,6 @@ test-support: | RTEMS_SYSINIT_DEVICE_DRIVERS, RTEMS_SYSINIT_ORDER_MIDDLE ); -test-target: testsuites/validation/tc-fatal-bsp-sparc-leon3-shutdown.c +test-target: testsuites/validation/bsps/tc-fatal-sparc-leon3-shutdown.c test-teardown: null type: test-case diff --git a/spec/bsp/sparc/leon3/val/gr712rc.yml b/spec/bsp/sparc/leon3/val/gr712rc.yml index abb2570c..ba497dd3 100644 --- a/spec/bsp/sparc/leon3/val/gr712rc.yml +++ b/spec/bsp/sparc/leon3/val/gr712rc.yml @@ -53,6 +53,6 @@ test-local-includes: test-setup: null test-stop: null test-support: null -test-target: testsuites/validation/tc-bsp-sparc-leon3-gr712rc.c +test-target: testsuites/validation/bsps/tc-sparc-gr712rc.c test-teardown: null type: test-case diff --git a/spec/testsuites/bsp-sparc-leon3-gr712rc.yml b/spec/testsuites/bsp-sparc-leon3-gr712rc.yml deleted file mode 100644 index 3ed72eba..00000000 --- a/spec/testsuites/bsp-sparc-leon3-gr712rc.yml +++ /dev/null @@ -1,18 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH & Co. KG -enabled-by: sparc/gr712rc -links: -- role: requirement-refinement - uid: validation -test-brief: | - This validation test suite contains BSP-specific test cases. -test-code: | - const char rtems_test_name[] = "${.:/test-suite-name}"; - - #include "ts-default.h" -test-description: null -test-includes: [] -test-local-includes: [] -test-target: testsuites/validation/ts-bsp-sparc-leon3-gr712rc.c -type: test-suite diff --git a/spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-boot.yml b/spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-boot.yml new file mode 100644 index 00000000..9c8a18b0 --- /dev/null +++ b/spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-boot.yml @@ -0,0 +1,27 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH & Co. KG +enabled-by: + and: + - RTEMS_SMP + - bsps/sparc/leon3 +links: +- role: requirement-refinement + uid: ../validation +test-brief: | + This validation test suite contains a test case which triggers a fatal error + during system initialization. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + #define FATAL_SYSINIT_RUN BspSparcLeon3ValFatalCacheSnoopingDisabledBoot_Run + + #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + + #include "ts-fatal-sysinit.h" +test-description: null +test-includes: [] +test-local-includes: +- tr-fatal-sparc-leon3-cache-snooping-disabled-boot.h +test-target: testsuites/validation/bsps/ts-fatal-sparc-leon3-cache-snooping-disabled-boot.c +type: test-suite diff --git a/spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-secondary.yml b/spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-secondary.yml new file mode 100644 index 00000000..33598eae --- /dev/null +++ b/spec/testsuites/bsps/fatal-sparc-leon3-cache-snooping-disabled-secondary.yml @@ -0,0 +1,30 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH & Co. KG +enabled-by: + and: + - RTEMS_SMP + - bsps/sparc/leon3 +links: +- role: requirement-refinement + uid: ../validation +test-brief: | + This validation test suite contains a test case which triggers a fatal error + during system initialization. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + #define FATAL_SYSINIT_RUN \ + BspSparcLeon3ValFatalCacheSnoopingDisabledSecondary_Run + + #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + + #define CONFIGURE_MAXIMUM_PROCESSORS 2 + + #include "ts-fatal-sysinit.h" +test-description: null +test-includes: [] +test-local-includes: +- tr-fatal-sparc-leon3-cache-snooping-disabled-secondary.h +test-target: testsuites/validation/bsps/ts-fatal-sparc-leon3-cache-snooping-disabled-secondary.c +type: test-suite diff --git a/spec/testsuites/bsps/fatal-sparc-leon3-clock-initialization.yml b/spec/testsuites/bsps/fatal-sparc-leon3-clock-initialization.yml new file mode 100644 index 00000000..a1a5643f --- /dev/null +++ b/spec/testsuites/bsps/fatal-sparc-leon3-clock-initialization.yml @@ -0,0 +1,24 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH & Co. KG +enabled-by: bsps/sparc/leon3 +links: +- role: requirement-refinement + uid: ../validation +test-brief: | + This validation test suite contains a test case which triggers a fatal error + during system initialization. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + #define FATAL_SYSINIT_RUN BspSparcLeon3ValFatalClockInitialization_Run + + #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER + + #include "ts-fatal-sysinit.h" +test-description: null +test-includes: [] +test-local-includes: +- tr-fatal-sparc-leon3-clock-initialization.h +test-target: testsuites/validation/bsps/ts-fatal-sparc-leon3-clock-initialization.c +type: test-suite diff --git a/spec/testsuites/bsps/fatal-sparc-leon3-shutdown.yml b/spec/testsuites/bsps/fatal-sparc-leon3-shutdown.yml new file mode 100644 index 00000000..352baa85 --- /dev/null +++ b/spec/testsuites/bsps/fatal-sparc-leon3-shutdown.yml @@ -0,0 +1,117 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021, 2022 embedded brains GmbH & Co. KG +enabled-by: + and: + - RTEMS_SMP + - bsps/sparc/leon3 +links: +- role: requirement-refinement + uid: ../validation +test-brief: | + This validation test suite provides an application configuration to perform a + shutdown. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + static char buffer[ 512 ]; + + static const T_action actions[] = { + T_report_hash_sha256 + }; + + static const T_config test_config = { + .name = rtems_test_name, + .buf = buffer, + .buf_size = sizeof( buffer ), + .putchar = rtems_put_char, + .verbosity = RTEMS_TEST_VERBOSITY, + .now = T_now_tick, + .allocate = T_memory_allocate, + .deallocate = T_memory_deallocate, + .action_count = T_ARRAY_SIZE( actions ), + .actions = actions + }; + + void __real__CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr code ); + + void __wrap__CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr code ); + + void __wrap__CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr code ) + { + int exit_code; + + T_register(); + exit_code = T_main( &test_config ); + + if ( exit_code == 0 ) { + rtems_test_end( rtems_test_name ); + } + + #if defined(RTEMS_GCOV_COVERAGE) + rtems_test_gcov_dump_info(); + #endif + __real__CPU_Fatal_halt( source, code ); + } + + #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER + + #define CONFIGURE_MAXIMUM_PROCESSORS 2 + + #include + + #define CONFIGURE_SCHEDULER_EDF_SMP + + #include + + RTEMS_SCHEDULER_EDF_SMP( a ); + + #define CONFIGURE_SCHEDULER_TABLE_ENTRIES \ + RTEMS_SCHEDULER_TABLE_EDF_SMP( a, TEST_SCHEDULER_A_NAME ) + + #define CONFIGURE_SCHEDULER_ASSIGNMENTS \ + RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY ), \ + RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY ) + + #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 0 + + #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 + + #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY + + #define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM + + #define CONFIGURE_IDLE_TASK_STORAGE_SIZE RTEMS_MINIMUM_STACK_SIZE + + #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION + + static void *ShutdownIdleBody( uintptr_t arg ) + { + if ( rtems_scheduler_get_processor() == 0 ) { + rtems_test_begin( rtems_test_name, TEST_STATE ); + rtems_fatal( RTEMS_FATAL_SOURCE_SMP, SMP_FATAL_SHUTDOWN ); + } + + return _CPU_Thread_Idle_body( arg ); + } + + #define CONFIGURE_IDLE_TASK_BODY ShutdownIdleBody + + #define CONFIGURE_INITIAL_EXTENSIONS { .fatal = FatalInitialExtension } + + #define CONFIGURE_INIT + + #include +test-description: null +test-includes: +- rtems.h +- rtems/bspIo.h +- rtems/test.h +- rtems/test-info.h +- rtems/testopts.h +- rtems/score/smpimpl.h +test-local-includes: +- ts-config.h +- tx-support.h +test-target: testsuites/validation/bsps/ts-fatal-sparc-leon3-shutdown.c +type: test-suite diff --git a/spec/testsuites/bsps/validation-bsp-0.yml b/spec/testsuites/bsps/validation-bsp-0.yml new file mode 100644 index 00000000..d2cb81e5 --- /dev/null +++ b/spec/testsuites/bsps/validation-bsp-0.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +copyrights: +- Copyright (C) 2021 embedded brains GmbH & Co. KG +enabled-by: bsps/sparc/leon3 +links: +- role: requirement-refinement + uid: ../validation +test-brief: | + This general purpose validation test suite provides enough resources to run + ${/glossary/target:/term}-specific tests. +test-code: | + const char rtems_test_name[] = "${.:/test-suite-name}"; + + #include "ts-default.h" +test-description: null +test-includes: [] +test-local-includes: [] +test-target: testsuites/validation/bsps/ts-validation-bsp-0.c +type: test-suite diff --git a/spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.yml b/spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.yml deleted file mode 100644 index 6bb278b2..00000000 --- a/spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.yml +++ /dev/null @@ -1,27 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH & Co. KG -enabled-by: - and: - - RTEMS_SMP - - bsps/sparc/leon3 -links: -- role: requirement-refinement - uid: validation -test-brief: | - This validation test suite contains a test case which triggers a fatal error - during system initialization. -test-code: | - const char rtems_test_name[] = "${.:/test-suite-name}"; - - #define FATAL_SYSINIT_RUN BspSparcLeon3ValFatalCacheSnoopingDisabledBoot_Run - - #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER - - #include "ts-fatal-sysinit.h" -test-description: null -test-includes: [] -test-local-includes: -- tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.h -test-target: testsuites/validation/ts-fatal-bsp-sparc-leon3-cache-snooping-disabled-boot.c -type: test-suite diff --git a/spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.yml b/spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.yml deleted file mode 100644 index d27dd6d5..00000000 --- a/spec/testsuites/fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.yml +++ /dev/null @@ -1,30 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH & Co. KG -enabled-by: - and: - - RTEMS_SMP - - bsps/sparc/leon3 -links: -- role: requirement-refinement - uid: validation -test-brief: | - This validation test suite contains a test case which triggers a fatal error - during system initialization. -test-code: | - const char rtems_test_name[] = "${.:/test-suite-name}"; - - #define FATAL_SYSINIT_RUN \ - BspSparcLeon3ValFatalCacheSnoopingDisabledSecondary_Run - - #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER - - #define CONFIGURE_MAXIMUM_PROCESSORS 2 - - #include "ts-fatal-sysinit.h" -test-description: null -test-includes: [] -test-local-includes: -- tr-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.h -test-target: testsuites/validation/ts-fatal-bsp-sparc-leon3-cache-snooping-disabled-secondary.c -type: test-suite diff --git a/spec/testsuites/fatal-bsp-sparc-leon3-clock-initialization.yml b/spec/testsuites/fatal-bsp-sparc-leon3-clock-initialization.yml deleted file mode 100644 index 968a8b54..00000000 --- a/spec/testsuites/fatal-bsp-sparc-leon3-clock-initialization.yml +++ /dev/null @@ -1,24 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH & Co. KG -enabled-by: bsps/sparc/leon3 -links: -- role: requirement-refinement - uid: validation -test-brief: | - This validation test suite contains a test case which triggers a fatal error - during system initialization. -test-code: | - const char rtems_test_name[] = "${.:/test-suite-name}"; - - #define FATAL_SYSINIT_RUN BspSparcLeon3ValFatalClockInitialization_Run - - #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER - - #include "ts-fatal-sysinit.h" -test-description: null -test-includes: [] -test-local-includes: -- tr-fatal-bsp-sparc-leon3-clock-initialization.h -test-target: testsuites/validation/ts-fatal-bsp-sparc-leon3-clock-initialization.c -type: test-suite diff --git a/spec/testsuites/fatal-bsp-sparc-leon3-shutdown.yml b/spec/testsuites/fatal-bsp-sparc-leon3-shutdown.yml deleted file mode 100644 index 8561dae4..00000000 --- a/spec/testsuites/fatal-bsp-sparc-leon3-shutdown.yml +++ /dev/null @@ -1,117 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021, 2022 embedded brains GmbH & Co. KG -enabled-by: - and: - - RTEMS_SMP - - bsps/sparc/leon3 -links: -- role: requirement-refinement - uid: validation -test-brief: | - This validation test suite provides an application configuration to perform a - shutdown. -test-code: | - const char rtems_test_name[] = "${.:/test-suite-name}"; - - static char buffer[ 512 ]; - - static const T_action actions[] = { - T_report_hash_sha256 - }; - - static const T_config test_config = { - .name = rtems_test_name, - .buf = buffer, - .buf_size = sizeof( buffer ), - .putchar = rtems_put_char, - .verbosity = RTEMS_TEST_VERBOSITY, - .now = T_now_tick, - .allocate = T_memory_allocate, - .deallocate = T_memory_deallocate, - .action_count = T_ARRAY_SIZE( actions ), - .actions = actions - }; - - void __real__CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr code ); - - void __wrap__CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr code ); - - void __wrap__CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr code ) - { - int exit_code; - - T_register(); - exit_code = T_main( &test_config ); - - if ( exit_code == 0 ) { - rtems_test_end( rtems_test_name ); - } - - #if defined(RTEMS_GCOV_COVERAGE) - rtems_test_gcov_dump_info(); - #endif - __real__CPU_Fatal_halt( source, code ); - } - - #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER - - #define CONFIGURE_MAXIMUM_PROCESSORS 2 - - #include - - #define CONFIGURE_SCHEDULER_EDF_SMP - - #include - - RTEMS_SCHEDULER_EDF_SMP( a ); - - #define CONFIGURE_SCHEDULER_TABLE_ENTRIES \ - RTEMS_SCHEDULER_TABLE_EDF_SMP( a, TEST_SCHEDULER_A_NAME ) - - #define CONFIGURE_SCHEDULER_ASSIGNMENTS \ - RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY ), \ - RTEMS_SCHEDULER_ASSIGN( 0, RTEMS_SCHEDULER_ASSIGN_PROCESSOR_MANDATORY ) - - #define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 0 - - #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1 - - #define CONFIGURE_DISABLE_NEWLIB_REENTRANCY - - #define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM - - #define CONFIGURE_IDLE_TASK_STORAGE_SIZE RTEMS_MINIMUM_STACK_SIZE - - #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION - - static void *ShutdownIdleBody( uintptr_t arg ) - { - if ( rtems_scheduler_get_processor() == 0 ) { - rtems_test_begin( rtems_test_name, TEST_STATE ); - rtems_fatal( RTEMS_FATAL_SOURCE_SMP, SMP_FATAL_SHUTDOWN ); - } - - return _CPU_Thread_Idle_body( arg ); - } - - #define CONFIGURE_IDLE_TASK_BODY ShutdownIdleBody - - #define CONFIGURE_INITIAL_EXTENSIONS { .fatal = FatalInitialExtension } - - #define CONFIGURE_INIT - - #include -test-description: null -test-includes: -- rtems.h -- rtems/bspIo.h -- rtems/test.h -- rtems/test-info.h -- rtems/testopts.h -- rtems/score/smpimpl.h -test-local-includes: -- ts-config.h -- tx-support.h -test-target: testsuites/validation/ts-fatal-bsp-sparc-leon3-shutdown.c -type: test-suite diff --git a/spec/testsuites/validation-dev-0.yml b/spec/testsuites/validation-dev-0.yml deleted file mode 100644 index 54fcb8cf..00000000 --- a/spec/testsuites/validation-dev-0.yml +++ /dev/null @@ -1,19 +0,0 @@ -SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause -copyrights: -- Copyright (C) 2021 embedded brains GmbH & Co. KG -enabled-by: true -links: -- role: requirement-refinement - uid: validation -test-brief: | - This general purpose validation test suite provides enough resources to run - ${/glossary/target:/term}-specific tests. -test-code: | - const char rtems_test_name[] = "${.:/test-suite-name}"; - - #include "ts-default.h" -test-description: null -test-includes: [] -test-local-includes: [] -test-target: testsuites/validation/ts-validation-dev-0.c -type: test-suite -- cgit v1.2.3