diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-09 15:24:55 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-12 14:46:19 +0100 |
commit | 886c7b680928276d7f925d30fc206ca27d9a97d1 (patch) | |
tree | 4471690974cc15caad524274c88fff830bf2c127 /tests/test_cases/deps/TARGETS | |
parent | 6e10ee13df0b83511d7fe94bb755ac53f993c0ec (diff) | |
download | rules-cc-886c7b680928276d7f925d30fc206ca27d9a97d1.tar.gz |
Add tests and readme
Diffstat (limited to 'tests/test_cases/deps/TARGETS')
-rw-r--r-- | tests/test_cases/deps/TARGETS | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS new file mode 100644 index 0000000..3fcf850 --- /dev/null +++ b/tests/test_cases/deps/TARGETS @@ -0,0 +1,34 @@ +{ "private": + { "type": ["test_rules", "test_case"] + , "name": ["deps_private"] + , "targets": + ["+foo", "-main_includes_foo", "+main_links_foo", "+main_links_bar_foo"] + , "asserts": + [ "test -f foo/foo/libfoo.a" + , "test -f foo/foo/foo.hpp" + , "! test -f foo/bar/bar.hpp" + , "./main_links_foo/main | grep foo" + , "./main_links_bar_foo/main | grep bar" + , "./main_links_bar_foo/main | grep foo" + ] + , "data": [["TREE", null, "private"]] + } +, "public": + { "type": ["test_rules", "test_case"] + , "name": ["deps_public"] + , "targets": + ["+foo", "+main_includes_foo", "+main_links_foo", "+main_links_bar_foo"] + , "asserts": + [ "test -f foo/foo/libfoo.a" + , "test -f foo/foo/foo.hpp" + , "! test -f foo/bar/bar.hpp" + , "./main_includes_foo/main | grep main" + , "./main_links_foo/main | grep foo" + , "./main_links_bar_foo/main | grep bar" + , "./main_links_bar_foo/main | grep foo" + ] + , "data": [["TREE", null, "public"]] + } +, "ALL": + {"type": "install", "deps": ["private", "public"], "tainted": ["test"]} +} |