aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_keg.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb
index c30096ea3..e415be433 100644
--- a/Library/Homebrew/test/test_keg.rb
+++ b/Library/Homebrew/test/test_keg.rb
@@ -199,4 +199,22 @@ class LinkTests < Homebrew::TestCase
@dst.delete
assert_equal 3, @keg.unlink
end
+
+ def test_pkgconfig_is_mkpathed
+ link = HOMEBREW_PREFIX.join("lib", "pkgconfig")
+ @keg.join("lib", "pkgconfig").mkpath
+ @keg.link
+ assert_predicate link.lstat, :directory?
+ end
+
+ def test_symlinks_are_linked_directly
+ link = HOMEBREW_PREFIX.join("lib", "pkgconfig")
+
+ @keg.join("lib", "example").mkpath
+ @keg.join("lib", "pkgconfig").make_symlink "example"
+ @keg.link
+
+ assert_predicate link.resolved_path, :symlink?
+ assert_predicate link.lstat, :symlink?
+ end
end