tests/test-profile
changeset 5162 9b0efeb725f4
parent 5157 105d4cf7ec24
equal deleted inserted replaced
5161:24d306834de5 5162:9b0efeb725f4
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 echo % test --time
     3 echo % test --time
     4 hg --time help 2>&1 | grep -q Time || echo --time failed
     4 hg --time help -q help 2>&1 | grep Time > /dev/null || echo --time failed
     5 
     5 
     6 echo % test --profile
     6 echo % test --profile
     7 hg --profile help 2>&1 | grep -q ncalls || echo --profile failed
     7 if "$TESTDIR/hghave" -q hotshot; then
       
     8     # hotshot might be missing for licensing issues
       
     9     hg --profile help -q help 2>&1 | grep ncalls > /dev/null || echo --profile failed
       
    10 fi
     8 
    11 
     9 echo % test --lsprof
    12 echo % test --lsprof
    10 if "$TESTDIR/hghave" -q lsprof; then
    13 if "$TESTDIR/hghave" -q lsprof; then
    11     hg --lsprof help 2>&1 | grep -q CallCount || echo --lsprof failed
    14     hg --lsprof help -q help 2>&1 | grep CallCount > /dev/null || echo --lsprof failed
    12 fi
    15 fi