1060 Commits

Author SHA1 Message Date
Chris Johns
3368e6b1aa test, rtemstoolkit: Fix regx escape errors on python 3.12 2024-04-22 16:42:08 +10:00
Chris Johns
b9d32b3bb5 rtemstoolkit: Fix decoding unicode strings in output 2024-04-22 16:42:08 +10:00
Joel Sherrill
12971a8b85 rtems-score-thread.ini: Remove _Thread_Close so trace examples link
_Thread_Close no longer exists. There are multiple exapmles which
show tracing in rtems-examples which fail to link due to this.
2024-03-11 09:05:26 -05:00
Sebastian Huber
e7d5f9c009 rld: Recognize 64-bit PowerPC
Close #4995.
2024-02-29 09:56:32 +01:00
Sebastian Huber
cfef4b11dd linkers: Allow generation of symbol map file only
If a symbol map file is specified by the user and no output file, then
just generate the symbol map file.  The user can then compile the file
using its own build jobs.
2024-02-29 09:56:32 +01:00
Sebastian Huber
99eb2972a4 linkers: Constify read-only data 2024-02-29 09:56:32 +01:00
Sebastian Huber
19ba98bdd9 linkers: Avoid void pointer arithmetic 2024-02-29 09:56:32 +01:00
zhengxiaojun
ce16c80840 add libiberty/argv.c for mingw32 build
Signed-off-by: zhengxiaojun <jameszxj@gmail.com>

Close #4974.
2024-02-28 09:24:06 +01:00
Sebastian Huber
489565f330 rtemstoolkit/libiberty: Add missing file
This fixes the following build error for --host=x86_64-w64-mingw32:

rtemstoolkit/libiberty.a(pex-win32.c.18.o): in function `win32_spawn':
rtemstoolkit/libiberty/pex-win32.c:643: undefined reference to `writeargv'

Update #4969.
2024-02-28 09:18:31 +01:00
Sebastian Huber
9fdaa4e7c7 config: Update BSPs
Update #4982.
2024-01-25 08:15:12 +01:00
Sebastian Huber
8e77e113ba linkers: Use push/pop section
Restore the previous section, otherwise the generated code may end up in
a wrong section.
2024-01-25 08:15:12 +01:00
Sebastian Huber
a78d940bf0 trace/wscript: Improve C++ standard selection
Use the latest C++ standard available up to C++20.

Close #4908.
Close #4965.
2024-01-19 07:45:53 +01:00
Chris Johns
384acf1bcb tester/console: Fix restart regx check
The fix to the TFTP timeout has a simple bug.

Updates #4959
2023-12-14 17:07:04 +11:00
Chris Johns
f408c0f8d9 rtemstoolkit, linkers: Fix C++17 warnings
Closes #4970
2023-11-22 14:34:16 +11:00
Chris Johns
00af5a6ada rtemstoolkit: Update SimpleIni to latest
The resolves C++17 warnings.

Updates #4970
2023-11-22 14:33:54 +11:00
Chris Johns
a4b312ee4f rtemstoolkit/libierty: Update to gcc latest
- Use POSIX spawn support for MacOS

Closes #4969
2023-11-21 16:30:24 +11:00
Chris Johns
75ffa6781a python: Updates for Python 3.12
- Change SafeConfigParser to ConfigParser

- Fix escape sequences in strings

Updates #4968
2023-11-21 15:47:17 +11:00
Chris Johns
a22b396a32 tester/tftp: Add a session timeout
- Fix listener done state

- Finish open with the state as finished

Closes #4959
2023-11-08 08:34:14 +11:00
Sebastian Huber
af2b1532e8 linkers: Print a proper 0x-hex number
It is so easy in standard C++.
2023-10-18 11:25:34 +02:00
Sebastian Huber
a4e1b7fff8 linker: Fix typo in symbol table generator
Updates #4920.
2023-10-18 11:25:34 +02:00
Sam Price
7dc34d2cab rtems-tools: stty rename / spelling bug.
This patch fixes a spelling/rename mistake in rtems-tools.
2023-09-11 14:11:48 -05:00
Chris Johns
eda9325e58 rtemstoolkit: Provide a shlex.join for python 3.8 and earlier 2023-08-30 09:51:47 +10:00
Chris Johns
3ea0c24934 rtemstoolkit: Fix shell execution
The fixes to parse the command along with the pipe options broke
a simple shell command such as '/sbin/sysctl hw.ncpu' on FreeBSD.
This patch fixes the shell command by passing a string for the
various options.

The unit test has been updated to catch errors and report them.

Closes #4951
2023-08-28 16:48:13 +10:00
Chris Johns
349bbd9654 tester/sis: Use the RTEMS SIS command
Make sis and sis-run the same as there is no SIS support in
gdb anymore.

Closes #4945
2023-08-21 09:53:47 +10:00
Chris Johns
aba4d3b8da linker: Add TLS support to the symbol table generator
Updates #4920
2023-08-17 12:53:30 +10:00
Sebastian Huber
c05c4a9cbf tester: Use shorter SHA512 encoding
Encode the SHA512 digest in base64urlsafe instead of a hex string to
reduce the report size.
2023-08-11 07:51:49 +02:00
Muhammad Sulthan Mazaya
bd2d3d5523 rtemstoolkit: Fix shlex.split to use posix mode and add unit test for pipe operation
Turns out subprocess.Popen operates on posix mode. Also, there is an
issue with previous implementation of pipe command that is fixed by
Chris. Now, it can also accepts command in form of a string. The unit
test for that is added via this patch.
2023-06-21 14:30:48 +10:00
Chris Johns
493c8bff70 rtemstoolkil: Fix execute as strings after pipe addition 2023-06-21 10:33:46 +10:00
Muhammad Sulthan Mazaya
60e793a17c tester/rt: use shlex.split to split command args
The regular split-by-space function used to split command arguments
creates compatibility issues with many shell command syntaxes. A
specific example is the handling of string arguments, as shown below:

