Show More
@@ -241,6 +241,8 b' def has_msys():' | |||||
241 | return os.getenv('MSYSTEM') |
|
241 | return os.getenv('MSYSTEM') | |
242 |
|
242 | |||
243 | checks = { |
|
243 | checks = { | |
|
244 | "true": (lambda: True, "yak shaving"), | |||
|
245 | "false": (lambda: False, "nail clipper"), | |||
244 | "baz": (has_baz, "GNU Arch baz client"), |
|
246 | "baz": (has_baz, "GNU Arch baz client"), | |
245 | "bzr": (has_bzr, "Canonical's Bazaar client"), |
|
247 | "bzr": (has_bzr, "Canonical's Bazaar client"), | |
246 | "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
|
248 | "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
@@ -52,9 +52,27 b' Literal match ending in " (re)":' | |||||
52 | $ echo 'foo (re)' |
|
52 | $ echo 'foo (re)' | |
53 | foo (re) |
|
53 | foo (re) | |
54 |
|
54 | |||
|
55 | testing hghave | |||
|
56 | ||||
|
57 | $ "$TESTDIR/hghave" true | |||
|
58 | $ "$TESTDIR/hghave" false | |||
|
59 | skipped: missing feature: nail clipper | |||
|
60 | [1] | |||
|
61 | $ "$TESTDIR/hghave" no-true | |||
|
62 | skipped: system supports yak shaving | |||
|
63 | [1] | |||
|
64 | $ "$TESTDIR/hghave" no-false | |||
|
65 | ||||
55 | Conditional sections based on hghave: |
|
66 | Conditional sections based on hghave: | |
56 |
|
67 | |||
57 | #if fifo no-fifo |
|
68 | #if true | |
|
69 | $ echo tested | |||
|
70 | tested | |||
|
71 | #else | |||
|
72 | $ echo skipped | |||
|
73 | #endif | |||
|
74 | ||||
|
75 | #if false | |||
58 |
$ |
|
76 | $ echo skipped | |
59 | #else |
|
77 | #else | |
60 | $ echo tested |
|
78 | $ echo tested |
General Comments 0
You need to be logged in to leave comments.
Login now