git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14520 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-06-09 09:46:21 +00:00
parent 592ee92ee5
commit 09ed00f52b
3 changed files with 166 additions and 0 deletions

View File

@ -0,0 +1,15 @@
sourceRoot: ../../tools/ftl/processors/unittest
outputRoot: source
dataRoot: .
freemarkerLinks: {
ftllibs: ../../tools/ftl/libs
}
data : {
xml:xml (
configuration.xml
{
}
)
}

View File

@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8"?>
<SPC5-Config version="1.0.0">
<application name="ChibiOS/NIL Test Suite" version="1.0.0" standalone="true" locked="false">
<description>Test Specification for ChibiOS/NIL.</description>
<component id="org.chibios.spc5.components.portable.generic_startup">
<component id="org.chibios.spc5.components.portable.chibios_unitary_tests_engine" />
</component>
<instances>
<instance locked="false" id="org.chibios.spc5.components.portable.generic_startup" />
<instance locked="false" id="org.chibios.spc5.components.portable.chibios_unitary_tests_engine">
<description>
<brief>
<value>ChibiOS/NIL Test Suite.</value>
</brief>
<copyright>
<value><![CDATA[/*
ChibiOS - Copyright (C) 2006..2018 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/]]></value>
</copyright>
<introduction>
<value>Test suite for core benchmarks. The purpose of this suite is to perform general benchmarks in order to assess performance of cores and/or compilers.</value>
</introduction>
</description>
<global_data_and_code>
<code_prefix>
<value>corebmk</value>
</code_prefix>
<global_definitions>
<value><![CDATA[
/**/
]]></value>
</global_definitions>
<global_code>
<value><![CDATA[
/**/
]]></value>
</global_code>
</global_data_and_code>
<sequences>
<sequence>
<type index="0">
<value>Internal Tests</value>
</type>
<brief>
<value>Information.</value>
</brief>
<description>
<value>This sequence reports configuration and version information about execution environment.</value>
</description>
<condition>
<value />
</condition>
<shared_code>
<value><![CDATA[
#include "ch.h"
]]></value>
</shared_code>
<cases>
<case>
<brief>
<value>Environment Info.</value>
</brief>
<description>
<value>Environment-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>Architecture and Compiler information.</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>
</cases>
</sequence>
</sequences>
</instance>
</instances>
<exportedFeatures />
</application>
</SPC5-Config>

View File

@ -0,0 +1,6 @@
# List of all the core benchmarks test files.
TESTSRC += ${CHIBIOS}/test/core_benchmarks/source/test/corebmk_test_root.c \
${CHIBIOS}/test/core_benchmarks/source/test/corebmk_test_sequence_001.c
# Required include directories
TESTINC += ${CHIBIOS}/test/test/source/test