cvc4: add test to expose current bug

This breaks this formula, but the formula shouldn't currently be passing
its tests as it produces broken binaries on El Capitan.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
Adam C. Foltzer 2015-11-05 11:05:47 -08:00 committed by Andrew Janke
parent fe5c0c58fc
commit 7727e75caa

View file

@ -45,5 +45,15 @@ class Cvc4 < Formula
EOS
result = shell_output "#{bin}/cvc4 #{(testpath/"simple.cvc")}"
assert_match /valid/, result
(testpath/"simple.smt").write <<-EOS.undent
(set-option :produce-models true)
(set-logic QF_BV)
(define-fun s_2 () Bool false)
(define-fun s_1 () Bool true)
(assert (not s_1))
(check-sat)
EOS
result = shell_output "#{bin}/cvc4 --lang smt #{(testpath/"simple.smt")}"
assert_match /unsat/, result
end
end