Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/make/test_make_linking.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/actions/make/test_make_linking.lua b/tests/actions/make/test_make_linking.lua
index 21f454e..7a346e6 100644
--- a/tests/actions/make/test_make_linking.lua
+++ b/tests/actions/make/test_make_linking.lua
@@ -93,4 +93,20 @@
test.string_contains(buffer,format_exspected)
end
+ function T.link_suite.projectLinksToStaticPremakeMadeLibrary_projectDifferInDirectoryHeights_linksUsingCorrectRelativePath()
+ firstProject = project 'firstProject'
+ kind 'StaticLib'
+ language 'C'
+
+ linksToFirstProject = project 'linksToFirstProject'
+ kind 'ConsoleApp'
+ language 'C'
+ links{'firstProject'}
+ location './foo/bar'
+
+ local buffer = get_buffer(linksToFirstProject)
+ local format_exspected = 'LIBS %+%= ../../libfirstProject.a'
+ test.string_contains(buffer,format_exspected)
+ end
+