summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Add test to verify Configure's TryCompile works with CachedirWilliam Deegan2018-10-101-0/+71
|
* Merge pull request #3201 from bdbaddog/speedup_win_tests_pt1William Deegan2018-10-0184-67/+157
|\ | | | | Speedup tests on Windows platform - Part 1 (more to come)
| * Speed up option tests for windowsWilliam Deegan2018-09-2631-24/+54
| |
| * Speed up M4 tests for windowsWilliam Deegan2018-09-263-5/+9
| |
| * Speed up long-lines tests for windowsWilliam Deegan2018-09-261-1/+3
| |
| * Speed up import.py by excluding default tool installs when not needed for ↵William Deegan2018-09-261-2/+5
| | | | | | | | windows
| * Speed up Install tests for windowsWilliam Deegan2018-09-2613-9/+23
| |
| * Speed up implicit-cache tests for windowsWilliam Deegan2018-09-265-2/+8
| |
| * Speed up implicit tests for windowsWilliam Deegan2018-09-263-2/+6
| |
| * Speed up Glob tests for windowsWilliam Deegan2018-09-268-9/+17
| |
| * Speed up GetOption tests for windowsWilliam Deegan2018-09-261-0/+1
| |
| * Speed up GetBuildFailures tests for windowsWilliam Deegan2018-09-263-0/+3
| |
| * Speedup explain tests on windowsWilliam Deegan2018-09-265-5/+10
| |
| * Speed up Climb tests on windowsWilliam Deegan2018-09-267-5/+12
| |
| * Speedup Clean tests for windowsWilliam Deegan2018-09-263-3/+6
| |
* | Add xz compression to tar packaging choices.Mats Wichmann2018-09-272-4/+95
| | | | | | | | | | | | | | | | | | | | | | A few tweaks to scons_dev_master.py which needed to have xz added anyway: changed mercurial to git in initial setup, install different java, more pythons. Note about adding ipkg-build. Docs updated slightly for wording in addition to adding the new tar packager. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Fix packaging strip-install-dir testMats Wichmann2018-09-271-3/+4
| | | | | | | | | | | | | | | | The expected message was not OS-neutral, failing on Windows due to backslashes. Now that Windows has tar this turned up. Interpolate os.sep to fix. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Fix applelink test to work on win32William Deegan2018-09-271-2/+1
|/
* More changes to speed up testing on windows.William Deegan2018-09-2651-49/+115
|
* Change so DefaultEnvironment and Enviroment don't initialize any tools to ↵William Deegan2018-09-261-1/+2
| | | | speed up test on windows
* fix test so it should run on any platformWilliam Deegan2018-09-241-1/+1
|
* Fix Github issue #2580 - hash mark not properly handled in FRAMEWORKPATHWilliam Deegan2018-09-231-0/+70
|
* Fix test/Execute.py failing on windows with python 2.7.15. It worked fine ↵William Deegan2018-09-211-3/+4
| | | | with python 2.7.14 and below. The output message changed from / to \ and broke the test.
* Improvements to tarball packagerMats Wichmann2018-09-082-12/+18
| | | | | | | | | | | | | | | | | Both gz and bzip2 now skip the test if tar is not found (previously they would not test, but mark the test OK). Since tar is now found on recent Windows 10, but the helper program bzip2 is not, check for bzip2 as well. This is actually a correct test for other systems as well, they have just been very unlikely to not have had bzip2 provisioned so it has not bitten us. Note: on Windows, with cygwin installed, the test may well find bzip2 but c:\Windows\System32\tar.exe does not find it and the test fails anyway. Work needed on this "finds too much" issue (not unique to this test). Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge branch 'master' into test-rpmpkgWilliam Deegan2018-09-0525-85/+94
|\
| * Merge pull request #3180 from bdbaddog/update_nasm_test_to_runWilliam Deegan2018-08-201-0/+1
| |\ | | | | | | Fix bytes->string decoding issue as subprocess returned stdout is bytes in py3 [ci skip]
| | * Fix bytes->string decoding issue as subprocess returned stdout is bytes in py3William Deegan2018-08-201-0/+1
| | |
| * | Merge pull request #3179 from bdbaddog/update_nasm_test_to_runWilliam Deegan2018-08-201-5/+8
| |\ \ | | |/ | | | Fix test/AS/nasm.py as it previously would only run with nasm version…
| | * Fix test/AS/nasm.py as it previously would only run with nasm version 0.98William Deegan2018-08-201-5/+8
| | |
| * | Merge branch 'master' into swig-check-PyHWilliam Deegan2018-08-1712-22/+67
| |\ \ | | |/
| | * updated vc and tests to check the msvc cl binaryDaniel2018-08-1312-22/+67
| | |
| * | get_platform_python_info fail on missing Python.hMats Wichmann2018-08-1712-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | evolved the get_platform_python_info test method to fail only if a new flag python_h_required is True. Rolled back the previous change to have the method return the path to the Python.h, this was not really needed since the include path is already returned. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Move checking for python header to common locationMats Wichmann2018-08-1512-62/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous change added a check for Python.h in one SWIG test which did not have it which turns that test into a skip instead of a fail if the header is not installed. It was pointed out that having 12 tests check for the same thing might be optimised by putting the check in the routine which returns info about the python development environment, so this change makes that modification. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | SWIG recursive test checkes for Python.hMats Wichmann2018-08-131-1/+7
| |/ | | | | | | | | | | | | | | The generated code will #include <Python.h>, so skip the test if the appropriate development support for Python is not installed, the test will FAIL otherwise. The other SWIG tests do this already. Signed-off-by: Mats Wichmann <mats@linux.com>
* | generalize the fix for #3164Mats Wichmann2018-09-047-50/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a new flag, X_RPM_EXTRADEFS, which lets the user supply any additional flag lines needed in the specfile. If the tag is not present in the specfile, supply a value which turns off debug package generation. To retain debug package generation, supply the flag with a value of None, or with a list that does not include the disable value. So like the previous change the default is now not to generate debug, but that default can be overridden, and it is documented.
* | Fix rpm tests for newer rpmbuild (fixes #3164)Mats Wichmann2018-08-134-8/+19
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two issues: (1) ARCHITECTURE, if supplied, actually needs to be set in the specfile BuildArch: field (or passed on the command line). (2) rpmbuild on Fedora builds all kind of debug stuff behind the scenes (it makes packages not requested by the specfile!). This causes scons rpm tests to fail, so force in a flag to turn off this generation. That is done unconditionally at the moment by writing %global debug_package %{nil}\n to the specfile. If anyone eventually ends up needing to produce these debug packages through scons, we can add a flag to allow it by omitting the above setting. Some doc and comment cleanup done, and one of the tests now builds a noarch package to test actually supplying an ARCHITECTURE value that is not the machine default. Also, one of the tools called by rpm packaging did not supply the right suffix for the Tar builder, presumably a copy-paste error in a place that is not stressed by any test. Fedora packaging now also generates a file containing the build id and puts it into the package (another behind the scenes bit of magic - this does not appear in our %files section but is still added to the package). It is possible to turn this behavior off as well, but for the tests affected, the choice was made instead to have them now check the files in the generated package /contain/ the expected filenames rather than /exactly-match/ the expected filenames. Testing: on recent Fedora all the rpm-related tests now pass after six failed previously; on a Centos 7.4 system which did not fail any tests, the modified code still passes - did not introduce regressions. At the moment do not believe any of the CI setup will cause rpm tests to be run. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3169 from dmoody256/MSVSTestDoesntCheckForCLWilliam Deegan2018-08-121-2/+6
|\ | | | | Msvs test doesnt check for cl
| * Merge remote-tracking branch 'origin/master' into MSVSTestDoesntCheckForCLDaniel2018-08-127-7/+147
| |\
| * \ Merge remote-tracking branch 'origin/master' into MSVSTestDoesntCheckForCLDaniel2018-08-1263-139/+531
| |\ \
| * | | updated the msvs 10 test to check and make sure the cl.exe is there as well.Daniel Moody2018-04-051-2/+6
| | | |
* | | | updated test to reflect the removal of find function from mingw toolDaniel2018-08-122-3/+10
| |_|/ |/| |
* | | Merge pull request #3161 from mwichmann/test_must_containWilliam Deegan2018-08-102-2/+2
|\ \ \ | | | | | | | | Testing: python 3 fix for must_contain
| * | | Try a more scons-y file conversion for Py3 file readsMats Wichmann2018-07-312-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Instead of custom conversion as in the previous iteration, use the to_bytes function. The two known tests which incorrectly let the text-mode xml file be opened in binary mode are adjusted to supply mode='r' Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Fix the new missing-sconscript test for WindowsMats Wichmann2018-08-091-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missed that string matching on the invalid sconscript path needs to be OS-agnostic - the CI builders don't include a windows image, so this was not caught. Call normpath on the path before pushing it into the expected strings. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Merge branch 'master' into wip-missing-sconsWilliam Deegan2018-08-074-2/+10
|\ \ \
| * \ \ Merge branch 'master' into wip-addjavasWilliam Deegan2018-08-012-2/+2
| |\ \ \ | | |/ /
| | * | Change octal constants in QT testsMats Wichmann2018-07-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolving two test failures in Python 3 caused by: http://www.python.org/dev/peps/pep-3127/: octal literals must now be specified with a leading "0o" or "0O" instead of "0"; Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | Update java version supportMats Wichmann2018-07-182-0/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Although the newer versions are marketed as simple versions, scons will see them as dotted versions: 9.0, 10.0. Add some comments to this in test code - the RMI test skip ought to work as long as they stay dotted versions (since 10.0 >= 1.8); that code does run the test for a simple version like '6'. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Some further adjustments to missing-sconscript testsMats Wichmann2018-07-303-7/+17
| | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Add tests for SConscript(must_warn) optionMats Wichmann2018-07-281-0/+119
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Testcases added to confirm the behavior of: first attempt to call a non-existent script gives a deprecation warning, additional ones give plain warning; True/False values for must_warn behave as expected; if scons default is changed to exception the call fails but if must_warn=False it still works. Tweaked the logic to actually get that last bit to work. Also minor doc update. Signed-off-by: Mats Wichmann <mats@linux.com>