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

This commit is contained in:
Jim Monte 2019-12-08 23:32:02 -05:00
parent 7496060d80
commit 3c73a98038
4 changed files with 48 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -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
echo "INFO: ok"
quit 0
if n_pass = 2
echo "INFO: ok"
quit 0
end
echo ERROR: $&n_pass of 2 tests passed
quit 1
.endc

View File

@ -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
echo "INFO: ok"
quit 0
if n_pass = 2
echo "INFO: ok"
quit 0
end
echo ERROR: $&n_pass of 2 tests passed
quit 1
.endc