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 |
@@ -35,11 +35,19 b' def has_eol_in_paths():' | |||
|
35 | 35 | except: |
|
36 | 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 | 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 | 48 | "fifo": (has_fifo, "named pipes"), |
|
41 | "execbit": (has_executablebit, "executable bit"), | |
|
42 | "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), | |
|
49 | "lsprof": (has_lsprof, "python lsprof module"), | |
|
50 | "symlink": (has_symlink, "symbolic links"), | |
|
43 | 51 | } |
|
44 | 52 | |
|
45 | 53 | def list_features(): |
General Comments 0
You need to be logged in to leave comments.
Login now