aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ftl/processors/unittest/test/test_root.c.ftl
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-10-16 18:58:50 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-10-16 18:58:50 +0000
commit734aea5b10f4d7470d29c07ae51fbd9d9b588205 (patch)
treeabe9d3be9dd9cecdf0d6dcb96863b3378742e547 /tools/ftl/processors/unittest/test/test_root.c.ftl
parent3aafb1ec45b251b45a6a52a7492b649b1ee5c41d (diff)
downloadChibiOS-734aea5b10f4d7470d29c07ae51fbd9d9b588205.tar.gz
ChibiOS-734aea5b10f4d7470d29c07ae51fbd9d9b588205.tar.bz2
ChibiOS-734aea5b10f4d7470d29c07ae51fbd9d9b588205.zip
Enhanced test system, not complete yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10837 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/ftl/processors/unittest/test/test_root.c.ftl')
-rwxr-xr-xtools/ftl/processors/unittest/test/test_root.c.ftl14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/ftl/processors/unittest/test/test_root.c.ftl b/tools/ftl/processors/unittest/test/test_root.c.ftl
index b92883a55..7970a136c 100755
--- a/tools/ftl/processors/unittest/test/test_root.c.ftl
+++ b/tools/ftl/processors/unittest/test/test_root.c.ftl
@@ -50,14 +50,14 @@
/*===========================================================================*/
/**
- * @brief Array of all the test sequences.
+ * @brief Array of test sequences.
*/
-const testcase_t * const *${prefix_lower}test_suite[] = {
+const testsequence_t * const ${prefix_lower}test_suite_array[] = {
[#list instance.sequences.sequence as sequence]
[#if sequence.condition.value[0]?trim?length > 0]
#if (${sequence.condition.value[0]}) || defined(__DOXYGEN__)
[/#if]
- ${prefix_lower}test_sequence_${(sequence_index + 1)?string("000")},
+ &${prefix_lower}test_sequence_${(sequence_index + 1)?string("000")},
[#if sequence.condition.value[0]?trim?length > 0]
#endif
[/#if]
@@ -65,6 +65,14 @@ const testcase_t * const *${prefix_lower}test_suite[] = {
NULL
};
+/**
+ * @brief Test suite root structure.
+ */
+const testsuite_t ${prefix_lower}test_suite = {
+ NULL,
+ ${prefix_lower}test_suite_array
+};
+
/*===========================================================================*/
/* Shared code. */
/*===========================================================================*/