tests/README
changeset 332 6c869059beb4
parent 331 55f63f3b6a54
child 349 b2293093b89e
child 350 b4e0e20646bb
equal deleted inserted replaced
331:55f63f3b6a54 332:6c869059beb4
     1 A simple testing framework
     1 A simple testing framework
       
     2 
       
     3 To run the tests, do:
       
     4 
       
     5 cd tests/
       
     6 ./run-tests
     2 
     7 
     3 This finds all scripts in the test directory named test-* and executes
     8 This finds all scripts in the test directory named test-* and executes
     4 them. The scripts can be either shell scripts or Python. Each test is
     9 them. The scripts can be either shell scripts or Python. Each test is
     5 run in a temporary directory that is removed when the test is complete.
    10 run in a temporary directory that is removed when the test is complete.
     6 
    11 
    23 
    28 
    24 - diff will show the current time
    29 - diff will show the current time
    25 
    30 
    26   use hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/" to strip dates
    31   use hg diff | sed "s/\(\(---\|+++\).*\)\t.*/\1/" to strip dates
    27 
    32 
       
    33 - set -x and pipelines don't generate stable output
       
    34 
       
    35   turn off set -x or break pipelines into pieces
       
    36