summaryrefslogtreecommitdiffstats
path: root/test/Java
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins@gmail.com>2014-07-16 02:02:56 (GMT)
committerWilliam Blevins <wblevins@gmail.com>2014-07-16 02:02:56 (GMT)
commit01e5931750f54b3ed0e7d18e05f868d81c8ebed6 (patch)
tree28be51273c95fe44927657d0b5a19d5a9df0ac71 /test/Java
parent3030945eeb2121acbccab9db8fdf72926bf90510 (diff)
downloadSCons-01e5931750f54b3ed0e7d18e05f868d81c8ebed6.zip
SCons-01e5931750f54b3ed0e7d18e05f868d81c8ebed6.tar.gz
SCons-01e5931750f54b3ed0e7d18e05f868d81c8ebed6.tar.bz2
Updated DerivedSourceTest.py to test against a dependency tree.
This was a best guess for the output.
Diffstat (limited to 'test/Java')
-rw-r--r--test/Java/DerivedSourceTest.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/test/Java/DerivedSourceTest.py b/test/Java/DerivedSourceTest.py
index 7478a1e..5cf4af7 100644
--- a/test/Java/DerivedSourceTest.py
+++ b/test/Java/DerivedSourceTest.py
@@ -92,6 +92,25 @@ env.Java(
"""
)
-test.run( arguments = '.' )
+expected = test.wrap_stdout(
+build_str =
+'''\
+Copy("org/sample/Sample.java", "Sample.java")
+javac -d build -sourcepath org/sample org/sample/Sample.java
++-.
+ +-build
+ | +-build/org
+ | +-build/org/sample
+ | +-build/org/sample/Sample$InnerEnum.class
+ | +-org/sample/Sample.java
+ | +-build/org/sample/Sample.class
+ | +-org/sample/Sample.java
+ +-org
+ +-org/sample
+ +-org/sample/Sample.java
+'''.replace( '/', os.sep )
+)
+
+test.run( arguments = '--tree=derived', stdout = expected )
test.up_to_date(arguments = '.')