view tests/test-profile @ 5166:b1e147f60d62

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Tue, 14 Aug 2007 16:30:38 +0200
parents 105d4cf7ec24
children 9b0efeb725f4
line wrap: on
line source

#!/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