RTEMS 6.1-rc5
Loading...
Searching...
No Matches
ts-acfg.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/*
13 * Copyright (C) 2021 embedded brains GmbH & Co. KG
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37#include <rtems.h>
38#include <rtems/bspIo.h>
39#include <rtems/test.h>
40#include <rtems/test-info.h>
41#include <rtems/testopts.h>
42
43static char buffer[ 512 ];
44
45static const T_action actions[] = {
46 T_report_hash_sha256
47};
48
49static const T_config test_config = {
50 .name = rtems_test_name,
51 .buf = buffer,
52 .buf_size = sizeof( buffer ),
53 .putchar = rtems_put_char,
54 .verbosity = RTEMS_TEST_VERBOSITY,
55 .now = T_now_tick,
56 .allocate = T_memory_allocate,
57 .deallocate = T_memory_deallocate,
58 .action_count = T_ARRAY_SIZE( actions ),
59 .actions = actions
60};
61
62#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
63
64#define CONFIGURE_MAXIMUM_FILE_DESCRIPTORS 0
65
66#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY
67
68#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM
69
70RTEMS_NO_RETURN static void RunTestSuite( void )
71{
72 int exit_code;
73
74 rtems_test_begin( rtems_test_name, TEST_STATE );
75 T_register();
76 exit_code = T_main( &test_config );
77
78 if ( exit_code == 0 ) {
80 }
81
82 rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, (uint32_t) exit_code );
83}
This header file provides the kernel character input/output support API.
#define RTEMS_NO_RETURN
Tells the compiler in a function declaration that this function does not return.
Definition: basedefs.h:386
void rtems_put_char(int c, void *unused)
Puts the character using rtems_putc()
Definition: rtems_put_char.c:42
@ RTEMS_FATAL_SOURCE_EXIT
Fatal source of exit().
Definition: interr.h:100
const char rtems_test_name[]
Each test must define a test name string.
Definition: init.c:6899
int rtems_test_begin(const char *name, const RTEMS_TEST_STATE state)
Prints a begin of test message using printf().
Definition: testbeginend.c:56
int rtems_test_end(const char *name)
Prints an end of test message using printf().
Definition: testbeginend.c:93
This header file defines the RTEMS Classic API.
Definition: test.h:2295
This header file provides interfaces of the RTEMS Test Support.
This header file provides interfaces of the RTEMS Test Framework.