IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 24, 2022, 2:36:09 PM (4 years ago)
Author:
eugene
Message:

add tap.skip, fix counting of tap tests based on context (warp, diff, camera), add option for ippCheck class to modify success criteria

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ippTests/ippCheck/tap.pro

    r42024 r42058  
    33if (not($?TAP_VERBOSE)) set TAP_VERBOSE = 1
    44
    5 macro plan
     5macro tap.plan
    66 if ($0 != 2)
    77  echo "USAGE: plan (Ntest)"
     
    1212 $tap_Npass = 0
    1313 $tap_Nfail = 0
     14 $tap_Nskip = 0
    1415 $tap_Ntest = 0
    1516end
    1617
    17 macro done
    18  if (not($?tap_Nplan))
    19   echo "ERROR: tap tests not planned"
     18macro tap.skip
     19 if ($0 != 2)
     20  echo "USAGE skip (Nskip)"
    2021  break
    2122 end
    2223
    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
    4225end
    4326
    44 macro ok
     27macro tap.ok
    4528 if ($0 != 3)
    46   echo "USAGE (condition) (label)"
     29  echo "USAGE: ok (condition) (label)"
    4730  break
    4831 end
     
    6346end
    6447
     48macro 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
     73end
     74
Note: See TracChangeset for help on using the changeset viewer.