tests/test-profile
author Patrick Mezard <pmezard@gmail.com>
Tue, 14 Aug 2007 16:27:35 +0200
changeset 5099 105d4cf7ec24
child 5102 9b0efeb725f4
permissions -rwxr-xr-x
Test --time, --profile and --lsprof

#!/bin/sh

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

echo % test --profile
hg --profile help 2>&1 | grep -q ncalls || echo --profile failed

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