aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script/run.cxx
AgeCommit message (Collapse)AuthorFilesLines
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