diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-09-19 10:10:35 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-09-19 10:10:35 +0000 |
commit | 280e0feed33d386b39d3f459deb62e29eb5d3c42 (patch) | |
tree | a36e936774978ca3eae55ccb4f49946073243c8a /test/nil | |
parent | 3d22ee98c839d75179518fd66d03706f48771a8b (diff) | |
download | ChibiOS-280e0feed33d386b39d3f459deb62e29eb5d3c42.tar.gz ChibiOS-280e0feed33d386b39d3f459deb62e29eb5d3c42.tar.bz2 ChibiOS-280e0feed33d386b39d3f459deb62e29eb5d3c42.zip |
Improved test code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10641 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil')
-rw-r--r-- | test/nil/configuration.xml | 27 | ||||
-rw-r--r-- | test/nil/source/test/test_root.c | 20 | ||||
-rw-r--r-- | test/nil/source/test/test_root.h | 5 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_001.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_001.h | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_002.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_002.h | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_003.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_003.h | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_004.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_004.h | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_005.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_005.h | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_006.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_006.h | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_007.c | 2 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_007.h | 2 |
17 files changed, 61 insertions, 19 deletions
diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index 365d142b7..42c265864 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -11,7 +11,7 @@ <description>
<copyright>
<value><![CDATA[/* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -33,15 +33,36 @@ <global_data_and_code>
<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); - +
+void test_print_port_info(void); THD_FUNCTION(test_support, arg);]]></value>
</global_definitions>
<global_code>
- <value><![CDATA[semaphore_t gsem1, gsem2; + <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; thread_reference_t gtr1; /* diff --git a/test/nil/source/test/test_root.c b/test/nil/source/test/test_root.c index a41bb56bc..6006e4e2d 100644 --- a/test/nil/source/test/test_root.c +++ b/test/nil/source/test/test_root.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -72,6 +72,24 @@ const testcase_t * const *test_suite[] = { /* Shared code. */
/*===========================================================================*/
+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;
thread_reference_t gtr1;
diff --git a/test/nil/source/test/test_root.h b/test/nil/source/test/test_root.h index a5b5d6958..39c680871 100644 --- a/test/nil/source/test/test_root.h +++ b/test/nil/source/test/test_root.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -51,10 +51,13 @@ extern "C" { #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);
+void test_print_port_info(void);
THD_FUNCTION(test_support, arg);
#endif /* !defined(__DOXYGEN__) */
diff --git a/test/nil/source/test/test_sequence_001.c b/test/nil/source/test/test_sequence_001.c index a770747ed..f20e3a3fd 100644 --- a/test/nil/source/test/test_sequence_001.c +++ b/test/nil/source/test/test_sequence_001.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_001.h b/test/nil/source/test/test_sequence_001.h index a19faca0f..9684d47f6 100644 --- a/test/nil/source/test/test_sequence_001.h +++ b/test/nil/source/test/test_sequence_001.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_002.c b/test/nil/source/test/test_sequence_002.c index 9e72d707d..db5aff647 100644 --- a/test/nil/source/test/test_sequence_002.c +++ b/test/nil/source/test/test_sequence_002.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_002.h b/test/nil/source/test/test_sequence_002.h index 9925c61e7..190f9ca46 100644 --- a/test/nil/source/test/test_sequence_002.h +++ b/test/nil/source/test/test_sequence_002.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_003.c b/test/nil/source/test/test_sequence_003.c index 22e233620..48159347d 100644 --- a/test/nil/source/test/test_sequence_003.c +++ b/test/nil/source/test/test_sequence_003.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_003.h b/test/nil/source/test/test_sequence_003.h index 86169757a..2de592a2f 100644 --- a/test/nil/source/test/test_sequence_003.h +++ b/test/nil/source/test/test_sequence_003.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_004.c b/test/nil/source/test/test_sequence_004.c index 52e3e88d0..0b9c8bc96 100644 --- a/test/nil/source/test/test_sequence_004.c +++ b/test/nil/source/test/test_sequence_004.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_004.h b/test/nil/source/test/test_sequence_004.h index 8502f9865..19d8c1bd7 100644 --- a/test/nil/source/test/test_sequence_004.h +++ b/test/nil/source/test/test_sequence_004.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_005.c b/test/nil/source/test/test_sequence_005.c index 70954f1d1..32307b284 100644 --- a/test/nil/source/test/test_sequence_005.c +++ b/test/nil/source/test/test_sequence_005.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_005.h b/test/nil/source/test/test_sequence_005.h index 8312381c3..d2df83307 100644 --- a/test/nil/source/test/test_sequence_005.h +++ b/test/nil/source/test/test_sequence_005.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_006.c b/test/nil/source/test/test_sequence_006.c index dad464e6c..759ceae52 100644 --- a/test/nil/source/test/test_sequence_006.c +++ b/test/nil/source/test/test_sequence_006.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_006.h b/test/nil/source/test/test_sequence_006.h index eadcf9c8d..959689dc1 100644 --- a/test/nil/source/test/test_sequence_006.h +++ b/test/nil/source/test/test_sequence_006.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_007.c b/test/nil/source/test/test_sequence_007.c index 4cd0c804e..4e5908ab0 100644 --- a/test/nil/source/test/test_sequence_007.c +++ b/test/nil/source/test/test_sequence_007.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nil/source/test/test_sequence_007.h b/test/nil/source/test/test_sequence_007.h index 18b68a556..b0b926223 100644 --- a/test/nil/source/test/test_sequence_007.h +++ b/test/nil/source/test/test_sequence_007.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
|