From 2eafcd6f473910331f38c029cdb268eb4eae68ae Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 21 May 2024 18:50:37 +0200 Subject: Add test for creating shared lib from object lib --- tests/test_cases/deps/TARGETS | 3 ++- tests/test_cases/deps/object/TARGETS | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/test_cases') diff --git a/tests/test_cases/deps/TARGETS b/tests/test_cases/deps/TARGETS index 7e4dd28..2ed2cf4 100644 --- a/tests/test_cases/deps/TARGETS +++ b/tests/test_cases/deps/TARGETS @@ -99,10 +99,11 @@ , "object": { "type": ["test_rules", "test_case"] , "name": ["deps_object"] - , "targets": ["+foo", "+bar", "+main", "+test_main", "+install_main"] + , "targets": ["+foo", "+bar", "+baz", "+main", "+test_main", "+install_main"] , "asserts": [ "[ -f ./foo/libfoo.so ]" , "[ -f ./bar/bar/bar.o ]" + , "[ -f ./baz/libbaz.so ]" , "[ -f ./install_main/lib/libfoo.so ]" , "[ ! -f ./install_main/lib/bar/bar.o ]" , "[ \"$(./install_main/bin/main)\" = 'Hello World and Galaxy' ]" diff --git a/tests/test_cases/deps/object/TARGETS b/tests/test_cases/deps/object/TARGETS index bd69478..98d7bdb 100644 --- a/tests/test_cases/deps/object/TARGETS +++ b/tests/test_cases/deps/object/TARGETS @@ -14,6 +14,13 @@ , "srcs": ["bar.cpp"] , "stage": ["bar"] } +, "baz": + { "type": ["@", "rules", "CC", "library"] + , "name": ["baz"] + , "shared": ["yes"] + , "deps": ["bar"] + , "stage": ["baz"] + } , "main": { "type": ["@", "rules", "CC", "binary"] , "name": ["main"] -- cgit v1.2.3