| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Formatting of embedded test scripts
Extract myrmic.py to fixture dir
Some more DefaultEnvironment and tools limiting for performance
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
| |
There's no reason for these tests to initialize all tools since
only checking for one. During development of unrelated PR #4088
these two failed initializing gcc tool - might as well run as
lean as possible.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* The Jar test is split into requires-jdk and not.
* Move some inline tool definitions to fixture files.
* Reformat some stuff.
* Some linting and commenting in Jar tool.
* Enabled test for a non-java file when Jar source is a directory
(was commented out) - needed to add a Command to copy the file
to the directory where the class files were generated.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous sanity check was to see if the less-optimistic
WhereIs could find javah, and skip if not, since java_where_javah
looks many more places than SCons will actually look. This
was insufficient - some openjdk packages don't clean up the
alternatives link to javah even if a java version which doesn't
have it becomes the selected version. Add a check on found
paths to detect a mismatch.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the three tests which fail, skip if the command finder (WhereIs), which
is much less aggressive than the java_where_j* routines, doesn't find javah.
Split the JAVAH test file into two files, so that the part which
doesn't call javah can run even if the rest is skipped.
Did the header cleanup and partial reformats on those.
Leave a comment in the Repository/JavaH test, and do some reformatting
there as well. Test needs rework, but for now doesn't fail so leave alone.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
| |
Update file headers
Remove references to javah that are not used
Black a couple of SConstcuts
No functional changes - prep work for javah workarounds.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
| |
Eliminate unneeded imports, and a few unneeded statements -
usually "pass" where it is not syntactically needed.
A couple of import try blocks were eliminated or changed
when they're "cannot happen" due to current floor Python version.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
| |
test.verbose_set() enables verbose mode, can be a useful
debugging aid. Shouldn't be left in in production tests,
as it creates noise in the test log.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A couple of minor reformats along the way, most prominently, in tests,
if being edited anyway, make sure the docstring most tests have is
actually the docstring (sometimes the __revision__ line came before,
which makes the string not be the docstring).
Snuck in some minor framework changes that were orphaned when another
draft PR was not needed: this almost all docstring changes, the
functional part is using casefold instead of lower in a match func -
a slightly better approach which is now possible that Py2 compatibility
is not needed.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
takes different arguments than the expected msvc
|
|
|
|
| |
checks in some java tests to skip test if no javac and/or jar found
|
| |
|
|
|
|
| |
SecurityManager (RMI.. has been deprecated for some time. JDK 1.8 started to issue deprecation warnings and break test)
|
|
|
|
| |
declspec in c file which is sole object in DLL to ensure mslink creates the expected .LIB file.
|
|
|
|
| |
test infrastructure. JavaCommon now has reasonable defaults for windows java sdk installs
|
|
|
|
| |
env['ENV']['PATH']
|
| |
|
|
|
|
| |
TestCommon's options_arguments to keep passed lists and not join them into a string.
|
|
|
|
| |
a space in it), to appending the path to javac to env['ENV']['PATH']. (Which is basically what msvc/msvs do)
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
speed up test on windows a bit
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
os.path to detect files or dirs
|
|
|
|
| |
any targets if no Java files are in the directory
|
|
|
|
| |
and varient dir.
|
| |
|
| |
|
|
|
|
| |
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.
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
missed that java tests wrapper was different. Also mode rb/wb changes, and switch to must_match with mode='r'
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
we're skipping some tests for gcj
|
| |
| |
| |
| | |
when no latex is available
|
|\ \
| |/ |
|
| |
| |
| |
| | |
over no_result()
|
|\ \
| |/
| |
| |
| | |
Hand-updated a few things to keep them python3-safe, and handled
several merge conflicts.
|
| | |
|
| | |
|