aboutsummaryrefslogtreecommitdiff
path: root/unit-tests
AgeCommit message (Collapse)AuthorFilesLines
2017-01-05Tests cleanupKaren Arutyunov2-3/+3
2017-01-05Add support for regex in runnerKaren Arutyunov6-27/+242
2017-01-04Treat any testscript line that starts with dot as directiveBoris Kolpackov4-52/+79
Even though we currently only recognize the include directive, we reserve any line that begins with a dot for future.
2017-01-04Update tests to reflect lexer mode renames (previous commit)Boris Kolpackov5-219/+219
2016-12-16Add line_regexKaren Arutyunov4-2/+266
2016-12-15Minor testscript cleanupsBoris Kolpackov8-47/+7
2016-12-13Various scheduler improvements and fixesBoris Kolpackov1-23/+102
2016-12-09Fix GCC 5 compilation error, improve scheduler unit testBoris Kolpackov1-17/+31
2016-12-09Initial parallel scheduler implementation, use to run testscripsBoris Kolpackov6-12/+119
2016-12-05Make use of casts and canonicalizations in testscriptsKaren Arutyunov1-2/+9
2016-12-05Add comma, ternary, logical operators support in eval contextBoris Kolpackov5-3/+81
2016-12-01Implement testscript variable-ifBoris Kolpackov1-0/+17
Now a variable-only if is treated the same as a single variable when deciding whether it is part of a test or setup/teardown.
2016-11-30Add support for typed/untyped concatenated expansionBoris Kolpackov4-8/+8
2016-11-29Fix escaping issue, propagate quoting for $ and ( tokensBoris Kolpackov1-2/+2
2016-11-25Implement literal here-document supportBoris Kolpackov12-57/+58
2016-11-25Allow here-document end marker to be wholly quotedBoris Kolpackov5-10/+87
2016-11-25Distinguish token quoting type and completenessBoris Kolpackov5-5/+206
2016-11-23Disable compiler-dependent output check in function call unit testKaren Arutyunov1-10/+10
2016-11-23Implement value type propagation on expansionBoris Kolpackov2-3/+3
Currently, we only propagate types of sole, unquoted expansions (variable, function call, or eval context), similar to NULL. To untypify the value, simply quote it.
2016-11-23Implement few builtin functions that can operate on any valueBoris Kolpackov2-3/+3
type() null() empty () identity()
2016-11-22Use diagnostics facility from libbutlBoris Kolpackov1-1/+1
2016-11-21Change build.driver/path variable to build.path/process_pathBoris Kolpackov2-5/+5
2016-11-21Add process_path.{recall,effect} build2 functionsBoris Kolpackov2-3/+5
2016-11-21Add support for derived-to-base function overload resolutionBoris Kolpackov2-7/+16
2016-11-18Add function machinery, implement path.normalize()Boris Kolpackov6-3/+287
Note that multi-argument functions are not yet "callable" since there is no support for value packs.
2016-11-11Clean up testscript grammar and parserBoris Kolpackov1-1/+1
2016-11-10Implement scope-if in testscriptBoris Kolpackov4-12/+536
2016-11-09Various minor semantics changes in testscript languageBoris Kolpackov2-30/+31
The .include directive and if-else no longer have to be separated from the following token. This allows to make the decision by looking at just one token. The test scope can no longer have a description inside the scope. It should always be leading the scope itself.
2016-11-08Implement testscript command-ifBoris Kolpackov5-9/+557
2016-11-08Get rid of faulty test script move-ctorKaren Arutyunov1-2/+2
2016-11-04Implement testscript inclusion supportBoris Kolpackov2-1/+141
2016-11-04Restructure testscript parser slightlyBoris Kolpackov1-5/+5
2016-11-04Add test for here-doc in pipe/expr commandBoris Kolpackov1-0/+38
2016-11-04Implement command-pipe, command-expr in testscript parserBoris Kolpackov4-4/+74
2016-11-04Add support for cleanup types to testscript parserKaren Arutyunov3-24/+55
2016-11-04Implement support for here-document indentationBoris Kolpackov1-0/+88
2016-11-04Update testscriptsBoris Kolpackov1-1/+2
2016-11-04Add tests and fixes for trailing description supportBoris Kolpackov3-2/+58
2016-11-04Initial support for trailing description in testscriptBoris Kolpackov2-5/+5
2016-11-04Implement description support in testscriptBoris Kolpackov11-26/+447
2016-11-04Add more test command file redirect testsKaren Arutyunov1-0/+46
2016-11-04Add support of cleanups to testscript parserKaren Arutyunov4-2/+56
2016-11-04Fix test command merge redirect parsing and testingKaren Arutyunov1-10/+5
2016-11-04Add support of merge redirect to testscript parserKaren Arutyunov3-0/+91
2016-11-04Add support of file redirects to testscript runnerKaren Arutyunov5-2/+184
2016-11-04Handle explicit test scopesBoris Kolpackov2-6/+90
2016-11-04Implement support for testscript scopesBoris Kolpackov3-7/+78
2016-11-04Add few setup/teardown testsBoris Kolpackov1-0/+28
2016-11-04Add tests for first_token, second_token testscript lexer modesBoris Kolpackov3-3/+79
2016-11-04Diagnose semicolon after testscript setup/teardown commandsBoris Kolpackov2-1/+8