summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for the case of a .DVI build using a .eps graphics.Robert Managan2008-11-251-0/+187
| | | | | | Test that we don't make a .pdf file from the graphic. The patch also covers the case of requiring the graphics files I search for to have an extension so we don't try to build fig.eps from fig.eps...
* I found that my coding for automatically building .pdf files from .eps filesRobert Managan2008-11-121-0/+231
| | | | | | failed when the .tex file is in a subdirectory. I added a new test and made the one line fix.
* Merged revisions 3225-3226 via svnmerge fromSteven Knight2008-11-122-2/+6
| | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/branches/sgk_subst ........ r3225 | stevenknight | 2008-07-18 10:46:49 -0700 (Fri, 18 Jul 2008) | 3 lines Remove an unnecessary \n from the end of the $INSTALLSTR setting (unneeded because string substituion currently strips trailing white space). ........ r3226 | stevenknight | 2008-07-19 07:17:10 -0700 (Sat, 19 Jul 2008) | 3 lines Use subst_list() for generating ToolSurrogate *COMSTR values so we don't rely on the current white-space compression behavior of subst(). ........
* Windows portability: Avoid duplicate foo.lib targets by tellingSteven Knight2008-11-101-1/+1
| | | | env.SharedLibrary() to not build an import library.
* Issue 2087: Handle Java classes declared in methodsLudwig Hähne2008-10-311-0/+103
|
* Fix a nested scope issue for older Python versions.Steven Knight2008-10-311-2/+2
|
* This new test and emitter update recursively checks the whole source of theRobert Managan2008-10-301-0/+231
| | | | | | | | | | | latex document for commands that affect what side effect files will be created, and for graphics files that are included (so we can convert postscript to pdf if pdflatex is being run). Now that this is recursive we could tighten up on the side effect file list (e.g. a \makeindex with no \index commands won't make all the files we tell scons to expect as side effects) but I think that is asking for trouble if we mess it up.
* Update test/SCCS/diskcheck.py for recent GetBuildFailures()Steven Knight2008-10-301-1/+1
| | | | robustness change, which changed the exit message in this case.
* Applied Benoit Belley's patch in ticket 1957 improve the robustness ofGary Oberbrunner2008-10-2914-40/+193
| | | | | | | | | | | | GetBuildFailures(). New function convert_to_buildError, and use it in several places so all build failures now go through it and are returned as BuildError exceptions. Had a small effect on output formatting in many tests but no significant change to behavior. I reworked the patch a little to keep SCons exit status values the same as before; this patch could make it simpler to change them in some cases, e.g. exit with the errno of the failed action if desired. One nice side effect of this patch is that more scons errors print the node that caused the error now.
* Issue 1568: fix a stack trace when --debug=include tries to handleSteven Knight2008-10-171-4/+20
| | | | a library as an argument.
* Fix use of VariantDir when the -n option is used and doesn't,Steven Knight2008-10-151-0/+67
| | | | therefore, actually create the variant directory.
* Support the -f option allowing specification of a different top-levelSteven Knight2008-10-153-0/+215
| | | | "SConstruct" file name to search for when using the -D, -U or -u options.
* Collect the scripts for the three "climb up" options (-D, -U and -u)Steven Knight2008-10-159-142/+345
| | | | | in a subdirectory. Split sub-tests into separate scripts. Clean things up a bit.
* Test and document the ability to specify multiple -f files.Steven Knight2008-10-141-0/+9
|
* Don't use "as" as a variable name--reserved in Python 2.6.Steven Knight2008-10-121-3/+1
|
* Fix intended tuple syntax (for Python 2.2 and before).Steven Knight2008-10-121-1/+1
|
* Python 2.6 made "as" a keyword, so test the importability of theSteven Knight2008-10-111-1/+1
| | | | Tool.as module indirectly, not with a direct import statement.
* Testing on a Mac turned up a problem that did not show up on linux.Robert Managan2008-10-088-16/+42
| | | | | | | | | | | | | | | | | SK and I agree that we are surprised by that. Both bld = env['BUILDERS']['PDF'] and bld = env['BUILDERS']['DVI'] had lines like bld.add_action('.tex', LaTeXAuxAction) # for DVI bld.add_action('.tex', PDFLaTeXAuxAction) # for PDF run from the initialization of two tools. This was a BAD thing. That cured some test failures. For the rest I made all the TEX tests initialize the environment with the os.environ PATH since the check for the existence of the tools with where_is that looks on the system path. So the tests still quietly exit if the tool is not on the system path and now find if it is in a non-standard location like I have.
* Update test scripts with more information must_*() methods.Steven Knight2008-10-084-44/+40
|
* test/TEX/PDF_single_source.pyRobert Managan2008-10-073-3/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test of generating several .pdfs from a list of .ps (new single_source setting) test/TEX/LATEX2.py Based on second half of LATEX. generate all .pdf's at once by giving a list of .tex files test of single_source src/engine/SCons/Scanner/LaTeX.py Add test of changing an included file. Add test of included file having no extension src/engine/SCons/Scanner/LaTeX.py Add lists of acceptable graphics extensions, In the furture make this user configurable?? Scan for files in the paths stored in env['TEXINPUTS'] and env['ENV']['TEXINPUTS'] for people who may just input their environment... Add function findENVPatDirs for this purpose src/engine/SCons/Tool/pdf.py add epstopdf action Have to add it after the pdftex action so it is not the default. Make builder single_source since each input produces one output src/engine/SCons/Tool/pdftex.py use tex_eps_emitter call pdf.generate2 to add epstopdf action after the PDFLaTeXAction src/engine/SCons/Tool/dvipdf.py simplify coding that adds the source directory to the search path TEXPICTS src/engine/SCons/Tool/dvips.py Add single_source option since each ps file comes from one dvi file src/engine/SCons/Tool/pdflatex.py add .tex as a valid extension and switch emitters to tex_pdf_emitter src/engine/SCons/Tool/tex.py fix regular expressions ^[^%]* to ^[^%\n]* for multiline environment add REs for \input or \include and \includegraphics get graphics extensions from Scanner.LaTeX so they are defined in one place move modify_env_var to Scanner.LaTeX since it is used there and easier to import it here add FindFile routine to find a file given name, list of suffixes, paths, env returns a node for the file. add tex_eps_emitter and tex_pdf_emitter that call a core routine with a different list of graphics extensions that can be handled by the tool used (latex vs. pdflatex) revamp feature test/suffix list into two lists and build the list used to create sideeffects for each input file... These tests now get applied to each included file so the whole source tree is tested. Get list of paths from env['ENV']['TEXINPUTS'] and env['TEXINPUTS'] if find we need a .pdf file and only have .eps or .ps set up the .pdf as a target with the .eps as source... change emitter to tex_eps_emitter src/engine/SCons/Tool/latex.py add .tex as a valid extension and switch emitters to tex_eps_emitter
* Fix label placement in gnuplot graphs by the "scons-time.py func"Steven Knight2008-10-071-2/+2
| | | | subcommand when a profile result is equal to (or near) 0.0.
* Remove left-over debug print.Steven Knight2008-10-071-2/+0
|
* Add ability to use "$SOURCE" when specifying a target to a builder; fixes #2219.Gary Oberbrunner2008-10-011-0/+46
|
* Fix test to work with all versions of PythonGreg Noel2008-09-291-20/+21
|
* Issue 1646: Block-wise signature computation for large filesLudwig Hähne2008-09-281-0/+121
|
* Fix __COPYRIGHT__ and __revision__ lines.Steven Knight2008-09-251-2/+2
|
* Python 1.5 portability in test/Execute.py.Steven Knight2008-09-241-1/+11
|
* Split the MSVS variant_dir sub-tests into separate test scripts.Steven Knight2008-09-248-264/+418
|
* Split the sub-tests for cleaning MSVS project and solution filesSteven Knight2008-09-248-250/+423
| | | | into separate test scripts.
* Move the MSVS 6.0 test data into QMTest/TestSConsMSVS.py, too.Steven Knight2008-09-241-158/+3
|
* Move Visal Studio test data into QMTest/TestSConsMSVS.py.Steven Knight2008-09-243-371/+9
|
* Refactor Visual Studio testing logic into a separate TestSConsMSVSSteven Knight2008-09-2310-23/+23
| | | | subclass, in its own module.
* Fix for Windows that doesn't break other systems: delete theSteven Knight2008-09-223-3/+3
| | | | | PYTHON_ROOT environment variable instead of nulling it out. (Bill Deegan)
* Windows portability (path names in expected output).Steven Knight2008-09-221-2/+7
|
* Windows portability: different error message for the nonexistent file.Steven Knight2008-09-201-1/+9
|
* Windows test fix: enhance the TestSCons class so an explicitSteven Knight2008-09-203-6/+6
| | | | | | python=None argument still defaults to sys.executable. Use this to reset the python value we interpolate into the expected files that we generate after resetting the os.environ['PYTHON'] value.
* Fix broken swig tests when python being used to run tests is incompatible ↵William Deegan2008-09-205-0/+5
| | | | | | with system swig. Propagate to the created SConstructs the version of swig found by the test (which is used to determine whether to run or not run this test).
* Windows portability: escape strings with file path names, whichSteven Knight2008-09-201-2/+2
| | | | have \ separators on Windows.
* Make the test/MSVC/{msvc,hierarchical}.py tests work even ifSteven Knight2008-09-192-4/+4
| | | | %INCLUDE% and %LIB% aren't set.
* Windows portability in the expected output.Steven Knight2008-09-191-4/+4
|
* Hefty update to the tex tool.Robert Managan2008-09-184-5/+214
| | | | | | | | | | | | | | | It now iterates until all the warnings are gone and the auxiliary files stop changing or it hits the max retires limit. It adds the common auxiliary files to the emitter as sideeffects Added support for glossaries, nomenclatures, lists of figures, lists of tables, hyperref, and beamer The user can entry environment changes like env['TEXINPUTS'] and they get copied to env['ENV']['TEXINPUTS'] (thanks to Dmitry Mikhin ) It also works with variantdir, duplicate =0
* Issue 2106: Don't match a directory that matches the name of aSteven Knight2008-09-141-0/+92
| | | | #include file. (John Gozde)
* Issue 1693: make the subdirectory in which the .sconsign file willSteven Knight2008-09-144-112/+226
| | | | appear (if it doesn't already exist. (Damyan Pepper, Jim Randall)
* Revert the previous change, I overlooked some regression test failures.Steven Knight2008-09-134-226/+112
|
* Issue 1693: Make the directory in which the .sconsign file will live,Steven Knight2008-09-134-112/+226
| | | | if the directory doesn't already exist. (Damyan Pepper, Jim Randall)
* Issue 2121: fix handling #includes of files in VariantDir subdirectories,Steven Knight2008-09-131-0/+76
| | | | | | by having it handle checking for VariantDir directories on disk like it does VariantDir files. (patch: Jared Grubb; test case: Ali Tofigh)
* Issue 1681: Fix the ability of add_src_builder() to handle arbitrarySteven Knight2008-09-111-0/+65
| | | | | builder objects by eliminating unintentional re-use of a class list for the src_builder attribute.
* Add the ability of the Tex builder to change the name of the createdRobert Managan2008-09-101-0/+78
| | | | | file to what the user requested in the target. Tex produces a standard name based on the source so this was not being done.
* Fix bugs in regression testsGreg Noel2008-09-102-1/+7
|
* Issue 1307: Invalidate node caches after Execute()Ludwig Hähne2008-09-081-0/+108
|