From 01e5931750f54b3ed0e7d18e05f868d81c8ebed6 Mon Sep 17 00:00:00 2001 From: William Blevins Date: Tue, 15 Jul 2014 22:02:56 -0400 Subject: Updated DerivedSourceTest.py to test against a dependency tree. This was a best guess for the output. --- test/Java/DerivedSourceTest.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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 = '.') -- cgit v0.12