Show More
@@ -1,63 +1,90 b'' | |||
|
1 | 1 | This file tests the behavior of run-tests.py itself. |
|
2 | 2 | |
|
3 | 3 | Smoke test |
|
4 | 4 | ============ |
|
5 | 5 | |
|
6 | 6 | $ $TESTDIR/run-tests.py |
|
7 | 7 | |
|
8 | 8 | # Ran 0 tests, 0 skipped, 0 warned, 0 failed. |
|
9 | 9 | |
|
10 | 10 | a succesful test |
|
11 | 11 | ======================= |
|
12 | 12 | |
|
13 | 13 | $ cat > test-success.t << EOF |
|
14 | 14 | > $ echo babar |
|
15 | 15 | > babar |
|
16 | 16 | > EOF |
|
17 | 17 | |
|
18 | 18 | $ $TESTDIR/run-tests.py --with-hg=`which hg` |
|
19 | 19 | . |
|
20 | 20 | # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
|
21 | 21 | |
|
22 | 22 | failing test |
|
23 | 23 | ================== |
|
24 | 24 | |
|
25 | 25 | $ cat > test-failure.t << EOF |
|
26 | 26 | > $ echo babar |
|
27 | 27 | > rataxes |
|
28 | 28 | > EOF |
|
29 | 29 | |
|
30 | 30 | $ $TESTDIR/run-tests.py --with-hg=`which hg` |
|
31 | 31 | |
|
32 | 32 | --- $TESTTMP/test-failure.t |
|
33 | 33 | +++ $TESTTMP/test-failure.t.err |
|
34 | 34 | @@ -1,2 +1,2 @@ |
|
35 | 35 | $ echo babar |
|
36 | 36 | - rataxes |
|
37 | 37 | + babar |
|
38 | 38 | |
|
39 | 39 | ERROR: test-failure.t output changed |
|
40 | 40 | !. |
|
41 | 41 | Failed test-failure.t: output changed |
|
42 | 42 | # Ran 2 tests, 0 skipped, 0 warned, 1 failed. |
|
43 | 43 | python hash seed: * (glob) |
|
44 | 44 | [1] |
|
45 | 45 | |
|
46 | 46 | test for --retest |
|
47 | 47 | ==================== |
|
48 | 48 | |
|
49 | 49 | $ $TESTDIR/run-tests.py --with-hg=`which hg` --retest |
|
50 | 50 | |
|
51 | 51 | --- $TESTTMP/test-failure.t |
|
52 | 52 | +++ $TESTTMP/test-failure.t.err |
|
53 | 53 | @@ -1,2 +1,2 @@ |
|
54 | 54 | $ echo babar |
|
55 | 55 | - rataxes |
|
56 | 56 | + babar |
|
57 | 57 | |
|
58 | 58 | ERROR: test-failure.t output changed |
|
59 | 59 | ! |
|
60 | 60 | Failed test-failure.t: output changed |
|
61 | 61 | # Ran 1 tests, 1 skipped, 0 warned, 1 failed. |
|
62 | 62 | python hash seed: * (glob) |
|
63 | 63 | [1] |
|
64 | ||
|
65 | Selecting Tests To Run | |
|
66 | ====================== | |
|
67 | ||
|
68 | successful | |
|
69 | ||
|
70 | $ $TESTDIR/run-tests.py --with-hg=`which hg` test-success.t | |
|
71 | . | |
|
72 | # Ran 1 tests, 0 skipped, 0 warned, 0 failed. | |
|
73 | ||
|
74 | failed | |
|
75 | ||
|
76 | $ $TESTDIR/run-tests.py --with-hg=`which hg` test-failure.t | |
|
77 | ||
|
78 | --- $TESTTMP/test-failure.t | |
|
79 | +++ $TESTTMP/test-failure.t.err | |
|
80 | @@ -1,2 +1,2 @@ | |
|
81 | $ echo babar | |
|
82 | - rataxes | |
|
83 | + babar | |
|
84 | ||
|
85 | ERROR: test-failure.t output changed | |
|
86 | ! | |
|
87 | Failed test-failure.t: output changed | |
|
88 | # Ran 1 tests, 0 skipped, 0 warned, 1 failed. | |
|
89 | python hash seed: * (glob) | |
|
90 | [1] |
General Comments 0
You need to be logged in to leave comments.
Login now