tests/test-run-tests.t
changeset 16891 b0e8afdfa970
parent 16842 a3ea092203a5
child 16914 2030dec7c8fa
equal deleted inserted replaced
16890:4d95878712ad 16891:b0e8afdfa970
    50 Literal match ending in " (re)":
    50 Literal match ending in " (re)":
    51 
    51 
    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   $ echo skipped
    76   $ echo skipped
    59 #else
    77 #else
    60   $ echo tested
    78   $ echo tested
    61   tested
    79   tested
    62 #endif
    80 #endif