Browse Source

Modified regression tests for library processing to make indication of failures more robust

pre-master-46
Jim Monte 6 years ago
committed by Holger Vogt
parent
commit
66e79e1b39
  1. 9
      tests/regression/lib-processing/ex1a.cir
  2. 9
      tests/regression/lib-processing/ex1b.cir
  3. 25
      tests/regression/lib-processing/ex2a.cir
  4. 25
      tests/regression/lib-processing/ex3a.cir

9
tests/regression/lib-processing/ex1a.cir

@ -17,12 +17,13 @@ op
echo "Note: v(check0) = $&v(check0)"
if abs(v(check0)) > 1e-9
quit 1
if abs(v(check0)) <= 1e-9
echo "INFO: ok"
quit 0
end
echo "INFO: ok"
quit 0
echo ERROR: Test failure
quit 1
.endc

9
tests/regression/lib-processing/ex1b.cir

@ -21,12 +21,13 @@ op
echo "Note: v(check0) = $&v(check0)"
if abs(v(check0)) > 1e-9
quit 1
if abs(v(check0)) <= 1e-9
echo "INFO: ok"
quit 0
end
echo "INFO: ok"
quit 0
echo ERROR: Test failure
quit 1
.endc

25
tests/regression/lib-processing/ex2a.cir

@ -15,19 +15,32 @@ Vcheck2 9 check2 2.0V
.control
op
let n_pass = 0
echo "Note: v(check1) = $&v(check1)"
echo "Note: v(check2) = $&v(check2)"
if abs(v(check1)) > 1e-9
quit 1
if abs(v(check1)) <= 1e-9
let n_pass = n_pass + 1
else
echo "ERROR: Test 1 failed"
end
if abs(v(check2)) > 1e-9
quit 1
if abs(v(check2)) <= 1e-9
let n_pass = n_pass + 1
else
echo "ERROR: Test 2 failed"
end
if n_pass = 2
echo "INFO: ok"
quit 0
end
echo "INFO: ok"
quit 0
echo ERROR: $&n_pass of 2 tests passed
quit 1
.endc

25
tests/regression/lib-processing/ex3a.cir

@ -15,19 +15,32 @@ Vcheck2 9 check2 2.0V
.control
op
let n_pass = 0
echo "Note: v(check1) = $&v(check1)"
echo "Note: v(check2) = $&v(check2)"
if abs(v(check1)) > 1e-9
quit 1
if abs(v(check1)) <= 1e-9
let n_pass = n_pass + 1
else
echo "ERROR: Test 1 failed"
end
if abs(v(check2)) > 1e-9
quit 1
if abs(v(check2)) <= 1e-9
let n_pass = n_pass + 1
else
echo "ERROR: Test 2 failed"
end
if n_pass = 2
echo "INFO: ok"
quit 0
end
echo "INFO: ok"
quit 0
echo ERROR: $&n_pass of 2 tests passed
quit 1
.endc

Loading…
Cancel
Save