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:
authorLiam Devine <dmail00@gmail.com>2011-05-27 18:55:06 +0400
committerLiam Devine <dmail00@gmail.com>2011-05-27 18:55:06 +0400
commit993959c899b9088974ebd89e0aeb0c53afd3bfcc (patch)
treeb065b2427ee958364a4af1608681e181e2ffca97 /tests
parent82a86229de6b571c89bfb4b67dffcf38e1fc1703 (diff)
Incorrect relative paths for gmake sibling static libraries
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 5404bc1..0869e2d 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
+