aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2013-06-12 18:23:04 +0200
committerSamuel John2013-06-12 18:23:04 +0200
commitc2462e6e9f4f37b8f959fed6656cd215f76bbdf9 (patch)
treed0e55059a62ba71288aa7ea2178dee241013232d /Library/Formula
parent35cea0ba4241f92630fc979462b03a2361bb488f (diff)
downloadhomebrew-c2462e6e9f4f37b8f959fed6656cd215f76bbdf9.tar.bz2
libvirt: Adding a test
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libvirt.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/libvirt.rb b/Library/Formula/libvirt.rb
index 644946f2a..1008bcfe8 100644
--- a/Library/Formula/libvirt.rb
+++ b/Library/Formula/libvirt.rb
@@ -61,4 +61,12 @@ class Libvirt < Formula
end
end
end
+
+ test do
+ if build.with? 'python'
+ # Testing to import the mod because that is a .so file where linking
+ # can break.
+ system python, '-c', "import libvirtmod"
+ end
+ end
end