From 6b5734051a16fe2942fd2e970982ab8f111355de Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 19 Aug 2020 12:31:01 +0200 Subject: validation: Add automatically generated warning --- rtemsspec/tests/test_validation.py | 63 ++++++++++++++++++++++++++++++++++++++ rtemsspec/validation.py | 2 ++ 2 files changed, 65 insertions(+) diff --git a/rtemsspec/tests/test_validation.py b/rtemsspec/tests/test_validation.py index c3cf2233..9aaafffb 100644 --- a/rtemsspec/tests/test_validation.py +++ b/rtemsspec/tests/test_validation.py @@ -77,6 +77,15 @@ def test_validation(tmpdir): * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -140,6 +149,15 @@ def test_validation(tmpdir): * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -924,6 +942,15 @@ T_TEST_CASE_FIXTURE( Tc2, &test_case_2_fixture ) * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -1088,6 +1115,15 @@ void Tc6_Run( void ) * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifndef _TC5_H #define _TC5_H @@ -1161,6 +1197,15 @@ void Tc5_Run( int *a, int b, int *c ); * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifndef _TC6_H #define _TC6_H @@ -1222,6 +1267,15 @@ void Tc6_Run( void ); * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifndef _ACTION2_H #define _ACTION2_H @@ -1320,6 +1374,15 @@ void Action2_Run( int *a, int b, int *c ); * POSSIBILITY OF SUCH DAMAGE. */ +/* + * This file was automatically generated. Do not edit it manually. + * Please have a look at + * + * https://docs.rtems.org/branches/master/eng/req/howto.html + * + * for information how to maintain and re-generate this file. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py index 57cfb4c8..a9b38501 100644 --- a/rtemsspec/validation.py +++ b/rtemsspec/validation.py @@ -207,6 +207,7 @@ class _TestItem: with content.file_block(): content.add_ingroup([self.group_identifier]) content.add_copyrights_and_licenses() + content.add_automatically_generated_warning() with content.header_guard(os.path.basename(header["target"])): content.add_includes(list(map(CInclude, header["includes"]))) content.add_includes(list(map(CInclude, header["local-includes"])), @@ -746,6 +747,7 @@ class _SourceFile: _add_ingroup(content, self._test_suites) _add_ingroup(content, self._test_cases) content.add_copyrights_and_licenses() + content.add_automatically_generated_warning() content.add_have_config() content.add_includes(includes) content.add_includes(local_includes, local=True) -- cgit v1.2.3