diff options
author | Mats Wichmann <mats@linux.com> | 2022-02-01 20:46:44 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2022-02-02 15:13:21 (GMT) |
commit | b017124ff38f477a5150bbf77325fbfb0a973c90 (patch) | |
tree | cfdb5eb4690113d19d8fbd2791389215f42ff057 /test/Java/JAVACCOMSTR.py | |
parent | fc31681a9b3611dbda818ecfd3c98ee8720bc1bd (diff) | |
download | SCons-b017124ff38f477a5150bbf77325fbfb0a973c90.zip SCons-b017124ff38f477a5150bbf77325fbfb0a973c90.tar.gz SCons-b017124ff38f477a5150bbf77325fbfb0a973c90.tar.bz2 |
Tweak Java e2e tests some more
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>
Diffstat (limited to 'test/Java/JAVACCOMSTR.py')
-rw-r--r-- | test/Java/JAVACCOMSTR.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/Java/JAVACCOMSTR.py b/test/Java/JAVACCOMSTR.py index 4e25815..6f50899 100644 --- a/test/Java/JAVACCOMSTR.py +++ b/test/Java/JAVACCOMSTR.py @@ -41,10 +41,13 @@ test.subdir('src') test.file_fixture('mycompile.py') test.write('SConstruct', """ -env = Environment(TOOLS = ['default', 'javac'], - JAVACCOM = r'%(_python_)s mycompile.py javac $TARGET $SOURCES', - JAVACCOMSTR = "Compiling class(es) $TARGET from $SOURCES") -env.Java(target = 'classes', source = 'src') +DefaultEnvironment(tools=[]) +env = Environment( + TOOLS=['default', 'javac'], + JAVACCOM=r'%(_python_)s mycompile.py javac $TARGET $SOURCES', + JAVACCOMSTR="Compiling class(es) $TARGET from $SOURCES", +) +env.Java(target='classes', source='src') """ % locals()) test.write(['src', 'file1.java'], "file1.java\n/*javac*/\n") |