pygtkglext: use test DSL
This commit is contained in:
parent
aeb5588f04
commit
fe41590f9d
1 changed files with 2 additions and 10 deletions
|
@ -17,15 +17,7 @@ class Pygtkglext < Formula
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test
|
test do
|
||||||
# Test importing the modules
|
system "python", "-c", "import pygtk", "pygtk.require('2.0')", "import gtk.gtkgl"
|
||||||
mktemp do
|
|
||||||
(Pathname.pwd+'test.py').write <<-EOS.undent
|
|
||||||
import pygtk
|
|
||||||
pygtk.require('2.0')
|
|
||||||
import gtk.gtkgl
|
|
||||||
EOS
|
|
||||||
system "python test.py"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue