summaryrefslogtreecommitdiffstats
path: root/misc/output_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Gracefully handle outdated .ninja_log during '-t recompact'von Heydebrand Julian2024-03-211-0/+23
| | | | When we explicitly unlink the file we should return LOAD_NOT_FOUND instead of LOAD_SUCCESS
* Minor fix to output_test.pyDavid 'Digit' Turner2024-03-141-9/+6
| | | | | | | | | | | | Do not use os.chdir() to change the current directory inside the run() function, as doing this prevents the temporary directory from being removed. Moreover, this breaks pytest invocations when adding new regression test scripts in this directory (as done in other forks). + Use dict.pop() to undefine environment variables in `default_env` dictionary.
* Add output_test assertion for quiet without 'no work to do'Tamino Bauknecht2023-10-241-0/+1
|
* Allow duplicate rule variable usage.David 'Digit' Turner2023-04-271-0/+13
| | | | | | | | This fixes #1966 by removing the variable name from the lookups stack once the recursive lookup call has been performed. Without this, any previously expanded variable could no longer be referenced in the command, as Ninja would (incorrectly) complain about a cyclical dependency.
* Make the output of `ninja -t inputs` deterministicDavid 'Digit' Turner2022-03-211-0/+18
| | | | | | | | | This sorts the output of `ninja -t inputs` to make it deterministic and remove duplicates, and adds a regression test in output_test.py + Ensure all inputs are listed, not only explicit ones. + Document the `inputs` tool in doc/manual.asciidoc.
* Make output_test.py executable again (mistake thanks to WSL)Jan Niklas Hasse2021-06-101-0/+0
|
* Put Info output back on stdout instead of stderrJan Niklas Hasse2021-06-101-0/+5
| | | | | | See comment in #1899. Also adds two tests to output_test.py which check this behaviour by relying on Python's suprocess.check_output not piping stderr.
* Add test for status suppression under '--quiet'.Eli Ribble2021-05-061-0/+18
| | | | This just tests that the flag works.
* test: skip non-Windows tests if on WindowsMichael Hirsch, Ph.D2020-04-271-0/+1
|
* Add output test for 'no work to do.'Jan Niklas Hasse2020-04-241-0/+3
|
* Ignore nonexistent .ninja_log/.ninja_deps for restat and recompactJan Niklas Hasse2019-12-231-0/+5
|
* Run output test in temporary directoryJan Niklas Hasse2019-12-231-4/+7
|
* Fix test_issue_1418 to pass on 1-core VMBernhard M. Wiedemann2019-09-201-1/+1
| | | | | the previous assert would fail because on a 1-core VM, the 3 outputs were produced sequentially from top to bottom
* Add OSX build on travis (#1502)Takuto Ikuta2018-11-171-1/+5
| | | Also make test script works for OSX script command.
* Allow disabling of escape code stripping, fix #1475Jan Niklas Hasse2018-11-131-5/+16
| | | | | Don't strip colors when CLICOLOR_FORCE is set to a non-zero value. This environment variable is also used by CMake's Make back-end.
* Make output_test.py independent of the environmentJan Niklas Hasse2018-11-071-2/+8
|
* Add test for #1418 (edge output should match status)Jan Niklas Hasse2018-11-051-0/+21
|
* Add script to test Ninja's outputJan Niklas Hasse2018-11-051-0/+61
First test checks for #1214.