summaryrefslogtreecommitdiffstats
path: root/test/Java
Commit message (Collapse)AuthorAgeFilesLines
* test: Fix SyntaxWarnings on escapes in Python stringsMats Wichmann2019-09-132-5/+5
| | | | | | | | | | | | | | | | | | This is the remaining batch of SyntaxWarning cleanups in the test/ directory, as flagged by Python 3.8 (now tested with 3.8.0b4). Most of these are escapes in strings that are not recognized as Python-language escapes up front, due to the embedded nature of testing - tests write a string to a file which is actually Python (code or sconscript) which is later to be executed. Also changed the timestamp-fallback test to eliminate an imp module DeprecationWarning: since in all supported Python versions haslib is stdlib, drop that skip check; the md5 skip check can be a simple import now. My test runs with 3.8 show no SyntaxWarnings after this. Signed-off-by: Mats Wichmann <mats@linux.com>
* Use "in" in preference to string find methodMats Wichmann2019-08-301-7/+7
| | | | | | | | In places where only the found/not found status is needed, use the membership operator (in) for checks instead - makes for easier reading and is considered faster for shorter strings. Signed-off-by: Mats Wichmann <mats@linux.com>
* Move the jdk-version-glob test to unit testsMats Wichmann2019-04-171-94/+0
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Add a test for JDK glob matchingMats Wichmann2019-04-161-0/+94
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3352] fix sider complaints: bare exceptMats Wichmann2019-04-141-2/+2
| | | | | | | | | | | Sider in the CI system doesn't like the change which added a try/except block for a version without a dot. This was copied from a different file, so to fix the complaint, four instances are actually updated to "except ValueError" - I am assuming that this is the only thing that could go wrong, a version string cannot be converted with int(foo), which would throw ValueError. Signed-off-by: Mats Wichmann <mats@linux.com>
* get rid of code copying PATH from os.environWilliam Deegan2018-11-061-1/+3
|
* Fix Java/multi-step.py to avoid picking up cygwin or mingw's link.exe which ↵William Deegan2018-11-051-1/+8
| | | | takes different arguments than the expected msvc
* Fix logic which populates JAVAINCLUDES when javac is not found. Restore ↵William Deegan2018-10-164-0/+15
| | | | checks in some java tests to skip test if no javac and/or jar found
* Fixes for Java tests on win32William Deegan2018-10-0211-90/+55
|
* Update to use paths set by javac, rmic. Also update RMISecurityManager to ↵William Deegan2018-10-021-13/+18
| | | | SecurityManager (RMI.. has been deprecated for some time. JDK 1.8 started to issue deprecation warnings and break test)
* Changed to allow scons java logic to find install for win32. Also add ↵William Deegan2018-10-021-6/+5
| | | | declspec in c file which is sole object in DLL to ensure mslink creates the expected .LIB file.
* Switch to depending on javac tool finding javac on win32 rather than the ↵William Deegan2018-10-011-17/+11
| | | | test infrastructure. JavaCommon now has reasonable defaults for windows java sdk installs
* add logic to find java installs and on win32 use this to add to ↵William Deegan2018-10-012-2/+2
| | | | env['ENV']['PATH']
* Fix missing -c in testcaseWilliam Deegan2018-10-012-4/+4
|
* Add test for 1.8. Modularize java tests and move files to a fixture. Change ↵William Deegan2018-10-013-3/+9
| | | | TestCommon's options_arguments to keep passed lists and not join them into a string.
* change method of finding javac from using full path (which fails when it has ↵William Deegan2018-09-3015-250/+373
| | | | a space in it), to appending the path to javac to env['ENV']['PATH']. (Which is basically what msvc/msvs do)
* Update java version supportMats Wichmann2018-07-181-0/+4
| | | | | | | | | | 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>
* change test to skip initializing any tools in DefaulEnvironment. Should ↵William Deegan2018-05-111-0/+10
| | | | speed up test on windows a bit
* Change bug references from tigris -> githubMats Wichmann2018-04-244-4/+4
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* fix for issue 3042, Jar method was not respecting variant dirs when using ↵Daniel Moody2018-02-111-3/+4
| | | | os.path to detect files or dirs
* updated jar to handle directories better, JarClassFile build doesnt return ↵Daniel Moody2017-12-031-1/+141
| | | | any targets if no Java files are in the directory
* updated jar.py to handle nodes and varanit dirs better, added test for nodes ↵Daniel Moody2017-12-031-5/+9
| | | | and varient dir.
* updated Jar builder to flatten source list, and added test for embedded sourcesDaniel Moody2017-11-191-0/+87
|
* Added Jar test to check if multiple targets can be passed.Daniel Moody2017-11-141-8/+29
|
* updated the JAR test to test that the java source files were actually ↵Daniel Moody2017-10-262-5/+21
| | | | compiled and are in the resulting jar file. Also updated the swig dependency test to throw no result from what seems to be a non java related bug.
* added test to JAR to also check the case that java source files are passed ↵Daniel Moody2017-10-101-0/+62
| | | | directly as a source to the Jar builder. The only other test that did this was multi-setp.py which was reliant on swig being installed.
* fix to run on mac. explicitly request swig toolWilliam Deegan2017-04-011-1/+1
|
* py2/3 must_match mode='r' changesWilliam Deegan2017-03-134-15/+15
|
* swap using wrapper.py fixture to wrapper_with_args.py. The fixture swap ↵William Deegan2017-03-134-20/+23
| | | | missed that java tests wrapper was different. Also mode rb/wb changes, and switch to must_match with mode='r'
* Replace list(filter()) with list comprehension.Craig Rodrigues2017-03-113-3/+3
|
* Moved common my<xxx>.py functions to global fixture and resolve byte/str.William Blevins2016-10-038-117/+16
|
* Updating tests to use fixture wrapper.py.William Blevins2016-09-243-18/+3
|
* Merge in default.Russel Winder2016-01-193-2/+19
|\
| * added comment per William Blevins comment on pull request to indicate why ↵William Deegan2016-01-173-0/+9
| | | | | | | | we're skipping some tests for gcj
| * changes to skip tests on ubuntu-next when gcj and not real java, and also ↵William Deegan2016-01-173-2/+10
| | | | | | | | when no latex is available
* | Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-4/+4
|\ \ | |/
| * - fixed Java test for derived sources problem, now favouring skip()Dirk Baechle2014-09-181-4/+4
| | | | | | | | over no_result()
* | Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-232-36/+177
|\ \ | |/ | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * - several smaller fixes to get the Linux buildslaves green againDirk Baechle2014-08-071-36/+53
| |
| * Skipping Java DerivedSourceTest for now until underlying issue is fixed.Gary Oberbrunner2014-07-201-0/+4
| |
| * Merging in pull request #152 from William Blevins (Java test)Gary Oberbrunner2014-07-201-0/+120
| |\
| | * Issue 1771/2931: Added no_result check for tools to validate initial test ↵William Blevins2014-07-181-0/+4
| | | | | | | | | | | | conditions.
| | * Updated DerivedSourceTest.py to test against a dependency tree.William Blevins2014-07-161-1/+20
| | | | | | | | | | | | This was a best guess for the output.
| | * Set default toolchain.William Blevins2014-07-131-3/+3
| | | | | | | | | | | | Other updates per code review.
| | * Added a high-level test for issue 1771/2931.William Blevins2014-07-121-0/+97
| |/ | | | | | | | | Shows that Java emitter for derived-sources is broken regardless of the source generation method.
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-0/+1
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-1/+1
|/
* Changes for issue #2730:Dirk Baechle2011-07-072-0/+175
| | | | | | - temporarily disabling the detect routine for the Tools 'jar' and 'rmic' - added a simple testcase for each - changes to Announce.txt (typos) and CHANGES.txt
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-243-6/+0
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* Replace remaining os.path.walk() calls with os.walk().Steven Knight2010-04-183-33/+3
|