613 Commits

Author SHA1 Message Date
Christian Spindeldreier
97dc555efa fix native elf detection on x86_64 machines
Closes #3616
2018-11-27 17:02:18 +11:00
Vijay Kumar Banerjee
a1498ab899 Coverage : install covoar in tester/bin 2018-11-27 16:55:26 +11:00
Chris Johns
bf5fdab115 tester/tftpd: Set the socket option to reuse. 2018-11-27 11:24:38 +11:00
Chris Johns
a4fbd167eb tester: Fix the handling of the version and tools recs when running parallel jobs 2018-11-27 11:23:36 +11:00
Chris Johns
29f9e10ed4 rtemstoolkit/git: Ignore untracked files in the dirty state. 2018-11-26 14:37:09 +11:00
Chris Johns
af5cecfff0 rtemstoolkit: Fixes to the reader and writer threads for capturing
- Use the 'read1' file handle call to return if any data is queued
  for reading from stdout or stderr.
- Flush the stdin pipe in the writer thread.

These changes let the execute module work on Python2 and Python3.
2018-11-26 14:36:44 +11:00
Chris Johns
71cede05ae tester/gdb: mi_parser, fix on Python3 and remove globals
- Fix mi_parser on Python3. Python3 does not support the __cmp__
  operator and rich comparision operators are required, See PEP 207.
- Remove the global variables and make a class containing them. Update
  the gdb class to use the mi_parser session class. Removing the globals
  means the global lock in the gdb module can be removed.
2018-11-26 09:56:50 +11:00
Chris Johns
f632bd8b60 tester: Minor formatting change. 2018-11-26 09:56:13 +11:00
Chris Johns
7e5cdeaabe rtemstoolkit: Add unit testing for the python modules
- Add support to run the unit tests for the rtemstoolkit python
  modules from waf. Enter './waf test' for the tests to be run on
  python2 and python3.
- Update the importing of rtemstoolkit modules to the standard
  method which works on python2 and python3.
- Update the README.
2018-11-23 15:02:52 +11:00
Chris Johns
6fa09650b8 rtemstoolkit/execute: Use buffered output and improve performance
- Use buffered output on the stdout and stderr streams from
  child processors.
- Simplify the read thread line processing to improve performance.
- Disable 'close_fds' as it slows down python3's popen call.
- Update the importing of rtemstoolkit modules.
2018-11-23 14:59:18 +11:00
Chris Johns
82254b0de2 tester: Change the QEMU command line to match the RSB built QEMU.
The command line changed and the RSB is the newer version. Make
the old version via a config variable.
2018-11-23 14:57:07 +11:00
Vijay Kumar Banerjee
f9a17cd2a1 rtemstoolkit/path : Add support to copy single files 2018-11-17 12:31:45 +11:00
Vijay Kumar Banerjee
fb03e22c47 Coverage: add the style and js files to the symbol-set report directory 2018-11-17 12:31:32 +11:00
Chris Johns
94214bf125 rtemstoolkit: Add ARM and AArch64 support to Linux elftoolchain. 2018-11-15 13:35:35 +11:00
Hesham Almatary
3265580dba tester: Remove riscv_generic
Now each BSP/ISA variant has its own .ini file
2018-11-12 16:36:04 +00:00
Sebastian Huber
bd59c23f8f Remove m32c support
Update #3599.
2018-11-12 07:04:09 +01:00
Hesham Almatary
c4c268287c tester: Support testing all riscv bsps on Spike 2018-11-09 09:54:16 +00:00
Chris Johns
f24e11688e tester: Update the Python TFTP server to fix Python3 issues.
Updated to af2f2fe89a3bf45748b78703820efb0986a8207a.
Repo is https://github.com/msoulier/tftpy.git
2018-11-08 18:13:55 +11:00
Chris Johns
e058db0281 python: Provide support to select a valid python version.
- Update imports after wrapping the code.
- Fix python3 issues.
- Fix config path issues for in repo and install runs.

Closes #3537
2018-11-08 18:13:45 +11:00
Chris Johns
087be8c67f rtemstoolkit: Fix the parsing of the revision string to a number.
Fix provided by Amar on the user list:

 https://lists.rtems.org/pipermail/users/2018-October/032714.html
2018-11-05 15:37:49 +11:00
Vijay Kumar Banerjee
92a340c305 Coverage : Generate reports using the object files in cpukit 2018-10-25 15:47:26 -05:00
Joel Sherrill
36fde5169a rtemstoolkit/rld-cc.cpp: Accept -EL, -EB, and -Gn machine flags
closes #3401, #3402, $3424.
2018-10-14 16:58:20 -05:00
Chris Johns
3bd8def210 config: Consolidate the version information into a single configuration file 2018-10-03 11:38:09 +10:00
Chris Johns
5416cfa39d config: Create a config directory and move the RTEMS arch/bsp data to it.
Closes #3536
2018-10-02 16:49:54 +10:00
Chris Johns
5075e8ed02 tester/bsp-builder: Yield the job control thread when in a dry-run.
This stops a dry-run blocking while the job control thread spins.
2018-09-08 15:36:31 +10:00
Chris Johns
14a12d3645 tester/bsp-builder: Add excluded build options to the base options.
Adding the exclude build options to the base options overrides the
default configure flags. An excluded build could be enabled by
default.

