2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 04:02:14 +00:00

1260 Commits

Author SHA1 Message Date
Dmitry Arkhipov
80e04ee430 resolve subprojects of projects with rooted id (#483) 2025-12-18 09:22:59 -06:00
Rene Rivera
4cf2453380 Account for max tasks per proc not available. 2025-11-29 09:21:03 -06:00
Rene Rivera
9f0322c216 Add 5 minute timeout per test. 2025-11-29 08:57:00 -06:00
ivan kotov
45a76a1803 Added the ability to escape the '$' character before '(' as "$$" which will allow using the "$()" and "$(())" expressions of bash, sh, and other shells. (#467)
The '$' character is now escaped as the "$$" sequence when a non-zero-length "$$" character sequence ends with the "$(" sequence or the '(' character.
This allows the use of SHELL $(...) or $((...)) expressions within bjam expressions such as "actions { ... }" or "[ SHELL ... ]".

---------

Co-authored-by: René Ferdinand Rivera Morell <grafikrobot@gmail.com>
2025-11-23 21:56:44 -06:00
René Ferdinand Rivera Morell
dbbf11049c args module (#437)
This completes rewriting the command line argument parsing to replace it with the Lyra library. The main() changes now allow for parsing project jamfiles before printing help text. And hence allow for all jam side args to be displayed with -h.
2025-04-03 14:53:57 -05:00
Rene Rivera
f5d2317fa8 Avoid using python >= 3.5 features. 2025-04-02 17:14:38 -05:00
René Ferdinand Rivera Morell
f6c5e680a2 New IBM * XL toolset. (#438)
Common IBM XL compiler toolset that handles the current IBM XL and IBM Open XL compilers.
2025-03-16 19:52:16 -05:00
Rene Rivera
7a99888438 Fix test to account for py change in what it considers an absolute dir on Windows. 2025-03-12 22:45:33 -05:00
René Rivera
936cf317f2 Properly quote or adjust paths to python on toolset mock tests to allow for spaces in the python exec path. 2024-11-12 23:03:15 -06:00
René Rivera
6a790072d9 Run single process tests on Windows CI to avoid some permission errors. 2024-11-09 10:28:53 -06:00
René Rivera
b07f0b2272 Revert "exception-handling=off should define _HAS_EXCEPTIONS=0 for Dinkumware/MSSTL"
This reverts commit 376470fadd.
2024-06-12 23:18:08 -05:00
Rene Rivera
dfd11bb5c6 Fix error ignore flag value for rmtree cleanup of temp test dirs. 2024-06-09 20:56:51 -05:00
Rene Rivera
f608cb41ce Fix invalid regex escape sequence. 2024-06-09 20:48:09 -05:00
Rene Rivera
38db3fd518 Fix use of deprecated mktemp that was causing intermittent test failures. 2024-06-09 10:32:20 -05:00
René Ferdinand Rivera Morell
c30bce8e2d Add property-db class to record & write structured data. (#397)
Add property-db class to record & write structured data.

This adds a utility to record structured data in the form of a property database where the keys are a property path with string or number values. The data can be converted to a string, or written to a file, as JSON.
2024-05-27 20:04:58 -05:00
Nikita Kniazev
376470fadd exception-handling=off should define _HAS_EXCEPTIONS=0 for Dinkumware/MSSTL 2024-05-26 13:57:36 -05:00
Nikita Kniazev
cd7c1537f8 Rename os unknown to none (#386)
Apparently it was a Clang target normalization bug (issues/89582).
2024-05-21 20:50:39 -05:00
Nikita Kniazev
a7af57e291 clang-win: use lld linker, fix embed-manifest-via=linker (#385)
Fixes bfgroup/b2/issues/159
2024-05-21 14:28:36 -05:00
Nikita Kniazev
be168aca85 Default to Clang on FreeBSD and OpenBSD (#369)
* FreeBSD since 2012: https://lists.freebsd.org/pipermail/freebsd-current/2012-September/036480.html
* OpenBSD since 2017-2020: https://marc.info/?l=openbsd-cvs&m=150109829003860
2024-04-20 15:35:34 -05:00
Rene Rivera
6c1a6557b0 Add list of failed and skipped targets to tail summary.
This expands out the failed and skipped summary tail lines to also include a sorted list of action and targets of the corresponding failed and skipped targets. This makes it easier to see them and to further search for individual ones in teh rest of the output. It also makes it possible to quickly retry specific targets.

fixes #196
2024-03-06 08:39:42 -06:00
Rene Rivera
3af675b0fb PCH are broken on freebsd-gcc. Skip testing pch in freebsd. 2024-01-29 18:01:14 -06:00
Rene Rivera
c855511d83 Try forcing the system locale to utf-8 for C land.
[skip ci]
2024-01-11 08:43:32 -06:00
Rene Rivera
36aaf601de Brute force open fname to utf-8 as system encoding is bonkers on py 3.5.
[ski ci]
2024-01-10 23:05:01 -06:00
Rene Rivera
7514810365 Try forcing the file name to the platform encoding.
[skip ci]
2024-01-10 21:16:19 -06:00
Rene Rivera
bf8b5f2a82 Avoid unicode chars in py str.format.
[skip ci]
2024-01-09 22:49:34 -06:00
Rene Rivera
4dc3f1d821 And yet one more py f-string removal. 2024-01-09 11:59:08 -06:00
Rene Rivera
affa524b49 More py f-string removals. 2024-01-09 10:32:03 -06:00
Rene Rivera
6d60509678 Remove more py f-string uses. 2024-01-09 09:15:12 -06:00
Rene Rivera
bf44f19c1d Avoid py f-strings to support py < 3.6. 2024-01-09 08:16:37 -06:00
Rene Rivera
95befc9ea0 Force utf8 test message output. 2024-01-05 07:53:15 -04:00
Rene Rivera
3068b8d071 Move test docs to README.adoc. 2023-12-03 11:52:18 -06:00
Jan Bouwer
b753fd2f37 Trivial updates to Testing documentation (#336)
* Documentation & comment updates.

* test/test-config-example.jam
    (Comment): Changed 'test-system.jam' to 'test-config.jam'
    - Consistency with doco elsewhere & code in 'test/BoostBuild.py'.

* test/test_system.html
    Updated instructions to reflect broken Python2 compatibility
    ( 9a96cbab20 - "test_all.py", line 97: s = f"\r{s}" )
   and spelling fixes.

* Trivial syntax error in template.

* test/template.py
    (main): Missing closing bracket.
2023-12-03 10:09:07 -06:00
Rene Rivera
9e3cf110de Fix many incorrect string escape sequences. 2023-11-30 19:58:21 -06:00
Rene Rivera
8c329fcb88 Fix mixed up use of escaped back-slash. 2023-11-29 23:07:59 -06:00
Rene Rivera
4072ec8adf Make grep test preditable. 2023-08-19 08:13:29 -05:00
Rene Rivera
4f13797eb3 Add minimal test for regex.grep. 2023-08-18 23:01:26 -05:00
Nikita Kniazev
2aa8cf82b9 Long path and Unicode support on Windows 10.0.1607/10.0.1903+ (#316)
Long path support is still not universal, even after an app has explicitly opted-in via manifest it also requires registry modification or group policies, see https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later though Python and Git installers nudges to enable it by their installers for a while.

`-X utf8` forces Python to use UTF-8 when its outputs are piped (will be default in 3.15 https://peps.python.org/pep-0686/)

Also had to fix clang-linux and msvc toolsets manifest embedding issues.
2023-07-22 09:33:51 -05:00
Nikita Kniazev
dc40b5004f test suite: print single file per line on lots of files (#311)
It is much harder to spot stuff in a long string. When every file is printed on a separate line it is visually much simple to search through it, recognize missing files and wrong prefixes/suffixes.
2023-07-17 21:55:10 -05:00
Nikita Kniazev
c653af1954 emscripten renovation (#310)
* test suite fixes for link=static default

* emscripten renovation

* inherit from clang toolset
* update for 'new' fastcomp backend
* exceptions support
* dynamic linking support
* pthread support
* run-tests launcher via nodejs
2023-07-17 21:53:06 -05:00
Nikita Kniazev
cdab17f69c Fix disappeared messages from asserts (#301)
Regressed after porting assert and errors modules to native modules.
2023-07-16 08:36:39 -05:00
Nikita Kniazev
d1d7a6a16b MSYS2 fixes and CI (#298)
I've setup CI on GHA because it is much more convenient using their action script.

This covers different Mingw setups and it does not fail on PCH tests like Mingw-w64 one installed by default on GHA/Azure (either because GCC exe there was built without ASLR or is a new recent version which supports PCH relocation).
2023-07-16 08:33:13 -05:00
Nikita Kniazev
bdb3a587ce testing.execute=off fixes #195 (#297)
1. run-fail tests were failing with testing.execute=off
2. rerun w/o testing.execute=off did nothing
2023-05-06 06:40:18 -05:00
Nikita Kniazev
66228165cc force same basename for pdb as what they accompanying (#299)
This reverts commit 411b3feb3588cb010dd87ce23c5a69a993910b24.
2023-05-05 07:11:44 -05:00
Nikita Kniazev
d56db3d431 Don't store empty config cache and log (#288) 2023-05-04 20:33:09 -05:00
Nikita Kniazev
a072cd12e9 unify clang-vxworks by inheriting from clang-linux (#287)
`<linker>` override is preserved and passed to clang as the linker to use.
2023-04-24 09:04:52 -05:00
Nikita Kniazev
e8a753db99 mingw/msys/cygwin winthreads/pthread fixes (#284)
-mthreads is obsolete and is not presented in clang, and was never a thing in cygwin (fixes #38).

I have no idea why clang was configured to add -pthread on threadapi=win32, changing this is a breaking change but is the right thing to do. I run Boost.Thread tests and it passed cleanly on both threadapi=win32 and threadapi=pthread.
2023-04-23 20:50:28 -05:00
Nikita Kniazev
4d7d2831c8 unify clang-darwin linking with gcc (#281) 2023-04-22 15:34:01 -05:00
Nikita Kniazev
2310d41abe pdb order issues tentative fix (#277)
* update tag test to check pdbs too

* pdb order issues tentative fix

I believe this is the root cause of mysterious bugs involving pdbs:
  1. `replace-targets` may rearrange targets order, which might be the cause of
     exe/dll/lib swapping places.
  2. The hack in `msvc-linking-generator` were messing things up somehow when
     `virtual-target.register` returns a cached target.

Even if the change does not fix these issues it is still a good code refactor.

* use usual name generation machinery for pdbs
2023-04-22 08:08:57 -05:00
Nikita Kniazev
3b37e2035d test suite: use python builtin difflib library (#275) 2023-04-21 20:14:46 -05:00
Nikita Kniazev
96a5bdd8d2 mock tests without compiled wrappers (#274)
Removes additional point of failure, the need for actual toolset to be available, and speeds up mock tests considerably.

A bit disgusting solution, could be improved by removing limitation where toolsets take into account only first `<archive>` value.
2023-04-20 21:38:57 -05:00