##// END OF EJS Templates
Test --time, --profile and --lsprof
Patrick Mezard -
r5099:105d4cf7 default
parent child Browse files
Show More
@@ -0,0 +1,12 b''
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 No newline at end of file
@@ -0,0 +1,3 b''
1 % test --time
2 % test --profile
3 % test --lsprof
@@ -35,11 +35,19 b' def has_eol_in_paths():'
35 except:
35 except:
36 return False
36 return False
37
37
38 def has_lsprof():
39 try:
40 import _lsprof
41 return True
42 except ImportError:
43 return False
44
38 checks = {
45 checks = {
39 "symlink": (has_symlink, "symbolic links"),
46 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
47 "execbit": (has_executablebit, "executable bit"),
40 "fifo": (has_fifo, "named pipes"),
48 "fifo": (has_fifo, "named pipes"),
41 "execbit": (has_executablebit, "executable bit"),
49 "lsprof": (has_lsprof, "python lsprof module"),
42 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
50 "symlink": (has_symlink, "symbolic links"),
43 }
51 }
44
52
45 def list_features():
53 def list_features():
General Comments 0
You need to be logged in to leave comments. Login now