Mercurial > hg
diff tests/test-profile @ 5099:105d4cf7ec24
Test --time, --profile and --lsprof
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 14 Aug 2007 16:27:35 +0200 |
parents | |
children | 9b0efeb725f4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-profile Tue Aug 14 16:27:35 2007 +0200 @@ -0,0 +1,12 @@ +#!/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 \ No newline at end of file