From 71a2459012df43239657aede7f24733f2e9dfc46 Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Tue, 10 Sep 2024 16:12:27 +0200 Subject: Add test verifying dependency chains Shared libraries require their (direct and indirect) dependencies to be built in a position independent way. This might cause such a dependent library to be built twice. As, however, shared libraries need not forward their static dependencies this does not cause staging conflicts. Verify that this is also the case for distant indirect dependencies. Co-authored-by: Klaus Aehlig --- tests/test_cases/deps/TARGETS | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/test_cases/deps/TARGETS') diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS index ece8560..0ac2f3e 100644 --- a/tests/test_cases/deps/TARGETS +++ b/tests/test_cases/deps/TARGETS @@ -389,6 +389,16 @@ ] , "data": [["TREE", null, "lint"]] } +, "chain": + { "type": ["test_rules", "test_case"] + , "name": ["chain"] + , "targets": ["+main", "+main-with-deps"] + , "asserts": + [ "./main-with-deps/bin/main | grep 'foo.*fine'" + , "./main-with-deps/bin/main | grep 'qux.*ok'" + ] + , "data": [["TREE", null, "chain"]] + } , "ALL": { "type": "install" , "deps": @@ -402,6 +412,7 @@ , "components" , "transitive-components" , "lint" + , "chain" ] , "tainted": ["test"] } -- cgit v1.2.3