aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libvirt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/libvirt.rb')
-rw-r--r--Library/Formula/libvirt.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/libvirt.rb b/Library/Formula/libvirt.rb
index 1c4ba97b4..6b88d28a2 100644
--- a/Library/Formula/libvirt.rb
+++ b/Library/Formula/libvirt.rb
@@ -61,4 +61,14 @@ class Libvirt < Formula
end
end
end
+
+ test do
+ if build.with? 'python'
+ python do
+ # Testing to import the mod because that is a .so file where linking
+ # can break.
+ system python, '-c', "import libvirtmod"
+ end
+ end
+ end
end