comparison 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
comparison
equal deleted inserted replaced
5098:0bbd86b847dd 5099:105d4cf7ec24
1 #!/bin/sh
2
3 echo % test --time
4 hg --time help 2>&1 | grep -q Time || echo --time failed
5
6 echo % test --profile
7 hg --profile help 2>&1 | grep -q ncalls || echo --profile failed
8
9 echo % test --lsprof
10 if "$TESTDIR/hghave" -q lsprof; then
11 hg --lsprof help 2>&1 | grep -q CallCount || echo --lsprof failed
12 fi