equal
deleted
inserted
replaced
11 import hghave |
11 import hghave |
12 |
12 |
13 checks = hghave.checks |
13 checks = hghave.checks |
14 |
14 |
15 def list_features(): |
15 def list_features(): |
16 for name, feature in sorted(checks.iteritems()): |
16 for name, feature in sorted(checks.items()): |
17 desc = feature[1] |
17 desc = feature[1] |
18 print(name + ':', desc) |
18 print(name + ':', desc) |
19 |
19 |
20 def test_features(): |
20 def test_features(): |
21 failed = 0 |
21 failed = 0 |
22 for name, feature in checks.iteritems(): |
22 for name, feature in checks.items(): |
23 check, _ = feature |
23 check, _ = feature |
24 try: |
24 try: |
25 check() |
25 check() |
26 except Exception as e: |
26 except Exception as e: |
27 print("feature %s failed: %s" % (name, e)) |
27 print("feature %s failed: %s" % (name, e)) |