diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-16 17:25:58 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-16 17:25:58 +0000 |
commit | 3aafb1ec45b251b45a6a52a7492b649b1ee5c41d (patch) | |
tree | 234a06a1cbaf2f90ff15bdd32ede3814e4efecbb /tools/ftl/processors/unittest/test/test_root.h.ftl | |
parent | eb6b6685f09fbc4822492a1db9eaa367f46c657c (diff) | |
download | ChibiOS-3aafb1ec45b251b45a6a52a7492b649b1ee5c41d.tar.gz ChibiOS-3aafb1ec45b251b45a6a52a7492b649b1ee5c41d.tar.bz2 ChibiOS-3aafb1ec45b251b45a6a52a7492b649b1ee5c41d.zip |
Updated templates for multi-testing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10836 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/ftl/processors/unittest/test/test_root.h.ftl')
-rwxr-xr-x | tools/ftl/processors/unittest/test/test_root.h.ftl | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/ftl/processors/unittest/test/test_root.h.ftl b/tools/ftl/processors/unittest/test/test_root.h.ftl index 930a676cc..8ec0a1c9d 100755 --- a/tools/ftl/processors/unittest/test/test_root.h.ftl +++ b/tools/ftl/processors/unittest/test/test_root.h.ftl @@ -1,25 +1,27 @@ [#ftl]
[#import "/@ftllibs/libutils.ftl" as utils /]
-[@pp.dropOutputFile /]
-[@pp.changeOutputFile name="test_root.h" /]
[#list conf.*.application.instances.instance as inst]
[#if inst.@id?string == "org.chibios.spc5.components.portable.chibios_unitary_tests_engine"]
[#assign instance = inst /]
[#break]
[/#if]
[/#list]
+[#assign prefix_lower = instance.global_data_and_code.code_prefix.value[0]?trim?lower_case /]
+[#assign prefix_upper = instance.global_data_and_code.code_prefix.value[0]?trim?upper_case /]
+[@pp.dropOutputFile /]
+[@pp.changeOutputFile name=prefix_lower+"test_root.h" /]
[@utils.EmitIndentedCCode "" 2 instance.description.copyright.value[0] /]
/**
- * @file test_root.h
+ * @file ${prefix_lower}test_root.h
* @brief Test Suite root structures header.
*/
-#ifndef TEST_ROOT_H
-#define TEST_ROOT_H
+#ifndef ${prefix_upper}TEST_ROOT_H
+#define ${prefix_upper}TEST_ROOT_H
[#list instance.sequences.sequence as sequence]
-#include "test_sequence_${(sequence_index + 1)?string("000")}.h"
+#include "${prefix_lower}test_sequence_${(sequence_index + 1)?string("000")}.h"
[/#list]
#if !defined(__DOXYGEN__)
@@ -28,7 +30,7 @@ /* External declarations. */
/*===========================================================================*/
-extern const testcase_t * const *test_suite[];
+extern const testcase_t * const *${prefix_lower}test_suite[];
#ifdef __cplusplus
extern "C" {
@@ -47,4 +49,4 @@ extern "C" { [/#if]
#endif /* !defined(__DOXYGEN__) */
-#endif /* TEST_ROOT_H */
+#endif /* ${prefix_upper}TEST_ROOT_H */
|