Modified regression tests for library processing to make indication of failures more robust
This commit is contained in:
parent
7496060d80
commit
3c73a98038
|
|
@ -17,12 +17,13 @@ op
|
||||||
|
|
||||||
echo "Note: v(check0) = $&v(check0)"
|
echo "Note: v(check0) = $&v(check0)"
|
||||||
|
|
||||||
if abs(v(check0)) > 1e-9
|
if abs(v(check0)) <= 1e-9
|
||||||
quit 1
|
echo "INFO: ok"
|
||||||
|
quit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
echo "INFO: ok"
|
echo ERROR: Test failure
|
||||||
quit 0
|
quit 1
|
||||||
|
|
||||||
.endc
|
.endc
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,13 @@ op
|
||||||
|
|
||||||
echo "Note: v(check0) = $&v(check0)"
|
echo "Note: v(check0) = $&v(check0)"
|
||||||
|
|
||||||
if abs(v(check0)) > 1e-9
|
if abs(v(check0)) <= 1e-9
|
||||||
quit 1
|
echo "INFO: ok"
|
||||||
|
quit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
echo "INFO: ok"
|
echo ERROR: Test failure
|
||||||
quit 0
|
quit 1
|
||||||
|
|
||||||
.endc
|
.endc
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,19 +15,32 @@ Vcheck2 9 check2 2.0V
|
||||||
.control
|
.control
|
||||||
op
|
op
|
||||||
|
|
||||||
|
let n_pass = 0
|
||||||
|
|
||||||
echo "Note: v(check1) = $&v(check1)"
|
echo "Note: v(check1) = $&v(check1)"
|
||||||
echo "Note: v(check2) = $&v(check2)"
|
echo "Note: v(check2) = $&v(check2)"
|
||||||
|
|
||||||
if abs(v(check1)) > 1e-9
|
if abs(v(check1)) <= 1e-9
|
||||||
quit 1
|
let n_pass = n_pass + 1
|
||||||
|
else
|
||||||
|
echo "ERROR: Test 1 failed"
|
||||||
end
|
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
|
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
|
.endc
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,19 +15,32 @@ Vcheck2 9 check2 2.0V
|
||||||
.control
|
.control
|
||||||
op
|
op
|
||||||
|
|
||||||
|
let n_pass = 0
|
||||||
|
|
||||||
echo "Note: v(check1) = $&v(check1)"
|
echo "Note: v(check1) = $&v(check1)"
|
||||||
echo "Note: v(check2) = $&v(check2)"
|
echo "Note: v(check2) = $&v(check2)"
|
||||||
|
|
||||||
if abs(v(check1)) > 1e-9
|
if abs(v(check1)) <= 1e-9
|
||||||
quit 1
|
let n_pass = n_pass + 1
|
||||||
|
else
|
||||||
|
echo "ERROR: Test 1 failed"
|
||||||
end
|
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
|
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
|
.endc
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue