opencv@2: fix python test
This commit is contained in:
parent
5bbbb3a6a0
commit
7191ac517b
1 changed files with 4 additions and 1 deletions
|
@ -90,6 +90,9 @@ class OpencvAT2 < Formula
|
|||
EOS
|
||||
system ENV.cxx, "test.cpp", "-I#{include}", "-L#{lib}", "-o", "test"
|
||||
assert_equal version.to_s, shell_output("./test").strip
|
||||
assert_match version.to_s, shell_output("python -c 'import cv2; print(cv2.__version__)'")
|
||||
|
||||
ENV["PYTHONPATH"] = lib/"python2.7/site-packages"
|
||||
assert_match version.to_s,
|
||||
shell_output("python -c 'import cv2; print(cv2.__version__)'")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue