diff options
Diffstat (limited to 'test/rebuild-generated.py')
-rw-r--r-- | test/rebuild-generated.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rebuild-generated.py b/test/rebuild-generated.py index e50992d..6beba74 100644 --- a/test/rebuild-generated.py +++ b/test/rebuild-generated.py @@ -71,7 +71,9 @@ test.write('SConstruct', """\ env = Environment() -kernelDefines = env.Command("header.hh", [], "echo > $TARGET") +kernelDefines = env.Command("header.hh", + "header.hh.in", + Copy('$TARGET', '$SOURCE')) kernelImporterSource = env.Command( "generated.cc", ["%s"], @@ -104,6 +106,8 @@ test.write('target.cc', """\ #endif """) +test.write("header.hh.in", "#define HEADER_HH 1\n") + test.run(arguments = 'target' + _obj) expected_stdout = """\ |