summaryrefslogtreecommitdiffstats
path: root/runtest.py
Commit message (Collapse)AuthorAgeFilesLines
* More deletion of _JAVA_OPTIONS to runtest.py from travis startup files.William Deegan2018-08-311-0/+4
|
* Part of previous change restoredMats Wichmann2018-08-301-1/+1
| | | | | somehow the change from if test to try block got partly lost during commit. changing else->except
* Rework the time.clock -> time.perf_counter changeMats Wichmann2018-08-301-3/+2
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Do not use time.clock for Py3 in runtestMats Wichmann2018-08-301-4/+8
| | | | | | | | | | | | | | | | | | | | | time.clock is deprecated since Python 3.3 and will be removed in Python 3.8. 3.7 started issuing DeprecationWarning, which fails about 16 tests in AppVeyor CI (and running manually), since the warning appears in stderr stream and so real vs expected does not match any longer. Arguably the tests could be fixed to do a different check (contains rather than exactly-equal), but a change needs to be made anyway. use time.perf_counter as the time function for Python 3. This works for Windows and non-Windows; however since this function did not exist in 2.7 (added for 3.3), the Py2 case is left, which selects between time.clock and time.time depending on OS. Note this addresses runtest.py, but not code in bench/, which need attention also. Suggest that be a separate change since it's not failing tests. Signed-off-by: Mats Wichmann <mats@linux.com>
* runtest.py: async is a reserved keyword in python 3.7Gary Oberbrunner2018-07-131-2/+2
| | | | | I don't think the async arg is used anywhere, but I kept it and just changed the name so the tests run.
* move test files from QMTest to testing/framework. QMtest hasn't been used in ↵William Deegan2018-04-301-5/+3
| | | | quite some time
* Fix problem with Install and multiple dirs outside src tree.Gary Oberbrunner2018-01-051-1/+1
| | | | | | | | | | | | In some cases it's possible to get a case where the target path already does exist, but the dir node for it hasn't been updated yet. This fix prevents MkdirFunc from trying to create it when it already exists. Added a testcase which failed before the fix and works after it. Also fixes a problem running tests on Windows, using standard python 3 which is installed in "C:/Program Files/Python36". The python path name has to be escaped in that case. See runtest.py.
* Merge branch 'appveyor' of https://github.com/ajf58/scons into AppveyorCIScriptDaniel Moody2017-12-221-15/+6
|\
| * Threading module should definitely be present. Don't try and soldier on ↵Andrew Featherstone2017-12-201-15/+6
| | | | | | | | without it.
* | adding in JobTests.py workaround with the coverage testing, also updated ↵Daniel Moody2017-12-091-6/+20
|/ | | | runtest.py with the exclude option from Github PR 27.
* Changed to os.pathsep for fixture dirsgrbd2017-06-211-1/+1
|
* Fix the directory seperator for Fixture directories to be windows compatiblegrbd2017-06-201-1/+1
|
* Fix issue where a blank line would lead to runtest.py dropping user into a ↵William Deegan2017-04-091-0/+1
| | | | python shell
* change logic to drop ./ or .\ from front of specified test/testpath so logic ↵William Deegan2017-04-031-1/+7
| | | | to match test or src will work properly. This is mainly just useful on windows when autocompleting paths
* Fix runtest.py to work with win32 paths specified as .\test\xyzWilliam Deegan2017-04-031-0/+3
|
* Use print() function to fix py2/3Craig Rodrigues2017-03-101-2/+2
|
* start some changes to show pass/fail stats along with progressWilliam Deegan2017-02-261-3/+18
|
* Moved fixture directory under #test.William Blevins2016-09-241-1/+1
|
* Initial python3 cut of test/Fortran.William Blevins2016-09-231-2/+2
|
* Allowed for multiple fixture dirs and added default global directory.William Blevins2016-09-231-3/+5
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-13/+2
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-13/+2
| |
* | Added six module as SCons.compat.six, for python3 port.Gary Oberbrunner2014-04-201-3/+2
| |
* | Merged with [default]Stefan Zimmermann2014-03-311-140/+95
|\ \ | |/
| * Fix running tests in subdir as argument to runtest.py, e.g.anatoly techtonik2014-03-241-2/+2
| | | | | | | | python runtest.py test/CC
| * runtest.py: Make sure --runner argument is only passed to unit testsanatoly techtonik2014-03-211-2/+5
| |
| * Make runner for unit tests configurable, add TAPTestRunner that formatsanatoly techtonik2014-03-201-3/+11
| | | | | | | | | | | | output according to TAP protocol http://testanything.org/ runtest.py --runner TestUnit.TAPTestRunner src\engine\SCons\ActionTests.py
| * runtest.py: Remove double check if no tests are found.anatoly techtonik2014-03-201-8/+3
| |
| * runtest.py: Simplify test discovery code (and show where unittests are)anatoly techtonik2014-03-201-20/+31
| |
| * runtest.py: "module tests" are properly named "end-to-end" testsanatoly techtonik2014-03-201-3/+4
| |
| * runtest.py: Improve cmdline help readability with hg-style formatanatoly techtonik2014-03-171-22/+22
| |
| * runtest.py: Show usage lines on error, improve help messageanatoly techtonik2014-03-131-16/+12
| |
| * runtest.py: Clarify code a bitanatoly techtonik2014-03-071-3/+13
| |
| * runtest.py: Remove qmtest supportanatoly techtonik2014-03-061-71/+3
| |
| * runtest.py: Rewrite module descriptionanatoly techtonik2014-03-061-9/+8
| |
* | Some more six.PY2/PY3 usage.Stefan Zimmermann2014-01-081-2/+4
| |
* | Merged with [default]Stefan Zimmermann2014-03-311-13/+25
|\ \ | |/
| * Addition of warning if build doesn't build expected targets.Tom Tanner2013-09-261-13/+25
| | | | | | | | Added option to runtest.py to stop on first error
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-2/+6
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-12/+12
|/
* update to latest SCons commitsRobert Managan2012-12-181-221/+268
|\
| * runtest.py: Enable -o, --output to save stdout/stderr into a fileanatoly techtonik2012-12-181-7/+15
| |
| * runtest.py: Fix CRLFanatoly techtonik2012-12-181-2/+2
| |
| * runtest.py: Replace `-o file --xml` with `--xml file`anatoly techtonik2012-12-171-27/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | `runtest.py -o file ...` never worked right throwing exception: Traceback (most recent call last): File "...\runtest.py", line 925, in <module> tests[0].header(f) IndexError: list index out of range Leaving -o argument to gather all output into a file (work in process) also allows to capture output and format test results in parallel.
| * runtest.py: Exit with an error if no tests were foundanatoly techtonik2012-12-171-2/+7
| |
| * runtest.py: remove --noqmtest optionanatoly techtonik2012-12-171-11/+3
| |
| * Merge runtest.py fixesanatoly techtonik2012-12-171-20/+50
| |\
| | * runtest.py: Turn on unbuffered output ASAP.anatoly techtonik2012-12-151-13/+18
| | |
| | * runtest.py: Gradually moving from getopt to optparseanatoly techtonik2012-12-141-8/+33
| | |
| * | Add -jN support to runtest.py to run tests in parallelGary Oberbrunner2012-12-171-11/+72
| |/