source: rtems/testsuites/benchmarks/dhrystone/init.c @ 8c1f4064

Last change on this file since 8c1f4064 was 8c1f4064, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 2, 2017 at 12:56:12 PM

tests: Use printf() instead of fprintf()

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 * Copyright (c) 2017 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifdef HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include "tmacros.h"
20
21const char rtems_test_name[] = "DHRYSTONE";
22
23int main(int argc, char **argv);
24
25static void Init(rtems_task_argument arg)
26{
27  char *argv[] = {
28    "dhrystone",
29    "1000000",
30    NULL
31  };
32
33  TEST_BEGIN();
34
35  rtems_print_printer_fprintf_putc(&rtems_test_printer);
36  main(2, argv);
37
38  TEST_END();
39  rtems_test_exit(0);
40}
41
42#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
43#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
44
45#define CONFIGURE_MAXIMUM_TASKS 1
46
47#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
48
49#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
50
51#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
52
53#define CONFIGURE_INIT
54
55#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.