aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script/run.cxx
AgeCommit message (Collapse)AuthorFilesLines
2024-04-12Add -s|--timeout-success option to env script builtinBoris Kolpackov1-1/+1
The semantics is equivalent to the --success option we already have in the timeout builtin.
2023-04-05Allow creating context with bare minimum of initializationsBoris Kolpackov1-1/+1
This is used by bpkg to detect forwarded configurations without incurring the full context creation overhead.
2023-01-09Fix simple and script tests to correctly terminate processes which don't ↵Karen Arutyunov1-34/+215
close stderr on exit
2022-12-12Adapt to dir_iterator API changeKaren Arutyunov1-2/+1
2022-11-24Fix skipping potential input for exit, etc script pseudo-builtinsKaren Arutyunov1-7/+22
2022-11-24Fix script to pass diag buffer reading end to process constructorKaren Arutyunov1-10/+7
2022-11-23Rework diag_buffer interface to facilitate correct destruction orderBoris Kolpackov1-14/+28
2022-11-14Make $process.run() print builtin command line on error and verbosity level >= 3Karen Arutyunov1-22/+13
2022-11-09Use diag_buffer in scriptKaren Arutyunov1-425/+844
2022-11-08More work on child process diagnostics bufferingBoris Kolpackov1-0/+2
2022-10-27Initial work on child process diagnostics bufferingBoris Kolpackov1-1/+1
Currently this is implemented for C/C++ compile and link rules.
2022-10-21Change attribute syntax in script to come after variable in set and for (set ↵Karen Arutyunov1-13/+19
x [...], for x [...])
2022-10-13Add support for 'for' loop second (... | for x) and third (for x <...) forms ↵Karen Arutyunov1-148/+243
in script
2022-09-28Don't print true and false script builtins at verbosity level 2Karen Arutyunov1-1/+4
2022-09-28Add support for 'while' loop in scriptKaren Arutyunov1-22/+35
2022-08-17Allow matching empty output with here-document regex without ':' modifierKaren Arutyunov1-0/+25
2022-04-21Work around bogus -Wrestrict in GCC 12 (GCC bug #105329)Boris Kolpackov1-2/+8
2022-02-18Factor out common CLI types (scanners, etc)Karen Arutyunov1-0/+2
2021-11-23Add support for dynamic dependencies in ad hoc Buildscript recipesBoris Kolpackov1-82/+143
Specifically, add the new `depdb dyndep` builtin that can be used to extract dynamic dependencies from a program run or a file. For example: obje{hello.o}: cxx{hello} {{ s = $path($<[0]) depdb dyndep $cxx.poptions $cc.poptions --what=header --default-prereq-type=h -- $cxx.path $cxx.poptions $cc.poptions $cxx.mode -M -MG $s diag c++ ($<[0]) o = $path($>) $cxx.path $cxx.poptions $cc.poptions $cc.coptions $cxx.coptions $cxx.mode -o $o -c $s }} Currently only the `make` dependency format is supported.
2021-10-13Add --cwd|-t option to env pseudo-builtinKaren Arutyunov1-9/+37
2021-09-28Adapt to libbutl headers extension change from .mxx to .hxxKaren Arutyunov1-4/+4
2021-09-14Impose 12K line count limit for regex matches in TestscriptBoris Kolpackov1-1/+15
2021-09-13Impose 16KB line length limit for regex matches in TestscriptBoris Kolpackov1-1/+14
2021-06-03Fix crashing on test command output regex match failureKaren Arutyunov1-16/+42
2021-04-21Add buildscript depdb builtin 'env' commandKaren Arutyunov1-1/+1
2021-04-02Add support for propagating project environmentBoris Kolpackov1-2/+2
2021-01-30Rework include translation supportBoris Kolpackov1-1/+0
See the config.cxx.translate_include variable documentation in cxx/init.cxx for details.
2020-12-11Add export script pseudo-builtinKaren Arutyunov1-15/+85
2020-12-11Prefix pseudo-builtin diagnostincs messages with their namesKaren Arutyunov1-8/+8
2020-12-08Fix buildscript assertion failure on redirecting command stderr to stdoutKaren Arutyunov1-1/+13
2020-12-02Add support for buildscript depdb preambleKaren Arutyunov1-41/+94
2020-11-23Increase terminated process timeout from 1 to 2 sec before killing it on ↵Karen Arutyunov1-2/+2
script pipeline termination
2020-11-19Fix set buildscript builtin crash on WindowsKaren Arutyunov1-1/+19
2020-11-17Increase builtin timeout from 1 sec to 2 sec before aborting on script ↵Karen Arutyunov1-2/+2
pipeline termination
2020-11-06Add support for test timeoutsKaren Arutyunov1-105/+534
2020-08-03Fix buildscript diagnostics so diff output is always in unified formatKaren Arutyunov1-11/+32
Also make sure diff refers program stdout as 'stdout' rather than '-' in the test rule diagnostics.
2020-06-18Add env script pseudo-builtinKaren Arutyunov1-4/+7
Also disable C++ recipe tests when cross-testing.
2020-06-08Cleanup script command failure diagnosticsKaren Arutyunov1-14/+17
2020-06-03Allow process path values and targets as buildscript program namesKaren Arutyunov1-20/+36
Also deduce the recipe name.
2020-05-27Initial support for ad hoc recipes (still work in progress)Boris Kolpackov1-0/+2020