diff options
author | dirkbaechle <dl9obn@darc.de> | 2014-08-12 18:19:29 (GMT) |
---|---|---|
committer | dirkbaechle <dl9obn@darc.de> | 2014-08-12 18:19:29 (GMT) |
commit | 2cbc8d2a3226b9e0c8bb847ac16a49879aae5dc6 (patch) | |
tree | 1aeecf754afc80600a3a4807ff7ce2c7becce876 | |
parent | 22f309a6bfcc2621fc7011813adbb14efa4559c5 (diff) | |
parent | 4178bd7ace4291eaffc3aad45e5503a7645e05d3 (diff) | |
download | SCons-2cbc8d2a3226b9e0c8bb847ac16a49879aae5dc6.zip SCons-2cbc8d2a3226b9e0c8bb847ac16a49879aae5dc6.tar.gz SCons-2cbc8d2a3226b9e0c8bb847ac16a49879aae5dc6.tar.bz2 |
Merged in dirkbaechle/scons (pull request #163)
Javac version sentinel for another test that would fail with v1.8 and higher
-rw-r--r-- | test/Repository/RMIC.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Repository/RMIC.py b/test/Repository/RMIC.py index b214b4b..886ccdb 100644 --- a/test/Repository/RMIC.py +++ b/test/Repository/RMIC.py @@ -35,6 +35,27 @@ python = TestSCons.python test = TestSCons.TestSCons() where_javac, java_version = test.java_where_javac() + +# Try to get the major/minor Java version +curver = (1, 0) +if java_version.count('.') == 1: + # Check Java version + major, minor = java_version.split('.') + try: + curver = (int(major), int(minor)) + except: + pass + +# Check the version of the found Java compiler. +# If it's 1.8 or higher, we skip the further RMIC test +# because we'll get warnings about the deprecated API... +# it's just not state-of-the-art anymore. +# Note, how we allow simple version strings like "5" and +# "6" to successfully pass this test. +if curver >= (1, 8): + test.skip_test('The found version of javac is higher than 1.7, skipping test.\n') + + where_java = test.java_where_java() where_rmic = test.java_where_rmic() |