RTEMS Tier Allocations.

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 27 13:21:40 UTC 2017


Hello Chris,

thanks for your hints. This ser2net and the IO via telnet is really 
nice. I am now able to run the tests on a board with U-Boot.

U-Boot has a "tftpdstport" option. Maybe this can be used to avoid 
running the rtems-test as root.

There is a problem on some tests with mixed output via BSP_output_char 
and the normal console driver. We have to fix all tests to use 
BSP_output_char only. For example:

]         should be:   13
] Int_3_Loc:           7
]         should be:   7
] Enum_Loc:            1
]         should be:   1
] Str_1_Loc:           DHRYSTONE PROGRAM, 1'ST STRING
]         should be:   DHRYSTONE PROGRAM, 1'ST STRING
] Str_2_Loc:           DHRYSTONE PROGRAM, 2'ND STRING
]         should be:   DHRYSTONE PROGRAM, 2'ND STRING
]
] Microseconds for one run through Dhrystone:    0.5
] Dhrystones per Second:                      1841407.
] 8* *
] *D MEIPSN:D    O  F   T E S T     D H R  Y S   T O N  E   *  * *
]
]  1048.04

The following patch

diff --git a/testsuites/benchmarks/dhrystone/dhry.h 
b/testsuites/benchmarks/dhrystone/dhry.h
index 4eaceebe78..6e8daed32c 100644
--- a/testsuites/benchmarks/dhrystone/dhry.h
+++ b/testsuites/benchmarks/dhrystone/dhry.h
@@ -386,6 +386,7 @@
  /* General definitions: */

  #include <stdio.h>
+#include <tmacros.h>
                  /* for strcpy, strcmp */

  #define Null 0
diff --git a/testsuites/benchmarks/dhrystone/init.c 
b/testsuites/benchmarks/dhrystone/init.c
index 3e6245c743..44c3f27683 100644
--- a/testsuites/benchmarks/dhrystone/init.c
+++ b/testsuites/benchmarks/dhrystone/init.c
@@ -32,6 +32,7 @@ static void Init(rtems_task_argument arg)

    TEST_BEGIN();

+  rtems_print_printer_fprintf_putc(&rtems_test_printer);
    main(2, argv);

    TEST_END();

yields:

]         should be:   1
] Str_1_Loc:           DHRYSTONE PROGRAM, 1'ST STRING
]         should be:   DHRYSTONE PROGRAM, 1'ST STRING
] Str_2_Loc:           DHRYSTONE PROGRAM, 2'ND STRING
]         should be:   DHRYSTONE PROGRAM, 2'ND STRING
]
] Microseconds for one run through Dhrystone:    0.6
] Dhrystones per Second:                      1811990.7
] DMIPS:                                      1031.30
]
]
=> test end: DHRYSTONE
] *** END OF TEST DHRYSTONE ***

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list