tests/test-run-tests.t
changeset 16891 b0e8afdfa970
parent 16842 a3ea092203a5
child 16914 2030dec7c8fa
--- a/tests/test-run-tests.t	Fri Jun 08 15:11:05 2012 +0200
+++ b/tests/test-run-tests.t	Fri Jun 08 15:11:05 2012 +0200
@@ -52,9 +52,27 @@
   $ echo 'foo (re)'
   foo (re)
 
+testing hghave
+
+  $ "$TESTDIR/hghave" true
+  $ "$TESTDIR/hghave" false
+  skipped: missing feature: nail clipper
+  [1]
+  $ "$TESTDIR/hghave" no-true
+  skipped: system supports yak shaving
+  [1]
+  $ "$TESTDIR/hghave" no-false
+
 Conditional sections based on hghave:
 
-#if fifo no-fifo
+#if true
+  $ echo tested
+  tested
+#else
+  $ echo skipped
+#endif
+
+#if false
   $ echo skipped
 #else
   $ echo tested