if "dir1-link" in group2:
if "dir1-link" not in group1:
t.expect_addition("include/file1.h")
+ else:
+ # When a directory is split the link needs to be recreated.
+ # On Windows, the test system checks the mod time of the
+ # link rather than the link target, so this may be seen as
+ # an update.
+ t.ignore_touch("include/file1.h")
t.expect_content("include/file1.h", "file1")
else:
t.ignore_removal("include/file1.h")
if "dir2-link" in group2:
if "dir2-link" not in group1:
t.expect_addition("include/file2.h")
+ else:
+ t.ignore_touch("include/file2.h")
t.expect_content("include/file2.h", "file2")
else:
t.ignore_removal("include/file2.h")
t.run_build_system(group1)
t.run_build_system(group2 + ["-d+12"])
- t.ignore_addition("include/file1.h")
- t.ignore_addition("include/nested/file2.h")
- t.ignore_addition("include/nested/file3.h")
- t.ignore_addition("include/nested/xxx/yyy/file4.h")
- t.ignore_addition("include/nested/xxx/yyy/file5.h")
+ def check_file(target, file):
+ if target in group2:
+ if target in group1:
+ t.ignore_touch(file)
+ else:
+ t.expect_addition(file)
+
+ check_file("dir1-link", "include/file1.h")
+ check_file("dir2-link", "include/nested/file2.h")
+ check_file("dir3-link", "include/nested/file3.h")
+ check_file("dir4-link", "include/nested/xxx/yyy/file4.h")
+ check_file("dir5-link", "include/nested/xxx/yyy/file5.h")
ignore_config(t)
t.expect_nothing_more()
t.run_build_system(["test"])
- t.expect_addition("bin/$toolset/debug/test.obj")
+ t.expect_addition("bin/$toolset/debug*/test.obj")
t.run_build_system()
t.expect_nothing_more()
t.run_build_system(["test"])
t.expect_addition("include/file1.h")
- t.expect_addition("bin/$toolset/debug/test.obj")
+ t.expect_addition("bin/$toolset/debug*/test.obj")
+ t.ignore_touch("include/file2.h")
t.expect_nothing_more()
t.cleanup()