tests/test-profile
author madhu@madhu
Wed, 25 Mar 2009 01:49:03 +0530
changeset 7870 7bcce39e8f07
parent 5102 9b0efeb725f4
child 8021 1c2cf2e5dc9b
permissions -rwxr-xr-x
Returns lines changed for paths specified as arguments correctly. This fixes issue 1569. hg churn <path> now returns only the number of lines changed in the path, if the path is specified by filtering files through a match filter at the changeset level. test-churn has been updated to take care of this issue.

#!/bin/sh

echo % test --time
hg --time help -q help 2>&1 | grep Time > /dev/null || echo --time failed

echo % test --profile
if "$TESTDIR/hghave" -q hotshot; then
    # hotshot might be missing for licensing issues
    hg --profile help -q help 2>&1 | grep ncalls > /dev/null || echo --profile failed
fi

echo % test --lsprof
if "$TESTDIR/hghave" -q lsprof; then
    hg --lsprof help -q help 2>&1 | grep CallCount > /dev/null || echo --lsprof failed
fi