- Timestamp:
- Feb 24, 2022, 2:36:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/ippTests/ippCheck/tap.pro
r42024 r42058 3 3 if (not($?TAP_VERBOSE)) set TAP_VERBOSE = 1 4 4 5 macro plan5 macro tap.plan 6 6 if ($0 != 2) 7 7 echo "USAGE: plan (Ntest)" … … 12 12 $tap_Npass = 0 13 13 $tap_Nfail = 0 14 $tap_Nskip = 0 14 15 $tap_Ntest = 0 15 16 end 16 17 17 macro done18 if ( not($?tap_Nplan))19 echo " ERROR: tap tests not planned"18 macro tap.skip 19 if ($0 != 2) 20 echo "USAGE skip (Nskip)" 20 21 break 21 22 end 22 23 23 echo "planned $tap_Nplan tests, ran $tap_Ntest" 24 echo "passed $tap_Npass tests, failed $tap_Nfail tests" 25 26 if (($tap_Nfail == 0) && ($tap_Ntest == $tap_Nplan) && ($tap_Npass == $tap_Ntest)) 27 echo "PASS: all tests run and passed" 28 return 1 29 end 30 31 if ($tap_Nfail > 0) 32 echo "FAIL: $tap_Nfail tests failed" 33 end 34 35 if ($tap_Ntest != $tap_Nplan) 36 echo "FAIL: not all tests run" 37 end 38 39 if ($tap_Ntest != $tap_Npass + $tap_Nfail) 40 echo "FAIL: inconsistent count: $tap_Ntest tests != $tap_Npass pass + $tap_Nfail fail" 41 end 24 $tap_Nskip += $1 42 25 end 43 26 44 macro ok27 macro tap.ok 45 28 if ($0 != 3) 46 echo "USAGE (condition) (label)"29 echo "USAGE: ok (condition) (label)" 47 30 break 48 31 end … … 63 46 end 64 47 48 macro tap.done 49 if (not($?tap_Nplan)) 50 echo "ERROR: tap tests not planned" 51 break 52 end 53 54 echo "planned $tap_Nplan tests, ran $tap_Ntest, skipped $tap_Nskip" 55 echo "passed $tap_Npass tests, failed $tap_Nfail tests" 56 57 if (($tap_Nfail == 0) && ($tap_Ntest + $tap_Nskip == $tap_Nplan) && ($tap_Npass == $tap_Ntest)) 58 echo "PASS: all tests run and passed" 59 return 1 60 end 61 62 if ($tap_Nfail > 0) 63 echo "FAIL: $tap_Nfail tests failed" 64 end 65 66 if ($tap_Ntest + $tap_Nskip != $tap_Nplan) 67 echo "FAIL: not all tests run" 68 end 69 70 if ($tap_Ntest != $tap_Npass + $tap_Nfail) 71 echo "FAIL: inconsistent count: $tap_Ntest tests != $tap_Npass pass + $tap_Nfail fail" 72 end 73 end 74
Note:
See TracChangeset
for help on using the changeset viewer.
