[d2827cb] | 1 | .. SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
| 2 | |
---|
| 3 | .. Copyright (C) 2019 embedded brains GmbH |
---|
| 4 | .. Copyright (C) 2019 Sebastian Huber |
---|
| 5 | |
---|
| 6 | .. _QuickStartBSPTest: |
---|
| 7 | |
---|
| 8 | Test a Board Support Package (BSP) |
---|
| 9 | ================================== |
---|
| 10 | |
---|
| 11 | You built a BSP with tests in the previous section. We built the ``erc32`` BSP |
---|
| 12 | in :file:`$HOME/quick-start/build/b-erc32`. |
---|
| 13 | |
---|
| 14 | You should run the RTEMS test suite on your target hardware. The RTEMS Project |
---|
| 15 | provides some support to do this, see the :ref:`Testing <Testing>` chapter for |
---|
| 16 | the details. |
---|
| 17 | |
---|
| 18 | On the ``erc32`` BSP we selected for this quick start chapter this is easy. |
---|
| 19 | Just run this command: |
---|
| 20 | |
---|
| 21 | .. code-block:: none |
---|
| 22 | |
---|
| 23 | cd $HOME/quick-start/build/b-erc32 |
---|
| 24 | rtems-test --rtems-bsp=erc32 --rtems-tools=$HOME/quick-start/rtems/5 . |
---|
| 25 | |
---|
| 26 | This command should output something like this (omitted lines are denoted by |
---|
| 27 | ...). In this output the base directory :file:`$HOME/quick-start` was replaced |
---|
| 28 | by ``$BASE``. |
---|
| 29 | |
---|
| 30 | .. code-block:: none |
---|
| 31 | |
---|
| 32 | RTEMS Testing - Tester, 5.0.not_released |
---|
| 33 | Command Line: $BASE/rtems/5/bin/rtems-test --rtems-bsp=erc32 --rtems-tools=$BASE/rtems/5 . |
---|
| 34 | Python: 2.7.15 (default, Jan 10 2019, 01:14:47) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_601/final 335540)] |
---|
| 35 | Host: FreeBSD-12.0-RELEASE-p2-amd64-64bit-ELF (FreeBSD Build_FreeBSD12 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 GENERIC amd64 amd64) |
---|
| 36 | [ 1/589] p:0 f:0 u:0 e:0 I:0 B:0 t:0 i:0 W:0 | sparc/erc32: dhrystone.exe |
---|
| 37 | ... |
---|
| 38 | [589/589] p:574 f:0 u:5 e:0 I:0 B:3 t:0 i:0 W:0 | sparc/erc32: tmtimer01.exe |
---|
| 39 | |
---|
| 40 | Passed: 580 |
---|
| 41 | Failed: 0 |
---|
| 42 | User Input: 5 |
---|
| 43 | Expected Fail: 0 |
---|
| 44 | Indeterminate: 0 |
---|
| 45 | Benchmark: 3 |
---|
| 46 | Timeout: 1 |
---|
| 47 | Invalid: 0 |
---|
| 48 | Wrong Version: 0 |
---|
| 49 | Wrong Build: 0 |
---|
| 50 | Wrong Tools: 0 |
---|
| 51 | ------------------ |
---|
| 52 | Total: 589 |
---|
| 53 | User Input: |
---|
| 54 | monitor.exe |
---|
| 55 | termios.exe |
---|
| 56 | top.exe |
---|
| 57 | fileio.exe |
---|
| 58 | capture.exe |
---|
| 59 | Benchmark: |
---|
| 60 | whetstone.exe |
---|
| 61 | linpack.exe |
---|
| 62 | dhrystone.exe |
---|
| 63 | Timeouts: |
---|
| 64 | pppd.exe |
---|
| 65 | Average test time: 0:00:00.437773 |
---|
| 66 | Testing time : 0:04:17.848557 |
---|