oslib_test_root.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. /**
  14. * @mainpage Test Suite Specification
  15. * Test suite for ChibiOS OS Library. The purpose of this suite is to
  16. * perform unit tests on the library modules and to converge to 100%
  17. * code coverage through successive improvements.
  18. *
  19. * <h2>Test Sequences</h2>
  20. * - @subpage oslib_test_sequence_001
  21. * - @subpage oslib_test_sequence_002
  22. * - @subpage oslib_test_sequence_003
  23. * - @subpage oslib_test_sequence_004
  24. * - @subpage oslib_test_sequence_005
  25. * .
  26. */
  27. /**
  28. * @file oslib_test_root.c
  29. * @brief Test Suite root structures code.
  30. */
  31. #include "hal.h"
  32. #include "oslib_test_root.h"
  33. #if !defined(__DOXYGEN__)
  34. /*===========================================================================*/
  35. /* Module exported variables. */
  36. /*===========================================================================*/
  37. /**
  38. * @brief Array of test sequences.
  39. */
  40. const testsequence_t * const oslib_test_suite_array[] = {
  41. #if (CH_CFG_USE_MAILBOXES) || defined(__DOXYGEN__)
  42. &oslib_test_sequence_001,
  43. #endif
  44. #if (CH_CFG_USE_PIPES) || defined(__DOXYGEN__)
  45. &oslib_test_sequence_002,
  46. #endif
  47. #if (CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__)
  48. &oslib_test_sequence_003,
  49. #endif
  50. #if (CH_CFG_USE_HEAP) || defined(__DOXYGEN__)
  51. &oslib_test_sequence_004,
  52. #endif
  53. #if ((CH_CFG_USE_FACTORY == TRUE) && (CH_CFG_USE_MEMPOOLS == TRUE) && (CH_CFG_USE_HEAP == TRUE)) || defined(__DOXYGEN__)
  54. &oslib_test_sequence_005,
  55. #endif
  56. NULL
  57. };
  58. /**
  59. * @brief Test suite root structure.
  60. */
  61. const testsuite_t oslib_test_suite = {
  62. "ChibiOS OS Library Test Suite",
  63. oslib_test_suite_array
  64. };
  65. /*===========================================================================*/
  66. /* Shared code. */
  67. /*===========================================================================*/
  68. #endif /* !defined(__DOXYGEN__) */