From c79221225909cf33c9b38deda310a9b8cfee0c85 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 5 Jun 2024 14:19:29 +0200 Subject: Add test verifying cache consistency if some targets are served ... but not all. Also in this case, if an target-level cache entry is written, the dependencies have to be written as well. --- test/end-to-end/target-cache/data/samplelib/TARGETS | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/end-to-end/target-cache/data/samplelib/TARGETS (limited to 'test/end-to-end/target-cache/data/samplelib/TARGETS') diff --git a/test/end-to-end/target-cache/data/samplelib/TARGETS b/test/end-to-end/target-cache/data/samplelib/TARGETS new file mode 100644 index 00000000..ee123a71 --- /dev/null +++ b/test/end-to-end/target-cache/data/samplelib/TARGETS @@ -0,0 +1,14 @@ +{ "": {"type": "export", "target": "lib"} +, "lib": + { "type": ["@", "rules", "CC", "library"] + , "name": ["foo"] + , "srcs": ["foo.cpp"] + , "hdrs": ["foo.hpp"] + } +, "foo.hpp": + { "type": "generic" + , "outs": ["foo.hpp"] + , "cmds": + ["echo '// generated file' > foo.hpp", "echo 'int foo(int x);' >> foo.hpp"] + } +} -- cgit v1.2.3