diff --git a/Formula/ngspice.rb b/Formula/ngspice.rb index 85f73f60da..52afff22f0 100644 --- a/Formula/ngspice.rb +++ b/Formula/ngspice.rb @@ -34,6 +34,18 @@ class Ngspice < Formula end test do - system "#{bin}/ngspice", "-v" + (testpath/"test.cir").write <<-EOS.undent + RC test circuit + v1 1 0 1 + r1 1 2 1 + c1 2 0 1 ic=0 + .tran 100u 100m uic + .control + run + quit + .endc + .end + EOS + system "#{bin}/ngspice", "test.cir" end end