%define renode_args -e start_opts -e "s %{bsp_resc_script}"

Thus, it is changed to use shlex.split instead. It splits
the command arguments using shell-like syntax. More about shlex
module here: https://docs.python.org/3/library/shlex.html
2023-06-21 09:09:06 +10:00
Muhammad Sulthan Mazaya
38162e17d9 rtemstoolkit: add support for executing pipe command
added unit tests and shorten long lines.
2023-06-21 08:59:41 +10:00
Karel Gardas
eaf14a654b tester/bsps: change stm32h7-stlink to handle SIGTRAP as a nostop
The ST-Link GDB server throws spurious SIGTRAP into the GDB sometimes.
When this happen, the gdb exits immediately as it's run in batch/script
manner. Unfortunately this may be while testcase itself is still running
and does not have enough time to print all the required output.
Such testcase is then marked as failed although otherwise it may run
well to its end.
Adding handle of SIGTRAP as a nostop means that GDB will not exit
after receiving SIGTRAP but rather be forced to continue as nothing
would happen and the running testcase will have a chance to finish
its business.
2023-03-27 07:05:56 +02:00
Joel Sherrill
c8bf730933 rtems-bsps-riscv.ini: Update list to drop medany and add BSPs 2023-03-14 09:13:35 -05:00
Joel Sherrill
0b9bb40e76 waf: Update to waf 2..0.25
Updates #4860
2023-02-17 14:46:16 -06:00
Hesham Almatary
7ee62e9698 RISC-V: Test rv32i and rv32imafdc on QEMU
Updates #4775
2023-02-08 07:29:12 +00:00
Hesham Almatary
a735d42b37 RISC-V Default rv64* BSPs to medany and 0x80000000 start address
To run on both QEMU and Spike

Updates #4775
2023-02-08 07:28:47 +00:00
Kinsey Moore
6970c47c70 linkers/rtems-syms: Generate TLS symbols
When generating the symbol table for loadable modules, include TLS
symbols so that the modules can reference them.
2023-01-17 09:32:45 -06:00
Sebastian Huber
66b81d6baf record: Fix thread name handling
Reset the thread name at thread create and ID events.
2022-11-30 19:11:20 +01:00
Joel Sherrill
f29483d14d rtems-boot.ini: Correct spelling of %{ubootdir}
Closes #4065.
2022-11-29 17:34:58 -06:00
zhengxiaojun
df2d86ecda fix _mkdir parameter error.
fix _mkdir parameter error.

Signed-off-by: zhengxiaojun <jameszxj at gmail.com>
2022-11-28 10:16:12 +11:00
Ryan Long
40529bc566 _libelf_config.h: Add removed Cygwin code
This code was removed for some reason. Without it, we are unable to build
RTEMS with Cygwin.
2022-10-12 09:58:58 -05:00
Sebastian Huber
203077030d tester: Check for begin/end of test
Check for "BEGIN OF TEST" and "END OF TEST" to not use other information blocks
such as "END OF GCOV" to determine the test status.
2022-10-07 06:26:31 +02:00
Joel Sherrill
d0a65c72d1 rtems-bsps-aarch64.ini: Remove trailing comma causing empty BSP name 2022-09-21 08:31:00 -05:00
Joel Sherrill
53a8d85914 rtems-bsps-aarch64.ini, rtems-bsps-tiers.ini: Remove versal ilp32 variants 2022-09-07 10:02:07 -05:00
Daniel Cederman
99cc1fb79a tester: Load RISC-V image using -bios and increase memory size
This avoids overlapping the RTEMS image with the builtin opensbi image
and the location of the fdt.
2022-08-19 16:14:35 +02:00
Daniel Cederman
a5d0291ccc tester: Add option to specify how to load image with QEMU
Defaults to "-kernel", but can be changed to, for example, "-bios".
2022-08-19 16:12:43 +02:00
Ryan Long
f3d9c87958 rtemstoolkit: Fix conditions using "is" with literals
Fix warnings that come from python 3.8 about using the "is" operator with
string literals.

Closes #4700
2022-08-12 09:26:27 -05:00
Sebastian Huber
1cd476e155 tester: Sort test reports for JSON/YAML
This makes the reports more git friendly.

Update 4671.
2022-08-08 06:42:34 +02:00
Ryan Long
ace7db96d4 rtems-syms.cpp: Change check to pointer size
Changed from a RISC-V specific value being in the conditional to a check for
the size of the architecture's pointer.

Closes #4673
2022-07-29 08:25:35 -05:00
Sebastian Huber
ef4b8c53f9 tester: Normalize JSON and YAML reports
Report the same data in JSON and YAML reports.  Do not report redundant
information.

Update 4671.
2022-07-26 14:31:32 +02:00
Sebastian Huber
e3a5912249 tester: Fix string representation 2022-07-26 13:43:37 +02:00