Show More
@@ -35,6 +35,13 b' def has_eol_in_paths():' | |||
|
35 | 35 | except: |
|
36 | 36 | return False |
|
37 | 37 | |
|
38 | def has_hotshot(): | |
|
39 | try: | |
|
40 | import hotshot | |
|
41 | return True | |
|
42 | except ImportError: | |
|
43 | return False | |
|
44 | ||
|
38 | 45 | def has_lsprof(): |
|
39 | 46 | try: |
|
40 | 47 | import _lsprof |
@@ -46,6 +53,7 b' checks = {' | |||
|
46 | 53 | "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), |
|
47 | 54 | "execbit": (has_executablebit, "executable bit"), |
|
48 | 55 | "fifo": (has_fifo, "named pipes"), |
|
56 | "hotshot": (has_hotshot, "python hotshot module"), | |
|
49 | 57 | "lsprof": (has_lsprof, "python lsprof module"), |
|
50 | 58 | "symlink": (has_symlink, "symbolic links"), |
|
51 | 59 | } |
@@ -1,12 +1,15 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | echo % test --time |
|
4 |
hg --time help 2>&1 | grep |
|
|
4 | hg --time help -q help 2>&1 | grep Time > /dev/null || echo --time failed | |
|
5 | 5 | |
|
6 | 6 | echo % test --profile |
|
7 | hg --profile help 2>&1 | grep -q ncalls || echo --profile failed | |
|
7 | if "$TESTDIR/hghave" -q hotshot; then | |
|
8 | # hotshot might be missing for licensing issues | |
|
9 | hg --profile help -q help 2>&1 | grep ncalls > /dev/null || echo --profile failed | |
|
10 | fi | |
|
8 | 11 | |
|
9 | 12 | echo % test --lsprof |
|
10 | 13 | if "$TESTDIR/hghave" -q lsprof; then |
|
11 |
hg --lsprof help 2>&1 | grep |
|
|
12 | fi No newline at end of file | |
|
14 | hg --lsprof help -q help 2>&1 | grep CallCount > /dev/null || echo --lsprof failed | |
|
15 | fi |
General Comments 0
You need to be logged in to leave comments.
Login now