equal
deleted
inserted
replaced
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 |