From c2462e6e9f4f37b8f959fed6656cd215f76bbdf9 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Wed, 12 Jun 2013 18:23:04 +0200 Subject: libvirt: Adding a test --- Library/Formula/libvirt.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3