Only pause the jobs loop when it is not a dry run.
2018-09-08 14:42:40 +10:00
Chris Johns
e63b9ba278 tester/bsp-builder: No network builds for the epiphany BSP. 2018-09-04 10:18:36 +10:00
Chris Johns
0813c87480 tester/bsp-builder: Fix the build jobs with more than one BSP exclude.
Excluding more than one build resulted in common builds being removed
resulting in a list remove error.
2018-09-04 10:15:46 +10:00
Chris Johns
a3a1364115 covoar: Close the ELF and DWARF handles once the data is loaded.
This avoids the processing being killed with to many file handles
open.
2018-08-21 14:45:25 +10:00
Vijay Kumar Banerjee
458a144e08 coverage/symbol-sets.ini : Add symbol-sets and paths to respective libraries 2018-08-08 11:26:32 -05:00
Vijay Kumar Banerjee
18208f826a Coverage: Add support to generate separate reports for each symbol-set
Invoke covoar multiple times from the script to generate separate
reports for each symbol-set.
2018-08-08 11:26:32 -05:00
Sebastian Huber
d343f830f4 tester: Exclude SMP build of some RISC-V BSPs
It makes no sense to build BSPs without support for atomic instructions
with SMP enabled.

Update #3433.
2018-08-07 07:01:40 +02:00
Chris Johns
2950fd40f0 linkers/exeinfo: Report who inlines which functions. Report not inline functions. 2018-08-07 09:11:29 +10:00
Chris Johns
317d85d71f rtemstoolkit/dwarf: Add types of inline. Report machine code size not span.
- Add the types of inlined functions to the interface.

- Return the machine code for each function and not the address span.
2018-08-07 09:11:29 +10:00
Chris Johns
99c90b3353 tester/covoar: Integrate DWARF function data.
Use DAWRF function data to create the executable coverage
maps. Integrate the existing objdump processing with this
data.

- Refactor CoverageMapBase to have the address ranges
  and address info as separate objects. Move the
  to address info into a vector. Add support for
  multiple address ranges.
- DesiredSymbols is only interested in function symbols.
- ExecutableInfo creates coverage maps from DWARF function
  data.
- Add warning flags to the covoar build.
- Varous C++11 refactoring.
2018-08-07 09:11:29 +10:00
Chris Johns
f450227669 linkers/exeinfo: Add an inlines report and DWARF data dump. 2018-08-07 09:11:29 +10:00
Chris Johns
d3318eb351 rtemstoolkit/dwarf: C++ object relates fixes and a dump report.
- Various C++ object fixes that improve stability where data from
  libdwarf is moving between object instances.
- Functions now provide better detail with inlined functions picking
  up attributes from an abstrtact DIE.
- Dump to a provide stream not stdout.
2018-08-07 09:11:29 +10:00
Chris Johns
367bae8843 rtemstoolkit/elf-symbols: Add the symbol types as an enum.
This can be used by applications to filter the symbols by type.
2018-08-07 09:11:29 +10:00
Chris Johns
058a3a0bd0 rtemstoolkit: Various coverity related fixes. 2018-08-07 09:11:29 +10:00
Sebastian Huber
5d957c9c51 tester: Add RISC-V support to BSP builder
Update #3433.
2018-08-06 09:51:10 +02:00
Sebastian Huber
d3d115a505 tester: Add use virt machine for rv64imafd_medany
Update #3433.
2018-07-25 10:11:26 +02:00
Joel Sherrill
08f80ca140 rtems-bsps-tiers.ini: Add amd64 2018-07-18 18:21:42 -05:00
Sebastian Huber
156b2273a4 tester: Remove obsolete BSP variants
Update #3459.
2018-07-03 07:07:16 +02:00
Sebastian Huber
7b7e340010 tester: Add rv64imafd_medany.ini
Update #3433.
2018-06-29 10:30:37 +02:00
Chris Johns
ddcf29f18d rtemstoolkit/dwarf: Fix function loading with an DW_AT_specification attr. 2018-06-24 15:38:07 +10:00
Joel Sherrill
e86646c36c covoar: Address kill() on Cygwin 2018-06-22 10:05:55 -05:00
Chris Johns
bf8e59f83b covoar: Covert CoverageMapBase C to C++
Updates #3462
2018-06-21 17:55:24 +10:00
Chris Johns
6ab939e393 tester: Install the coverage python module. 2018-06-20 08:28:18 +10:00
Sebastian Huber
845054a2ac Fix CXC build for x86-w64-mingw32
Update #3461.
2018-06-19 12:17:30 +02:00
Chris Johns
c1f2c3247d tester: Add line feeds to the coverage HTML report. 2018-06-19 13:42:03 +10:00