summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Copy from master fixes for bin/update-release-info.py ↵William Deegan2020-07-062-42/+43
| | | | test/EnsureSConsVersion.py test/update-release-info/update-release-info.py
* Merge pull request #3712 from bdbaddog/restore_scons_localWilliam Deegan2020-07-012-23/+7
|\ | | | | Re-implement scons-local build + travis ci updates for build
| * update version strings on testWilliam Deegan2020-06-301-12/+3
| |
| * All working except automatic build of wheel and sdist packageWilliam Deegan2020-06-301-11/+4
| |
* | Reduce the number of "false negative" test failures for ↵Joseph Brill2020-06-291-8/+68
| | | | | | | | Interactive/configure.py due to unreliable ordering of statements in the actual stdout output. Replace the expected literal text with a series of regular expressions in a custom match function. Update CHANGES.txt as well.
* | Add "#include <stdio.h>" to generated c code to prevent build failures on ↵Joseph Brill2020-06-274-0/+4
| | | | | | | | x86 for MSVS 2015+.
* | Swap the argument order for DummyVsWhere to match the signature of ↵Joseph Brill2020-06-271-1/+1
| | | | | | | | find_vc_pdir_vswhere in vc.py.
* | Fix for failing Docbook slides tests.Dirk Baechle2020-06-2421-69/+219
|/
* Merge pull request #3706 from dirkbaechle/issue3580-generate-doc-lxmlWilliam Deegan2020-06-2142-170/+1042
|\ | | | | Update of the documentation toolchain to work properly under Python3
| * Removed superfluous import of 'sys' in a testcase.Dirk Baechle2020-06-211-1/+0
| |
| * Fixed another bunch of 'bare except' errors.Dirk Baechle2020-06-2117-17/+17
| |
| * Fixed Docbook Tool and updated its tests.Dirk Baechle2020-06-2142-156/+1029
| |
* | Fix testing subdir usageMats Wichmann2020-06-1943-112/+123
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various tests called subdir several times with the same directory, which is pointless. In previous code, this emitted a message though it did not fail. Stop doing that. The dir_fixture() method did some convoluted things to make sure the directories to write to exist, change this around to simplify. The subdir() method already combines the testdir, so dir_fixture doesn't need to. Also handle more cleanly the case of the target directory being an absolute path, which seems to have been intended, but would not work. Also clean up file_fixture() along the same principles. Change the subdir() method to not need to be given an ordered list of directories; instead call os.makedirs on each so intermediate steps are made automatically. Along the way, the print about making a directory that already existed vanishes. Tests which did os.path.join on directory pieces when calling file_fixture no longer do so, since file_fixture (and dir_fixture) do joining on an arg which is a list of paths like many other scons functions. The testing doc was updated to fix some wording and reflect the above changes. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3700 from bdbaddog/issue_3694_comp_db_variantdir_issueWilliam Deegan2020-06-162-0/+158
|\ | | | | Output proper file paths in compilation db when using VariantDir
| * Add test for variant_dir with duplicate=True and FalseWilliam Deegan2020-06-152-0/+158
| |
* | Merge pull request #3696 from mwichmann/test-cleanupWilliam Deegan2020-06-153-27/+5
|\ \ | |/ |/| Cleanups in tests and in framework
| * Bugfix: to get raw data from stdin, use bufferMats Wichmann2020-06-141-3/+1
| | | | | | | | | | | | | | Earlier change dropped PY3 version of code in cleanup - read sys.stdin.buffer, not sys.stdin Signed-off-by: Mats Wichmann <mats@linux.com>
| * Cleanups in tests and in frameworkMats Wichmann2020-06-143-25/+5
| | | | | | | | | | | | | | | | | | | | | | | | * Some Py2/Py3 compat blocks were simplified to Py3 only * some sequences of define-cleaup-function + atexit.register were changed to use the decorator (this works if func needs to take no arguments) * Lightly update a bunch of docstrings in TestCmd, and reformat a few places, towards the style we're generally using now. * call_python() in TestCmdTests was modernized to use subprocess.run Signed-off-by: Mats Wichmann <mats@linux.com>
* | Fix test for compilation_db to work on windows and linuxWilliam Deegan2020-06-152-10/+16
| |
* | [appveyor skip][travis skip] fix sider warningWilliam Deegan2020-06-151-0/+3
| |
* | [appveyor skip][travis skip] fix sider warningWilliam Deegan2020-06-151-3/+3
| |
* | Fix fake mylink.py was broken on win32.William Deegan2020-06-141-12/+37
| |
* | Fix Issue #3693 - change compilation db field 'target' to 'output' per specWilliam Deegan2020-06-141-2/+2
|/
* Merge pull request #3662 from bdbaddog/add_compilation_dbWilliam Deegan2020-06-086-90/+173
|\ | | | | Add compilation db for use by clang tools and cquery (fix issue #3355)
| * Fix test SConstruct formattingWilliam Deegan2020-06-061-2/+0
| |
| * Added tests which should cover all the variations of ways to call ↵William Deegan2020-06-062-11/+95
| | | | | | | | CompilationDatabase
| * change CompilationDatabase from psuedo builder to builder. Add emitter to ↵William Deegan2020-06-061-2/+2
| | | | | | | | clear source and set default target as 'compile_commands.json'.
| * [skip appveyor] [skip travis] resolve sider complaints in test fixturesWilliam Deegan2020-05-221-3/+3
| |
| * resolve sider complaints in test fixturesWilliam Deegan2020-05-222-6/+6
| |
| * address sider issuesWilliam Deegan2020-05-191-1/+0
| |
| * more test updatesWilliam Deegan2020-05-196-43/+64
| |
| * extract fake gcc and link python scripts to fixture. We'll use these for ↵William Deegan2020-05-193-53/+21
| | | | | | | | CompilationDatabase tests
| * Rename as.py to asm.py and add to TOOL_ALIASES. 'as' is reserved keyword so ↵William Deegan2020-05-192-0/+13
| | | | | | | | couldn't be imported into compilation_db tool. Add initial bits of test and docs
* | Merge branch 'master' into abc-TaskWilliam Deegan2020-05-292-0/+15
|\ \
| * \ Merge pull request #3655 from dmoody256/callable_silent_typeerrorsWilliam Deegan2020-05-292-0/+15
| |\ \ | | | | | | | | Use inspect.signature to check function signature instead of relying on TypeErrors when evaluation in subst()
| | * | used fixtures in test TypeError testDaniel Moody2020-05-192-28/+15
| | | |
| | * | Merge remote-tracking branch 'origin/master' into callable_silent_typeerrorsDaniel Moody2020-05-183-4/+11
| | |\ \
| | * | | cover other type of subber and add testDaniel Moody2020-05-171-0/+28
| | | |/ | | |/|
* | | | Set Tasks class as abstractMats Wichmann2020-05-259-6/+19
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | needs_execut method set as an abstract method, meaning you can't instantiate Task itself, and derived classes must implement the methid. The former warning framework for this (deprecated) is disabled, and some unit tests that were not implementing needs_execute were fixed - by deriving from the AlwaysTask class. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Fix bug in test for PR #3668Mats Wichmann2020-05-241-1/+1
| | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | | classes no longer explicitly inherit from objectMats Wichmann2020-05-248-10/+10
| |/ |/| | | | | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* | change test to change expected line # depending on python versionWilliam Deegan2020-05-181-1/+8
| |
* | Merge branch 'master' into py39William Deegan2020-05-174-32/+29
|\ \ | |/
| * [PR 3648] fixups from review commentsMats Wichmann2020-05-121-0/+9
| | | | | | | | | | | | | | | | README-SF.rst now matches README.rst again Incorrectly dropped part of scons-time tests restored. Signed-off-by: Mats Wichmann <mats@linux.com>
| * Some more fixups for project directory movesMats Wichmann2020-05-124-40/+28
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | Python 3.9 supportMats Wichmann2020-05-122-3/+3
|/ | | | | | | Fixes to ActionTests to support bytecode, etc. Eliminate some warnings when running testsuite (rawstrings) Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge remote-tracking branch 'origin/master' into patch-1Daniel2020-05-111-10/+10
|\
| * change runtest test to look for SCons and not srcWilliam Deegan2020-05-101-10/+10
| |
* | update changes.txt and remove verbose from testDaniel2020-05-111-1/+0
| |
* | Merge remote-tracking branch 'origin/master' into patch-1Daniel Moody2020-05-067-8/+24
|\ \ | |/