diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-10 14:41:27 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-10 14:41:27 +0000 |
commit | 1036f4a853e2c7775289e431a58653d73561e7cc (patch) | |
tree | 97c6698ba2e77f08d9da969957871477a319c827 /test/nil/configuration.xml | |
parent | d430fa4e4fcad28e4ff9952f9d8139e683ddf278 (diff) | |
download | ChibiOS-1036f4a853e2c7775289e431a58653d73561e7cc.tar.gz ChibiOS-1036f4a853e2c7775289e431a58653d73561e7cc.tar.bz2 ChibiOS-1036f4a853e2c7775289e431a58653d73561e7cc.zip |
Test improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11139 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil/configuration.xml')
-rw-r--r-- | test/nil/configuration.xml | 158 |
1 files changed, 115 insertions, 43 deletions
diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index 3ed8e5892..45d5a9841 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -40,8 +40,6 @@ <global_definitions>
<value><![CDATA[#define TEST_SUITE_NAME "ChibiOS/NIL Test Suite" -#define TEST_REPORT_HOOK_HEADER test_print_port_info(); - extern semaphore_t gsem1, gsem2; extern thread_reference_t gtr1; extern THD_WORKING_AREA(wa_test_support, 128); @@ -50,25 +48,7 @@ void test_print_port_info(void); THD_FUNCTION(test_support, arg);]]></value>
</global_definitions>
<global_code>
- <value><![CDATA[void test_print_port_info(void) { - -#ifdef PORT_COMPILER_NAME - test_print("*** Compiler: "); - test_println(PORT_COMPILER_NAME); -#endif - test_print("*** Architecture: "); - test_println(PORT_ARCHITECTURE_NAME); -#ifdef PORT_CORE_VARIANT_NAME - test_print("*** Core Variant: "); - test_println(PORT_CORE_VARIANT_NAME); -#endif -#ifdef PORT_INFO - test_print("*** Port Info: "); - test_println(PORT_INFO); -#endif -} - -semaphore_t gsem1, gsem2; + <value><![CDATA[semaphore_t gsem1, gsem2; thread_reference_t gtr1; /* @@ -123,6 +103,71 @@ THD_FUNCTION(test_support, arg) { <cases>
<case>
<brief>
+ <value>Port Info.</value>
+ </brief>
+ <description>
+ <value>Port-related info are reported.</value>
+ </description>
+ <condition>
+ <value />
+ </condition>
+ <various_code>
+ <setup_code>
+ <value />
+ </setup_code>
+ <teardown_code>
+ <value />
+ </teardown_code>
+ <local_variables>
+ <value />
+ </local_variables>
+ </various_code>
+ <steps>
+ <step>
+ <description>
+ <value>Prints the version string.</value>
+ </description>
+ <tags>
+ <value />
+ </tags>
+ <code>
+ <value><![CDATA[#if defined(PORT_ARCHITECTURE_NAME)
+test_print("--- Architecture: ");
+test_println(PORT_ARCHITECTURE_NAME);
+#endif
+#if defined(PORT_CORE_VARIANT_NAME)
+test_print("--- Core Variant: ");
+test_println(PORT_CORE_VARIANT_NAME);
+#endif
+#if defined(PORT_COMPILER_NAME)
+test_print("--- Compiler: ");
+test_println(PORT_COMPILER_NAME);
+#endif
+#if defined(PORT_INFO)
+test_print("--- Port Info: ");
+test_println(PORT_INFO);
+#endif
+#if defined(PORT_NATURAL_ALIGN)
+test_print("--- Natural alignment: ");
+test_printn(PORT_NATURAL_ALIGN);
+test_println("");
+#endif
+#if defined(PORT_STACK_ALIGN)
+test_print("--- Stack alignment: ");
+test_printn(PORT_STACK_ALIGN);
+test_println("");
+#endif
+#if defined(PORT_WORKING_AREA_ALIGN)
+test_print("--- Working area alignment: ");
+test_printn(PORT_WORKING_AREA_ALIGN);
+test_println("");
+#endif]]></value>
+ </code>
+ </step>
+ </steps>
+ </case>
+ <case>
+ <brief>
<value>Kernel Info.</value>
</brief>
<description>
@@ -151,19 +196,19 @@ THD_FUNCTION(test_support, arg) { <value />
</tags>
<code>
- <value><![CDATA[test_println("--- Product: ChibiOS/NIL"); -test_print("--- Stable Flag: "); + <value><![CDATA[test_println("--- Product: ChibiOS/NIL"); +test_print("--- Stable Flag: "); test_printn(CH_KERNEL_STABLE); test_println(""); -test_print("--- Version String: "); +test_print("--- Version String: "); test_println(CH_KERNEL_VERSION); -test_print("--- Major Number: "); +test_print("--- Major Number: "); test_printn(CH_KERNEL_MAJOR); test_println(""); -test_print("--- Minor Number: "); +test_print("--- Minor Number: "); test_printn(CH_KERNEL_MINOR); test_println(""); -test_print("--- Patch Number: "); +test_print("--- Patch Number: "); test_printn(CH_KERNEL_PATCH); test_println("");]]></value>
</code>
@@ -200,52 +245,79 @@ test_println("");]]></value> <value />
</tags>
<code>
- <value><![CDATA[test_print("--- CH_CFG_NUM_THREADS: "); + <value><![CDATA[test_print("--- CH_CFG_NUM_THREADS: "); test_printn(CH_CFG_NUM_THREADS); test_println(""); -test_print("--- CH_CFG_ST_RESOLUTION: "); +test_print("--- CH_CFG_ST_RESOLUTION: "); test_printn(CH_CFG_ST_RESOLUTION); test_println(""); -test_print("--- CH_CFG_ST_FREQUENCY: "); +test_print("--- CH_CFG_ST_FREQUENCY: "); test_printn(CH_CFG_ST_FREQUENCY); test_println(""); -test_print("--- CH_CFG_ST_TIMEDELTA: "); +test_print("--- CH_CFG_ST_TIMEDELTA: "); test_printn(CH_CFG_ST_TIMEDELTA); test_println(""); -test_print("--- CH_CFG_USE_SEMAPHORES: "); +test_print("--- CH_CFG_USE_SEMAPHORES: "); test_printn(CH_CFG_USE_SEMAPHORES); test_println(""); -test_print("--- CH_CFG_USE_MUTEXES: "); +test_print("--- CH_CFG_USE_MUTEXES: "); test_printn(CH_CFG_USE_MUTEXES); test_println(""); -test_print("--- CH_CFG_USE_EVENTS: "); +test_print("--- CH_CFG_USE_EVENTS: "); test_printn(CH_CFG_USE_EVENTS); test_println(""); -test_print("--- CH_CFG_USE_MAILBOXES: "); +test_print("--- CH_CFG_USE_MAILBOXES: "); test_printn(CH_CFG_USE_MAILBOXES); test_println(""); -test_print("--- CH_CFG_USE_MEMCORE: "); +test_print("--- CH_CFG_USE_MEMCORE: "); test_printn(CH_CFG_USE_MEMCORE); test_println(""); -test_print("--- CH_CFG_USE_HEAP: "); +test_print("--- CH_CFG_USE_HEAP: "); test_printn(CH_CFG_USE_HEAP); test_println(""); -test_print("--- CH_CFG_USE_MEMPOOLS: "); +test_print("--- CH_CFG_USE_MEMPOOLS: "); test_printn(CH_CFG_USE_MEMPOOLS); test_println(""); -test_print("--- CH_DBG_STATISTICS: "); +test_print("--- CH_CFG_USE_OBJ_FIFOS: ");
+test_printn(CH_CFG_USE_OBJ_FIFOS);
+test_println("");
+test_print("--- CH_CFG_MEMCORE_SIZE: ");
+test_printn(CH_CFG_MEMCORE_SIZE);
+test_println("");
+test_print("--- CH_CFG_USE_FACTORY: ");
+test_printn(CH_CFG_USE_FACTORY);
+test_println("");
+test_print("--- CH_CFG_FACTORY_MAX_NAMES_LENGTH: ");
+test_printn(CH_CFG_FACTORY_MAX_NAMES_LENGTH);
+test_println("");
+test_print("--- CH_CFG_FACTORY_OBJECTS_REGISTRY: ");
+test_printn(CH_CFG_FACTORY_OBJECTS_REGISTRY);
+test_println("");
+test_print("--- CH_CFG_FACTORY_GENERIC_BUFFERS: ");
+test_printn(CH_CFG_FACTORY_GENERIC_BUFFERS);
+test_println("");
+test_print("--- CH_CFG_FACTORY_SEMAPHORES: ");
+test_printn(CH_CFG_FACTORY_SEMAPHORES);
+test_println("");
+test_print("--- CH_CFG_FACTORY_MAILBOXES: ");
+test_printn(CH_CFG_FACTORY_MAILBOXES);
+test_println("");
+test_print("--- CH_CFG_FACTORY_OBJ_FIFOS: ");
+test_printn(CH_CFG_FACTORY_OBJ_FIFOS);
+test_println("");
+test_print("--- CH_DBG_STATISTICS: "); test_printn(CH_DBG_STATISTICS); test_println(""); -test_print("--- CH_DBG_SYSTEM_STATE_CHECK: "); +test_print("--- CH_DBG_SYSTEM_STATE_CHECK: "); test_printn(CH_DBG_SYSTEM_STATE_CHECK); test_println(""); -test_print("--- CH_DBG_ENABLE_CHECKS: "); +test_print("--- CH_DBG_ENABLE_CHECKS: "); test_printn(CH_DBG_ENABLE_CHECKS); test_println(""); -test_print("--- CH_DBG_ENABLE_ASSERTS: "); +test_print("--- CH_DBG_ENABLE_ASSERTS: "); test_printn(CH_DBG_ENABLE_ASSERTS); test_println(""); -test_print("--- CH_DBG_ENABLE_STACK_CHECK: "); +test_print("--- CH_DBG_ENABLE_STACK_CHECK: "); test_printn(CH_DBG_ENABLE_STACK_CHECK); test_println("");]]></value>
</code>
|