From 2d8802b51976e3c3cc1b180962ee30daf2fe2629 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 26 Sep 2020 11:53:07 +0200 Subject: tests: Add and use Add the build option RTEMS_TEST_VERBOSITY to control the verbosity of test suites using the RTEMS Test Framework. --- spec/build/testsuites/optverbosity.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 spec/build/testsuites/optverbosity.yml (limited to 'spec/build/testsuites/optverbosity.yml') diff --git a/spec/build/testsuites/optverbosity.yml b/spec/build/testsuites/optverbosity.yml new file mode 100644 index 0000000000..0822caf3c7 --- /dev/null +++ b/spec/build/testsuites/optverbosity.yml @@ -0,0 +1,34 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-string: null +- script: | + verbosities = { + "Verbose": "T_VERBOSE", + "Normal": "T_NORMAL", + "Quiet": "T_QUIET", + } + name = self.data["name"] + try: + conf.define(name, verbosities[value], quote=False) + except KeyError: + conf.fatal("The value of {} shall be one of {}".format( + name, verbosities.keys())) +build-type: option +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: Normal +default-by-variant: [] +description: | + Sets the test verbosity of the RTEMS Test Framework. Valid values are + "Verbose", "Normal", and "Quiet". For normal tests runs you can use a + verbosity of "Normal". If you need a more detailed output, then you can set + it to "Verbose". For example, in case a regression ocurred. Reducing the + verbosity level can significantly reduce the test duration especially on + targets with a slow serial output device. All verbosity levels produce + enough output to notice failed test cases. In particular, the begin and end + of test information is not affected by the verbosity level. +enabled-by: true +format: '{}' +links: [] +name: RTEMS_TEST_VERBOSITY +type: build -- cgit v1.2.3