summaryrefslogtreecommitdiffstats
path: root/test/CC/CCVERSION.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix testing subdir usageMats Wichmann2020-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fixed difference in types MethodType argument list between 2/3 which allowed ↵William Blevins2016-09-211-27/+2
| | | | finishing CC folder.
* Fixed or skipped tests that fail on Windows.Gary Oberbrunner2014-08-221-1/+2
| | | | | Mostly just per-test changes, but also made match_re strip out CR (\r) chars at end of lines to make Windows match properly.
* Add tests for scons.tigris.org issue#1723.Michael Haubenwallner2014-05-151-0/+82
Ensure CCVERSION/CXXVERSION detected actually is from CC/CXX used.