tests/test-run-tests.t
changeset 28037 54c896f8bb79
parent 27927 0de4dfc9af0c
child 28126 562a073a2a1b
equal deleted inserted replaced
28036:b5069c2b6f62 28037:54c896f8bb79
    18 =============
    18 =============
    19   $ rt()
    19   $ rt()
    20   > {
    20   > {
    21   >     run-tests.py --with-hg=`which hg` "$@"
    21   >     run-tests.py --with-hg=`which hg` "$@"
    22   > }
    22   > }
       
    23 
       
    24 error paths
       
    25 
       
    26 #if symlink
       
    27   $ ln -s `which true` hg
       
    28   $ run-tests.py --with-hg=./hg
       
    29   warning: --with-hg should specify an hg script
       
    30   
       
    31   # Ran 0 tests, 0 skipped, 0 warned, 0 failed.
       
    32   $ rm hg
       
    33 #endif
       
    34 
       
    35 #if execbit
       
    36   $ touch hg
       
    37   $ run-tests.py --with-hg=./hg
       
    38   Usage: run-tests.py [options] [tests]
       
    39   
       
    40   run-tests.py: error: --with-hg must specify an executable hg script
       
    41   [2]
       
    42   $ rm hg
       
    43 #endif
    23 
    44 
    24 a succesful test
    45 a succesful test
    25 =======================
    46 =======================
    26 
    47 
    27   $ cat > test-success.t << EOF
    48   $ cat > test-success.t << EOF