[PATCH 2/2] Review and help

Tanu Hari Dixit tokencolour at gmail.com
Mon Jun 12 02:55:09 UTC 2017


Hello Chris,

What do you think of the changes above? Did you imagine it this way?
Right now:
python rtems-test --log=erc32_winpdb_5 --rtems-bsp=erc32-run
--rtems-tools=$HOME/development/rtems/4.12
/home/thd/development/rtems/src/builds/erc32_new_state/sparc-rtems4.12/c/erc32/testsuites/samples/hello/

shows the following error:

RTEMS Testing - Tester, 4.12 (ab4e5399d172 modified)
error: config: cannot find configuration: _/bsps/erc32-run.ini

It hasn't expanded %{_configdir} properly, probably. Can you spot the problem?
I'm still debugging.

Thank you,
Tanu.

On Mon, Jun 12, 2017 at 8:21 AM, Tanu Hari Dixit <tokencolour at gmail.com> wrote:
> Few of the new ini files
> ---
>  tester/rtems/testing/bsps/erc32-run.ini |  54 ++++++++++++++
>  tester/rtems/testing/bsps/erc32.ini     |  56 ++++++++++++++
>  tester/rtems/testing/defaults.ini       | 126 ++++++++++++++++++++++++++++++++
>  tester/rtems/testing/testing.ini        |  57 +++++++++++++++
>  4 files changed, 293 insertions(+)
>  create mode 100644 tester/rtems/testing/bsps/erc32-run.ini
>  create mode 100644 tester/rtems/testing/bsps/erc32.ini
>  create mode 100644 tester/rtems/testing/defaults.ini
>  create mode 100644 tester/rtems/testing/testing.ini
>
> diff --git a/tester/rtems/testing/bsps/erc32-run.ini b/tester/rtems/testing/bsps/erc32-run.ini
> new file mode 100644
> index 0000000..4135426
> --- /dev/null
> +++ b/tester/rtems/testing/bsps/erc32-run.ini
> @@ -0,0 +1,54 @@
> +;
> +; RTEMS Tools Project (http://www.rtems.org/)
> +; Copyright 2015 On-Line Applications Research Corporation (OAR).
> +; All rights reserved.
> +;
> +; This file is part of the RTEMS Tools package in 'rtems-tools'.
> +;
> +; Redistribution and use in source and binary forms, with or without
> +; modification, are permitted provided that the following conditions are met:
> +;
> +; 1. Redistributions of source code must retain the above copyright notice,
> +; this list of conditions and the following disclaimer.
> +;
> +; 2. Redistributions in binary form must reproduce the above copyright notice,
> +; this list of conditions and the following disclaimer in the documentation
> +; and/or other materials provided with the distribution.
> +;
> +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> +; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
> +; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> +; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> +; POSSIBILITY OF SUCH DAMAGE.
> +;
> +
> +;
> +; All paths in defaults must be Unix format. Do not store any Windows format
> +; paths in the defaults.
> +;
> +; Every entry must describe the type of checking a host must pass.
> +;
> +; Records:
> +;  key: type, attribute, value
> +;   type     : none, dir, exe, triplet
> +;   attribute: none, required, optional
> +;   value    : 'single line', '''multi line'''
> +;
> +
> +;
> +; The erc32 BSP
> +;
> +[erc32]
> +bsp = erc32
> +arch = sparc
> +
> +[run]
> +run = %{_rtscripts}/run.cfg
> +bsp_run_cmd = %{rtems_tools}/%{bsp_arch}-rtems%{rtems_version}-run
> +bsp_run_opts = ''
> diff --git a/tester/rtems/testing/bsps/erc32.ini b/tester/rtems/testing/bsps/erc32.ini
> new file mode 100644
> index 0000000..c510893
> --- /dev/null
> +++ b/tester/rtems/testing/bsps/erc32.ini
> @@ -0,0 +1,56 @@
> +;
> +; RTEMS Tools Project (http://www.rtems.org/)
> +; Copyright 2015 On-Line Applications Research Corporation (OAR).
> +; All rights reserved.
> +;
> +; This file is part of the RTEMS Tools package in 'rtems-tools'.
> +;
> +; Redistribution and use in source and binary forms, with or without
> +; modification, are permitted provided that the following conditions are met:
> +;
> +; 1. Redistributions of source code must retain the above copyright notice,
> +; this list of conditions and the following disclaimer.
> +;
> +; 2. Redistributions in binary form must reproduce the above copyright notice,
> +; this list of conditions and the following disclaimer in the documentation
> +; and/or other materials provided with the distribution.
> +;
> +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> +; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
> +; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> +; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> +; POSSIBILITY OF SUCH DAMAGE.
> +;
> +
> +;
> +; All paths in defaults must be Unix format. Do not store any Windows format
> +; paths in the defaults.
> +;
> +; Every entry must describe the type of checking a host must pass.
> +;
> +; Records:
> +;  key: type, attribute, value
> +;   type     : none, dir, exe, triplet
> +;   attribute: none, required, optional
> +;   value    : 'single line', '''multi line'''
> +;
> +
> +;
> +; The erc32 BSP
> +;
> +[erc32]
> +bsp = erc32
> +arch = sparc
> +
> +[gdb_script]
> +gdb = %{_rtscripts}/gdb.cfg
> +gdb_script = 'erc32_gdb_script'
> +erc32_gdb_script = 'target sim
> +    load
> +    run'
> diff --git a/tester/rtems/testing/defaults.ini b/tester/rtems/testing/defaults.ini
> new file mode 100644
> index 0000000..81a73ae
> --- /dev/null
> +++ b/tester/rtems/testing/defaults.ini
> @@ -0,0 +1,126 @@
> +;
> +; RTEMS Tools Project (http://www.rtems.org/)
> +; Copyright 2010-2015 Chris Johns (chrisj at rtems.org)
> +; All rights reserved.
> +;
> +; This file is part of the RTEMS Tools package in 'rtems-tools'.
> +;
> +; Redistribution and use in source and binary forms, with or without
> +; modification, are permitted provided that the following conditions are met:
> +;
> +; 1. Redistributions of source code must retain the above copyright notice,
> +; this list of conditions and the following disclaimer.
> +;
> +; 2. Redistributions in binary form must reproduce the above copyright notice,
> +; this list of conditions and the following disclaimer in the documentation
> +; and/or other materials provided with the distribution.
> +;
> +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> +; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
> +; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> +; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> +; POSSIBILITY OF SUCH DAMAGE.
> +;
> +
> +;
> +; All paths in defaults must be Unix format. Do not store any Windows format
> +; paths in the defaults.
> +;
> +; Every entry must describe the type of checking a host must pass.
> +;
> +; Records:
> +;  key: type, attribute, value
> +;   type     : none, dir, exe, triplet
> +;   attribute: none, required, optional
> +;   value    : 'single line', '''multi line'''
> +;
> +
> +;
> +; Global defaults
> +;
> +[global]
> +
> +; Nothing
> +nil = ''
> +
> +; Paths
> +_topdir = %{_prefix}
> +_docdir = %{_defaultdocdir}
> +_tmppath = %{_topdir}/build/tmp
> +_tmproot = %{_tmppath}/rt/%{_bset}
> +_datadir = %{_prefix}/share
> +_defaultdocdir = %{_prefix}/share/doc
> +_exeext = ''
> +_exec_prefix = %{_prefix}
> +_bindir = %{_exec_prefix}/bin
> +_sbindir = %{_exec_prefix}/sbin
> +_libexecdir = %{_exec_prefix}/libexec
> +_datarootdir = %{_prefix}/share
> +_datadir = %{_datarootdir}
> +_sysconfdir = %{_prefix}/etc
> +_sharedstatedir = %{_prefix}/com
> +_localstatedir = %{prefix}/var
> +_includedir = %{_prefix}/include
> +_lib = lib
> +_libdir = %{_exec_prefix}/%{_lib}
> +_libexecdir = %{_exec_prefix}/libexec
> +_mandir = %{_datarootdir}/man
> +_infodir = %{_datarootdir}/info
> +_localedir = %{_datarootdir}/locale
> +_localedir = %{_datadir}/locale
> +_localstatedir = %{_prefix}/var
> +_usr = /usr/local
> +_usrsrc = %{_usr}/src
> +_var = /usr/local/var
> +_varrun = %{_var}/run
> +
> +; Defaults, override in platform specific modules.
> +__arch_install_post = %{nil}
> +__bash = /bin/bash
> +__bzip2 = /usr/bin/bzip2
> +__cat = /bin/cat
> +__chgrp = /usr/bin/chgrp
> +__chmod = /bin/chmod
> +__chown = /usr/sbin/chown
> +__cp = /bin/cp
> +__git = /usr/bin/git
> +__grep = /usr/bin/grep
> +__gzip = /usr/bin/gzip
> +__id = /usr/bin/id
> +__id_u = %{__id} -u
> +__ln_s = ln -s
> +__make = make
> +__mkdir = /bin/mkdir
> +__mkdir_p = /bin/mkdir -p
> +__mv = /bin/mv
> +__patch_bin = /usr/bin/patch
> +__patch_opts = %{nil}
> +__patch = %{__patch_bin} %{__patch_opts}
> +__svn = /usr/bin/svn
> +__rm = /bin/rm
> +__rmfile = %{__rm} -f
> +__rmdir = %{__rm} -rf
> +__sed = /usr/bin/sed
> +__sh = /bin/sh
> +__tar = /usr/bin/tar
> +__tar_extract = %{__tar} -xvvf
> +__touch = /usr/bin/touch
> +__unzip = /usr/bin/unzip
> +__xz = /usr/bin/xz
> +
> +; Default settings
> +_target = %{nil}
> +
> +; Paths
> +_rtbase = %{_rtdir}
> +_rttesting = %{_rtbase}/rtems/testing
> +_configdir = %{_rtbase}/config:%{_rttesting}
> +
> +; Include the testing macros.
> +include = %{_rttesting}/testing.ini
> diff --git a/tester/rtems/testing/testing.ini b/tester/rtems/testing/testing.ini
> new file mode 100644
> index 0000000..08ad574
> --- /dev/null
> +++ b/tester/rtems/testing/testing.ini
> @@ -0,0 +1,57 @@
> +;
> +; RTEMS Tools Project (http://www.rtems.org/)
> +; Copyright 2010-2014 Chris Johns (chrisj at rtems.org)
> +; All rights reserved.
> +;
> +; This file is part of the RTEMS Tools package in 'rtems-tools'.
> +;
> +; Redistribution and use in source and binary forms, with or without
> +; modification, are permitted provided that the following conditions are met:
> +;
> +; 1. Redistributions of source code must retain the above copyright notice,
> +; this list of conditions and the following disclaimer.
> +;
> +; 2. Redistributions in binary form must reproduce the above copyright notice,
> +; this list of conditions and the following disclaimer in the documentation
> +; and/or other materials provided with the distribution.
> +;
> +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> +; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> +; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> +; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
> +; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> +; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> +; POSSIBILITY OF SUCH DAMAGE.
> +;
> +
> +;
> +; All paths in defaults must be Unix format. Do not store any Windows format
> +; paths in the defaults.
> +;
> +; Every entry must describe the type of checking a host must pass.
> +;
> +; Records:
> +;  key: type, attribute, value
> +;   type     : none, dir, exe, triplet
> +;   attribute: none, required, optional
> +;   value    : 'single line', '''multi line'''
> +;
> +
> +;
> +; Global defaults
> +;
> +[global]
> +
> +; Paths
> +_rtbase = %{_rtdir}
> +_rtscripts = %{_rtbase}/rtems/testing
> +
> +; Defaults
> +timeout = 180
> +
> +; Tests detected as invalid that are valid
> +invalid_tests = '''minimum.exe'''
> --
> 2.1.4
>



More information about the devel mailing list