Show More
@@ -2795,13 +2795,15 b' class TestRunner(object):' | |||||
2795 |
|
2795 | |||
2796 | tests = [self._gettest(d, i) for i, d in enumerate(testdescs)] |
|
2796 | tests = [self._gettest(d, i) for i, d in enumerate(testdescs)] | |
2797 |
|
2797 | |||
|
2798 | jobs = min(len(tests), self.options.jobs) | |||
|
2799 | ||||
2798 | failed = False |
|
2800 | failed = False | |
2799 | kws = self.options.keywords |
|
2801 | kws = self.options.keywords | |
2800 | if kws is not None and PYTHON3: |
|
2802 | if kws is not None and PYTHON3: | |
2801 | kws = kws.encode('utf-8') |
|
2803 | kws = kws.encode('utf-8') | |
2802 |
|
2804 | |||
2803 | suite = TestSuite(self._testdir, |
|
2805 | suite = TestSuite(self._testdir, | |
2804 |
jobs= |
|
2806 | jobs=jobs, | |
2805 | whitelist=self.options.whitelisted, |
|
2807 | whitelist=self.options.whitelisted, | |
2806 | blacklist=self.options.blacklist, |
|
2808 | blacklist=self.options.blacklist, | |
2807 | retest=self.options.retest, |
|
2809 | retest=self.options.retest, | |
@@ -2829,6 +2831,9 b' class TestRunner(object):' | |||||
2829 | assert self._installdir |
|
2831 | assert self._installdir | |
2830 | self._installchg() |
|
2832 | self._installchg() | |
2831 |
|
2833 | |||
|
2834 | log('running %d tests using %d parallel processes' % ( | |||
|
2835 | len(tests), jobs)) | |||
|
2836 | ||||
2832 | result = runner.run(suite) |
|
2837 | result = runner.run(suite) | |
2833 |
|
2838 | |||
2834 | if result.failures: |
|
2839 | if result.failures: |
@@ -7,6 +7,7 b' Avoid interference from actual test env:' | |||||
7 | Smoke test with install |
|
7 | Smoke test with install | |
8 | ============ |
|
8 | ============ | |
9 | $ "$PYTHON" $TESTDIR/run-tests.py $HGTEST_RUN_TESTS_PURE -l |
|
9 | $ "$PYTHON" $TESTDIR/run-tests.py $HGTEST_RUN_TESTS_PURE -l | |
|
10 | running 0 tests using 0 parallel processes | |||
10 |
|
11 | |||
11 | # Ran 0 tests, 0 skipped, 0 failed. |
|
12 | # Ran 0 tests, 0 skipped, 0 failed. | |
12 |
|
13 | |||
@@ -23,6 +24,7 b' error paths' | |||||
23 | $ ln -s `which true` hg |
|
24 | $ ln -s `which true` hg | |
24 | $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg |
|
25 | $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg | |
25 | warning: --with-hg should specify an hg script |
|
26 | warning: --with-hg should specify an hg script | |
|
27 | running 0 tests using 0 parallel processes | |||
26 |
|
28 | |||
27 | # Ran 0 tests, 0 skipped, 0 failed. |
|
29 | # Ran 0 tests, 0 skipped, 0 failed. | |
28 | $ rm hg |
|
30 | $ rm hg | |
@@ -55,6 +57,7 b' an empty test' | |||||
55 |
|
57 | |||
56 | $ touch test-empty.t |
|
58 | $ touch test-empty.t | |
57 | $ rt |
|
59 | $ rt | |
|
60 | running 1 tests using 1 parallel processes | |||
58 | . |
|
61 | . | |
59 | # Ran 1 tests, 0 skipped, 0 failed. |
|
62 | # Ran 1 tests, 0 skipped, 0 failed. | |
60 | $ rm test-empty.t |
|
63 | $ rm test-empty.t | |
@@ -88,6 +91,7 b' a succesful test' | |||||
88 | > EOF |
|
91 | > EOF | |
89 |
|
92 | |||
90 | $ rt |
|
93 | $ rt | |
|
94 | running 1 tests using 1 parallel processes | |||
91 | . |
|
95 | . | |
92 | # Ran 1 tests, 0 skipped, 0 failed. |
|
96 | # Ran 1 tests, 0 skipped, 0 failed. | |
93 |
|
97 | |||
@@ -102,6 +106,7 b' test churn with globs' | |||||
102 | > | fo (re) |
|
106 | > | fo (re) | |
103 | > EOF |
|
107 | > EOF | |
104 | $ rt test-failure.t |
|
108 | $ rt test-failure.t | |
|
109 | running 1 tests using 1 parallel processes | |||
105 |
|
110 | |||
106 | --- $TESTTMP/test-failure.t |
|
111 | --- $TESTTMP/test-failure.t | |
107 | +++ $TESTTMP/test-failure.t.err |
|
112 | +++ $TESTTMP/test-failure.t.err | |
@@ -139,6 +144,7 b' test how multiple globs gets matched wit' | |||||
139 | > value: * (glob) |
|
144 | > value: * (glob) | |
140 | > EOF |
|
145 | > EOF | |
141 | $ rt test-failure-globs.t |
|
146 | $ rt test-failure-globs.t | |
|
147 | running 1 tests using 1 parallel processes | |||
142 |
|
148 | |||
143 | --- $TESTTMP/test-failure-globs.t |
|
149 | --- $TESTTMP/test-failure-globs.t | |
144 | +++ $TESTTMP/test-failure-globs.t.err |
|
150 | +++ $TESTTMP/test-failure-globs.t.err | |
@@ -234,6 +240,7 b' test diff colorisation' | |||||
234 | > missing (?) |
|
240 | > missing (?) | |
235 | > EOF |
|
241 | > EOF | |
236 | $ rt test-failure.t |
|
242 | $ rt test-failure.t | |
|
243 | running 1 tests using 1 parallel processes | |||
237 |
|
244 | |||
238 | --- $TESTTMP/test-failure.t |
|
245 | --- $TESTTMP/test-failure.t | |
239 | +++ $TESTTMP/test-failure.t.err |
|
246 | +++ $TESTTMP/test-failure.t.err | |
@@ -292,6 +299,7 b' basic failing test' | |||||
292 | >>> fh.write(u' l\u03b5\u03b5t\n'.encode('utf-8')) and None |
|
299 | >>> fh.write(u' l\u03b5\u03b5t\n'.encode('utf-8')) and None | |
293 |
|
300 | |||
294 | $ rt |
|
301 | $ rt | |
|
302 | running 3 tests using 1 parallel processes | |||
295 |
|
303 | |||
296 | --- $TESTTMP/test-failure.t |
|
304 | --- $TESTTMP/test-failure.t | |
297 | +++ $TESTTMP/test-failure.t.err |
|
305 | +++ $TESTTMP/test-failure.t.err | |
@@ -323,6 +331,7 b' basic failing test' | |||||
323 | test --outputdir |
|
331 | test --outputdir | |
324 | $ mkdir output |
|
332 | $ mkdir output | |
325 | $ rt --outputdir output |
|
333 | $ rt --outputdir output | |
|
334 | running 3 tests using 1 parallel processes | |||
326 |
|
335 | |||
327 | --- $TESTTMP/test-failure.t |
|
336 | --- $TESTTMP/test-failure.t | |
328 | +++ $TESTTMP/output/test-failure.t.err |
|
337 | +++ $TESTTMP/output/test-failure.t.err | |
@@ -359,6 +368,7 b' test --outputdir' | |||||
359 |
|
368 | |||
360 | test --xunit support |
|
369 | test --xunit support | |
361 | $ rt --xunit=xunit.xml |
|
370 | $ rt --xunit=xunit.xml | |
|
371 | running 3 tests using 1 parallel processes | |||
362 |
|
372 | |||
363 | --- $TESTTMP/test-failure.t |
|
373 | --- $TESTTMP/test-failure.t | |
364 | +++ $TESTTMP/test-failure.t.err |
|
374 | +++ $TESTTMP/test-failure.t.err | |
@@ -481,6 +491,7 b' test for --retest' | |||||
481 | ==================== |
|
491 | ==================== | |
482 |
|
492 | |||
483 | $ rt --retest |
|
493 | $ rt --retest | |
|
494 | running 2 tests using 1 parallel processes | |||
484 |
|
495 | |||
485 | --- $TESTTMP/test-failure.t |
|
496 | --- $TESTTMP/test-failure.t | |
486 | +++ $TESTTMP/test-failure.t.err |
|
497 | +++ $TESTTMP/test-failure.t.err | |
@@ -504,6 +515,7 b' test for --retest' | |||||
504 | $ mkdir output |
|
515 | $ mkdir output | |
505 | $ mv test-failure.t.err output |
|
516 | $ mv test-failure.t.err output | |
506 | $ rt --retest --outputdir output |
|
517 | $ rt --retest --outputdir output | |
|
518 | running 2 tests using 1 parallel processes | |||
507 |
|
519 | |||
508 | --- $TESTTMP/test-failure.t |
|
520 | --- $TESTTMP/test-failure.t | |
509 | +++ $TESTTMP/output/test-failure.t.err |
|
521 | +++ $TESTTMP/output/test-failure.t.err | |
@@ -528,17 +540,20 b' Selecting Tests To Run' | |||||
528 | successful |
|
540 | successful | |
529 |
|
541 | |||
530 | $ rt test-success.t |
|
542 | $ rt test-success.t | |
|
543 | running 1 tests using 1 parallel processes | |||
531 | . |
|
544 | . | |
532 | # Ran 1 tests, 0 skipped, 0 failed. |
|
545 | # Ran 1 tests, 0 skipped, 0 failed. | |
533 |
|
546 | |||
534 | success w/ keyword |
|
547 | success w/ keyword | |
535 | $ rt -k xyzzy |
|
548 | $ rt -k xyzzy | |
|
549 | running 2 tests using 1 parallel processes | |||
536 | . |
|
550 | . | |
537 | # Ran 2 tests, 1 skipped, 0 failed. |
|
551 | # Ran 2 tests, 1 skipped, 0 failed. | |
538 |
|
552 | |||
539 | failed |
|
553 | failed | |
540 |
|
554 | |||
541 | $ rt test-failure.t |
|
555 | $ rt test-failure.t | |
|
556 | running 1 tests using 1 parallel processes | |||
542 |
|
557 | |||
543 | --- $TESTTMP/test-failure.t |
|
558 | --- $TESTTMP/test-failure.t | |
544 | +++ $TESTTMP/test-failure.t.err |
|
559 | +++ $TESTTMP/test-failure.t.err | |
@@ -559,6 +574,7 b' failed' | |||||
559 |
|
574 | |||
560 | failure w/ keyword |
|
575 | failure w/ keyword | |
561 | $ rt -k rataxes |
|
576 | $ rt -k rataxes | |
|
577 | running 2 tests using 1 parallel processes | |||
562 |
|
578 | |||
563 | --- $TESTTMP/test-failure.t |
|
579 | --- $TESTTMP/test-failure.t | |
564 | +++ $TESTTMP/test-failure.t.err |
|
580 | +++ $TESTTMP/test-failure.t.err | |
@@ -584,6 +600,7 b' Verify that when a process fails to star' | |||||
584 | > $ echo 'abort: child process failed to start blah' |
|
600 | > $ echo 'abort: child process failed to start blah' | |
585 | > EOF |
|
601 | > EOF | |
586 | $ rt test-serve-fail.t |
|
602 | $ rt test-serve-fail.t | |
|
603 | running 1 tests using 1 parallel processes | |||
587 |
|
604 | |||
588 | --- $TESTTMP/test-serve-fail.t |
|
605 | --- $TESTTMP/test-serve-fail.t | |
589 | +++ $TESTTMP/test-serve-fail.t.err |
|
606 | +++ $TESTTMP/test-serve-fail.t.err | |
@@ -614,6 +631,7 b' HGRCPATH to get a clean environment.' | |||||
614 | > $ cat hg.pid >> \$DAEMON_PIDS |
|
631 | > $ cat hg.pid >> \$DAEMON_PIDS | |
615 | > EOF |
|
632 | > EOF | |
616 | $ rt test-serve-inuse.t |
|
633 | $ rt test-serve-inuse.t | |
|
634 | running 1 tests using 1 parallel processes | |||
617 | . |
|
635 | . | |
618 | # Ran 1 tests, 0 skipped, 0 failed. |
|
636 | # Ran 1 tests, 0 skipped, 0 failed. | |
619 | $ rm test-serve-inuse.t |
|
637 | $ rm test-serve-inuse.t | |
@@ -623,6 +641,7 b' Running In Debug Mode' | |||||
623 | ====================== |
|
641 | ====================== | |
624 |
|
642 | |||
625 | $ rt --debug 2>&1 | grep -v pwd |
|
643 | $ rt --debug 2>&1 | grep -v pwd | |
|
644 | running 2 tests using 1 parallel processes | |||
626 | + echo *SALT* 0 0 (glob) |
|
645 | + echo *SALT* 0 0 (glob) | |
627 | *SALT* 0 0 (glob) |
|
646 | *SALT* 0 0 (glob) | |
628 | + echo babar |
|
647 | + echo babar | |
@@ -661,6 +680,7 b' Parallel runs' | |||||
661 | $ cp test-failure.t test-failure-copy.t |
|
680 | $ cp test-failure.t test-failure-copy.t | |
662 |
|
681 | |||
663 | $ rt --jobs 2 test-failure*.t -n |
|
682 | $ rt --jobs 2 test-failure*.t -n | |
|
683 | running 2 tests using 2 parallel processes | |||
664 | !! |
|
684 | !! | |
665 | Failed test-failure*.t: output changed (glob) |
|
685 | Failed test-failure*.t: output changed (glob) | |
666 | Failed test-failure*.t: output changed (glob) |
|
686 | Failed test-failure*.t: output changed (glob) | |
@@ -670,6 +690,7 b' Parallel runs' | |||||
670 |
|
690 | |||
671 | failures in parallel with --first should only print one failure |
|
691 | failures in parallel with --first should only print one failure | |
672 | $ rt --jobs 2 --first test-failure*.t |
|
692 | $ rt --jobs 2 --first test-failure*.t | |
|
693 | running 2 tests using 2 parallel processes | |||
673 |
|
694 | |||
674 | --- $TESTTMP/test-failure*.t (glob) |
|
695 | --- $TESTTMP/test-failure*.t (glob) | |
675 | +++ $TESTTMP/test-failure*.t.err (glob) |
|
696 | +++ $TESTTMP/test-failure*.t.err (glob) | |
@@ -701,6 +722,7 b' Interactive run' | |||||
701 | Refuse the fix |
|
722 | Refuse the fix | |
702 |
|
723 | |||
703 | $ echo 'n' | rt -i |
|
724 | $ echo 'n' | rt -i | |
|
725 | running 2 tests using 1 parallel processes | |||
704 |
|
726 | |||
705 | --- $TESTTMP/test-failure.t |
|
727 | --- $TESTTMP/test-failure.t | |
706 | +++ $TESTTMP/test-failure.t.err |
|
728 | +++ $TESTTMP/test-failure.t.err | |
@@ -734,6 +756,7 b' Refuse the fix' | |||||
734 | Interactive with custom view |
|
756 | Interactive with custom view | |
735 |
|
757 | |||
736 | $ echo 'n' | rt -i --view echo |
|
758 | $ echo 'n' | rt -i --view echo | |
|
759 | running 2 tests using 1 parallel processes | |||
737 | $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err |
|
760 | $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err | |
738 | Accept this change? [n]* (glob) |
|
761 | Accept this change? [n]* (glob) | |
739 | ERROR: test-failure.t output changed |
|
762 | ERROR: test-failure.t output changed | |
@@ -746,6 +769,7 b' Interactive with custom view' | |||||
746 | View the fix |
|
769 | View the fix | |
747 |
|
770 | |||
748 | $ echo 'y' | rt --view echo |
|
771 | $ echo 'y' | rt --view echo | |
|
772 | running 2 tests using 1 parallel processes | |||
749 | $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err |
|
773 | $TESTTMP/test-failure.t $TESTTMP/test-failure.t.err | |
750 |
|
774 | |||
751 | ERROR: test-failure.t output changed |
|
775 | ERROR: test-failure.t output changed | |
@@ -766,6 +790,7 b' Accept the fix' | |||||
766 | > saved backup bundle to \$TESTTMP/*.hg (glob) |
|
790 | > saved backup bundle to \$TESTTMP/*.hg (glob) | |
767 | > EOF |
|
791 | > EOF | |
768 | $ echo 'y' | rt -i 2>&1 |
|
792 | $ echo 'y' | rt -i 2>&1 | |
|
793 | running 2 tests using 1 parallel processes | |||
769 |
|
794 | |||
770 | --- $TESTTMP/test-failure.t |
|
795 | --- $TESTTMP/test-failure.t | |
771 | +++ $TESTTMP/test-failure.t.err |
|
796 | +++ $TESTTMP/test-failure.t.err | |
@@ -815,6 +840,7 b' Race condition - test file was modified ' | |||||
815 | > EOF |
|
840 | > EOF | |
816 |
|
841 | |||
817 | $ rt -i test-race.t |
|
842 | $ rt -i test-race.t | |
|
843 | running 1 tests using 1 parallel processes | |||
818 |
|
844 | |||
819 | --- $TESTTMP/test-race.t |
|
845 | --- $TESTTMP/test-race.t | |
820 | +++ $TESTTMP/test-race.t.err |
|
846 | +++ $TESTTMP/test-race.t.err | |
@@ -848,6 +874,7 b' When "#testcases" is used in .t files' | |||||
848 | > y |
|
874 | > y | |
849 | > y |
|
875 | > y | |
850 | > EOF |
|
876 | > EOF | |
|
877 | running 2 tests using 1 parallel processes | |||
851 |
|
878 | |||
852 | --- $TESTTMP/test-cases.t |
|
879 | --- $TESTTMP/test-cases.t | |
853 | +++ $TESTTMP/test-cases.t#a.err |
|
880 | +++ $TESTTMP/test-cases.t#a.err | |
@@ -893,6 +920,7 b' When "#testcases" is used in .t files' | |||||
893 | > B (b !) |
|
920 | > B (b !) | |
894 | > EOF |
|
921 | > EOF | |
895 | $ rt test-cases.t |
|
922 | $ rt test-cases.t | |
|
923 | running 2 tests using 1 parallel processes | |||
896 | .. |
|
924 | .. | |
897 | # Ran 2 tests, 0 skipped, 0 failed. |
|
925 | # Ran 2 tests, 0 skipped, 0 failed. | |
898 |
|
926 | |||
@@ -911,6 +939,7 b' When using multiple dimensions of "#test' | |||||
911 | > #endif |
|
939 | > #endif | |
912 | > EOF |
|
940 | > EOF | |
913 | $ rt test-cases.t |
|
941 | $ rt test-cases.t | |
|
942 | running 4 tests using 1 parallel processes | |||
914 | .. |
|
943 | .. | |
915 | --- $TESTTMP/test-cases.t |
|
944 | --- $TESTTMP/test-cases.t | |
916 | +++ $TESTTMP/test-cases.t#b#c.err |
|
945 | +++ $TESTTMP/test-cases.t#b#c.err | |
@@ -939,6 +968,7 b' No Diff' | |||||
939 | =============== |
|
968 | =============== | |
940 |
|
969 | |||
941 | $ rt --nodiff |
|
970 | $ rt --nodiff | |
|
971 | running 2 tests using 1 parallel processes | |||
942 | !. |
|
972 | !. | |
943 | Failed test-failure.t: output changed |
|
973 | Failed test-failure.t: output changed | |
944 | # Ran 2 tests, 0 skipped, 1 failed. |
|
974 | # Ran 2 tests, 0 skipped, 1 failed. | |
@@ -947,6 +977,7 b' No Diff' | |||||
947 |
|
977 | |||
948 | test --tmpdir support |
|
978 | test --tmpdir support | |
949 | $ rt --tmpdir=$TESTTMP/keep test-success.t |
|
979 | $ rt --tmpdir=$TESTTMP/keep test-success.t | |
|
980 | running 1 tests using 1 parallel processes | |||
950 |
|
981 | |||
951 | Keeping testtmp dir: $TESTTMP/keep/child1/test-success.t |
|
982 | Keeping testtmp dir: $TESTTMP/keep/child1/test-success.t | |
952 | Keeping threadtmp dir: $TESTTMP/keep/child1 |
|
983 | Keeping threadtmp dir: $TESTTMP/keep/child1 | |
@@ -963,6 +994,7 b' timeouts' | |||||
963 | > echo '#require slow' > test-slow-timeout.t |
|
994 | > echo '#require slow' > test-slow-timeout.t | |
964 | > cat test-timeout.t >> test-slow-timeout.t |
|
995 | > cat test-timeout.t >> test-slow-timeout.t | |
965 | $ rt --timeout=1 --slowtimeout=3 test-timeout.t test-slow-timeout.t |
|
996 | $ rt --timeout=1 --slowtimeout=3 test-timeout.t test-slow-timeout.t | |
|
997 | running 2 tests using 1 parallel processes | |||
966 | st |
|
998 | st | |
967 | Skipped test-slow-timeout.t: missing feature: allow slow tests (use --allow-slow-tests) |
|
999 | Skipped test-slow-timeout.t: missing feature: allow slow tests (use --allow-slow-tests) | |
968 | Failed test-timeout.t: timed out |
|
1000 | Failed test-timeout.t: timed out | |
@@ -971,6 +1003,7 b' timeouts' | |||||
971 | [1] |
|
1003 | [1] | |
972 | $ rt --timeout=1 --slowtimeout=3 \ |
|
1004 | $ rt --timeout=1 --slowtimeout=3 \ | |
973 | > test-timeout.t test-slow-timeout.t --allow-slow-tests |
|
1005 | > test-timeout.t test-slow-timeout.t --allow-slow-tests | |
|
1006 | running 2 tests using 1 parallel processes | |||
974 | .t |
|
1007 | .t | |
975 | Failed test-timeout.t: timed out |
|
1008 | Failed test-timeout.t: timed out | |
976 | # Ran 2 tests, 0 skipped, 1 failed. |
|
1009 | # Ran 2 tests, 0 skipped, 1 failed. | |
@@ -982,6 +1015,7 b' test for --time' | |||||
982 | ================== |
|
1015 | ================== | |
983 |
|
1016 | |||
984 | $ rt test-success.t --time |
|
1017 | $ rt test-success.t --time | |
|
1018 | running 1 tests using 1 parallel processes | |||
985 | . |
|
1019 | . | |
986 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1020 | # Ran 1 tests, 0 skipped, 0 failed. | |
987 | # Producing time report |
|
1021 | # Producing time report | |
@@ -992,6 +1026,7 b' test for --time with --job enabled' | |||||
992 | ==================================== |
|
1026 | ==================================== | |
993 |
|
1027 | |||
994 | $ rt test-success.t --time --jobs 2 |
|
1028 | $ rt test-success.t --time --jobs 2 | |
|
1029 | running 1 tests using 1 parallel processes | |||
995 | . |
|
1030 | . | |
996 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1031 | # Ran 1 tests, 0 skipped, 0 failed. | |
997 | # Producing time report |
|
1032 | # Producing time report | |
@@ -1012,6 +1047,7 b' Skips' | |||||
1012 | > #endif |
|
1047 | > #endif | |
1013 | > EOF |
|
1048 | > EOF | |
1014 | $ rt --nodiff |
|
1049 | $ rt --nodiff | |
|
1050 | running 4 tests using 1 parallel processes | |||
1015 | !.s. |
|
1051 | !.s. | |
1016 | Skipped test-skip.t: missing feature: nail clipper |
|
1052 | Skipped test-skip.t: missing feature: nail clipper | |
1017 | Failed test-failure.t: output changed |
|
1053 | Failed test-failure.t: output changed | |
@@ -1021,6 +1057,7 b' Skips' | |||||
1021 |
|
1057 | |||
1022 | $ rm test-noskip.t |
|
1058 | $ rm test-noskip.t | |
1023 | $ rt --keyword xyzzy |
|
1059 | $ rt --keyword xyzzy | |
|
1060 | running 3 tests using 1 parallel processes | |||
1024 | .s |
|
1061 | .s | |
1025 | Skipped test-skip.t: missing feature: nail clipper |
|
1062 | Skipped test-skip.t: missing feature: nail clipper | |
1026 | # Ran 2 tests, 2 skipped, 0 failed. |
|
1063 | # Ran 2 tests, 2 skipped, 0 failed. | |
@@ -1028,6 +1065,7 b' Skips' | |||||
1028 | Skips with xml |
|
1065 | Skips with xml | |
1029 | $ rt --keyword xyzzy \ |
|
1066 | $ rt --keyword xyzzy \ | |
1030 | > --xunit=xunit.xml |
|
1067 | > --xunit=xunit.xml | |
|
1068 | running 3 tests using 1 parallel processes | |||
1031 | .s |
|
1069 | .s | |
1032 | Skipped test-skip.t: missing feature: nail clipper |
|
1070 | Skipped test-skip.t: missing feature: nail clipper | |
1033 | # Ran 2 tests, 2 skipped, 0 failed. |
|
1071 | # Ran 2 tests, 2 skipped, 0 failed. | |
@@ -1045,6 +1083,7 b" Missing skips or blacklisted skips don't" | |||||
1045 | $ echo test-failure.t > blacklist |
|
1083 | $ echo test-failure.t > blacklist | |
1046 | $ rt --blacklist=blacklist --json\ |
|
1084 | $ rt --blacklist=blacklist --json\ | |
1047 | > test-failure.t test-bogus.t |
|
1085 | > test-failure.t test-bogus.t | |
|
1086 | running 2 tests using 1 parallel processes | |||
1048 | ss |
|
1087 | ss | |
1049 | Skipped test-bogus.t: Doesn't exist |
|
1088 | Skipped test-bogus.t: Doesn't exist | |
1050 | Skipped test-failure.t: blacklisted |
|
1089 | Skipped test-failure.t: blacklisted | |
@@ -1063,6 +1102,7 b' Whitelist trumps blacklist' | |||||
1063 | $ echo test-failure.t > whitelist |
|
1102 | $ echo test-failure.t > whitelist | |
1064 | $ rt --blacklist=blacklist --whitelist=whitelist --json\ |
|
1103 | $ rt --blacklist=blacklist --whitelist=whitelist --json\ | |
1065 | > test-failure.t test-bogus.t |
|
1104 | > test-failure.t test-bogus.t | |
|
1105 | running 2 tests using 1 parallel processes | |||
1066 | s |
|
1106 | s | |
1067 | --- $TESTTMP/test-failure.t |
|
1107 | --- $TESTTMP/test-failure.t | |
1068 | +++ $TESTTMP/test-failure.t.err |
|
1108 | +++ $TESTTMP/test-failure.t.err | |
@@ -1086,10 +1126,12 b' Ensure that --test-list causes only the ' | |||||
1086 | be executed. |
|
1126 | be executed. | |
1087 | $ echo test-success.t >> onlytest |
|
1127 | $ echo test-success.t >> onlytest | |
1088 | $ rt --test-list=onlytest |
|
1128 | $ rt --test-list=onlytest | |
|
1129 | running 1 tests using 1 parallel processes | |||
1089 | . |
|
1130 | . | |
1090 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1131 | # Ran 1 tests, 0 skipped, 0 failed. | |
1091 | $ echo test-bogus.t >> anothertest |
|
1132 | $ echo test-bogus.t >> anothertest | |
1092 | $ rt --test-list=onlytest --test-list=anothertest |
|
1133 | $ rt --test-list=onlytest --test-list=anothertest | |
|
1134 | running 2 tests using 1 parallel processes | |||
1093 | s. |
|
1135 | s. | |
1094 | Skipped test-bogus.t: Doesn't exist |
|
1136 | Skipped test-bogus.t: Doesn't exist | |
1095 | # Ran 1 tests, 1 skipped, 0 failed. |
|
1137 | # Ran 1 tests, 1 skipped, 0 failed. | |
@@ -1099,6 +1141,7 b' test for --json' | |||||
1099 | ================== |
|
1141 | ================== | |
1100 |
|
1142 | |||
1101 | $ rt --json |
|
1143 | $ rt --json | |
|
1144 | running 3 tests using 1 parallel processes | |||
1102 |
|
1145 | |||
1103 | --- $TESTTMP/test-failure.t |
|
1146 | --- $TESTTMP/test-failure.t | |
1104 | +++ $TESTTMP/test-failure.t.err |
|
1147 | +++ $TESTTMP/test-failure.t.err | |
@@ -1154,6 +1197,7 b' test for --json' | |||||
1154 | $ rm -r output |
|
1197 | $ rm -r output | |
1155 | $ mkdir output |
|
1198 | $ mkdir output | |
1156 | $ rt --json --outputdir output |
|
1199 | $ rt --json --outputdir output | |
|
1200 | running 3 tests using 1 parallel processes | |||
1157 |
|
1201 | |||
1158 | --- $TESTTMP/test-failure.t |
|
1202 | --- $TESTTMP/test-failure.t | |
1159 | +++ $TESTTMP/output/test-failure.t.err |
|
1203 | +++ $TESTTMP/output/test-failure.t.err | |
@@ -1215,6 +1259,7 b' Test that failed test accepted through i' | |||||
1215 |
|
1259 | |||
1216 | $ cp test-failure.t backup |
|
1260 | $ cp test-failure.t backup | |
1217 | $ echo y | rt --json -i |
|
1261 | $ echo y | rt --json -i | |
|
1262 | running 3 tests using 1 parallel processes | |||
1218 |
|
1263 | |||
1219 | --- $TESTTMP/test-failure.t |
|
1264 | --- $TESTTMP/test-failure.t | |
1220 | +++ $TESTTMP/test-failure.t.err |
|
1265 | +++ $TESTTMP/test-failure.t.err | |
@@ -1269,6 +1314,7 b' backslash on end of line with glob match' | |||||
1269 | > EOF |
|
1314 | > EOF | |
1270 |
|
1315 | |||
1271 | $ rt test-glob-backslash.t |
|
1316 | $ rt test-glob-backslash.t | |
|
1317 | running 1 tests using 1 parallel processes | |||
1272 | . |
|
1318 | . | |
1273 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1319 | # Ran 1 tests, 0 skipped, 0 failed. | |
1274 |
|
1320 | |||
@@ -1284,6 +1330,7 b' Add support for external test formatter' | |||||
1284 | ======================================= |
|
1330 | ======================================= | |
1285 |
|
1331 | |||
1286 | $ CUSTOM_TEST_RESULT=basic_test_result "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t |
|
1332 | $ CUSTOM_TEST_RESULT=basic_test_result "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t | |
|
1333 | running 2 tests using 1 parallel processes | |||
1287 |
|
1334 | |||
1288 | # Ran 2 tests, 0 skipped, 0 failed. |
|
1335 | # Ran 2 tests, 0 skipped, 0 failed. | |
1289 | ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]> |
|
1336 | ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]> | |
@@ -1306,6 +1353,7 b' Mercurial source tree.' | |||||
1306 | > foo |
|
1353 | > foo | |
1307 | > EOF |
|
1354 | > EOF | |
1308 | $ rt test-hghave.t |
|
1355 | $ rt test-hghave.t | |
|
1356 | running 1 tests using 1 parallel processes | |||
1309 | . |
|
1357 | . | |
1310 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1358 | # Ran 1 tests, 0 skipped, 0 failed. | |
1311 |
|
1359 | |||
@@ -1334,6 +1382,7 b' running is placed.' | |||||
1334 | > # check-code - a style and portability checker for Mercurial |
|
1382 | > # check-code - a style and portability checker for Mercurial | |
1335 | > EOF |
|
1383 | > EOF | |
1336 | $ rt test-runtestdir.t |
|
1384 | $ rt test-runtestdir.t | |
|
1385 | running 1 tests using 1 parallel processes | |||
1337 | . |
|
1386 | . | |
1338 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1387 | # Ran 1 tests, 0 skipped, 0 failed. | |
1339 |
|
1388 | |||
@@ -1351,6 +1400,7 b' test that TESTDIR is referred in PATH' | |||||
1351 | > hello world |
|
1400 | > hello world | |
1352 | > EOF |
|
1401 | > EOF | |
1353 | $ rt test-testdir-path.t |
|
1402 | $ rt test-testdir-path.t | |
|
1403 | running 1 tests using 1 parallel processes | |||
1354 | . |
|
1404 | . | |
1355 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1405 | # Ran 1 tests, 0 skipped, 0 failed. | |
1356 |
|
1406 | |||
@@ -1363,10 +1413,12 b' test support for --allow-slow-tests' | |||||
1363 | > pass |
|
1413 | > pass | |
1364 | > EOF |
|
1414 | > EOF | |
1365 | $ rt test-very-slow-test.t |
|
1415 | $ rt test-very-slow-test.t | |
|
1416 | running 1 tests using 1 parallel processes | |||
1366 | s |
|
1417 | s | |
1367 | Skipped test-very-slow-test.t: missing feature: allow slow tests (use --allow-slow-tests) |
|
1418 | Skipped test-very-slow-test.t: missing feature: allow slow tests (use --allow-slow-tests) | |
1368 | # Ran 0 tests, 1 skipped, 0 failed. |
|
1419 | # Ran 0 tests, 1 skipped, 0 failed. | |
1369 | $ rt $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t |
|
1420 | $ rt $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t | |
|
1421 | running 1 tests using 1 parallel processes | |||
1370 | . |
|
1422 | . | |
1371 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1423 | # Ran 1 tests, 0 skipped, 0 failed. | |
1372 |
|
1424 | |||
@@ -1377,6 +1429,7 b' support for running a test outside the c' | |||||
1377 | > pass |
|
1429 | > pass | |
1378 | > EOF |
|
1430 | > EOF | |
1379 | $ rt nonlocal/test-is-not-here.t |
|
1431 | $ rt nonlocal/test-is-not-here.t | |
|
1432 | running 1 tests using 1 parallel processes | |||
1380 | . |
|
1433 | . | |
1381 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1434 | # Ran 1 tests, 0 skipped, 0 failed. | |
1382 |
|
1435 | |||
@@ -1394,6 +1447,7 b' support for automatically discovering te' | |||||
1394 | $ cp tmp/test-uno.t test-solo.t |
|
1447 | $ cp tmp/test-uno.t test-solo.t | |
1395 |
|
1448 | |||
1396 | $ rt tmp/ test-solo.t tmpp |
|
1449 | $ rt tmp/ test-solo.t tmpp | |
|
1450 | running 5 tests using 1 parallel processes | |||
1397 | ..... |
|
1451 | ..... | |
1398 | # Ran 5 tests, 0 skipped, 0 failed. |
|
1452 | # Ran 5 tests, 0 skipped, 0 failed. | |
1399 | $ rm -rf tmp tmpp |
|
1453 | $ rm -rf tmp tmpp | |
@@ -1417,6 +1471,7 b' support for running run-tests.py from an' | |||||
1417 |
|
1471 | |||
1418 | $ cd .. |
|
1472 | $ cd .. | |
1419 | $ rt tmp/test-*.t |
|
1473 | $ rt tmp/test-*.t | |
|
1474 | running 2 tests using 1 parallel processes | |||
1420 |
|
1475 | |||
1421 | --- $TESTTMP/anothertests/tmp/test-folder-fail.t |
|
1476 | --- $TESTTMP/anothertests/tmp/test-folder-fail.t | |
1422 | +++ $TESTTMP/anothertests/tmp/test-folder-fail.t.err |
|
1477 | +++ $TESTTMP/anothertests/tmp/test-folder-fail.t.err | |
@@ -1447,6 +1502,7 b' support for bisecting failed tests autom' | |||||
1447 | > EOF |
|
1502 | > EOF | |
1448 | $ hg ci -m 'bad' |
|
1503 | $ hg ci -m 'bad' | |
1449 | $ rt --known-good-rev=0 test-bisect.t |
|
1504 | $ rt --known-good-rev=0 test-bisect.t | |
|
1505 | running 1 tests using 1 parallel processes | |||
1450 |
|
1506 | |||
1451 | --- $TESTTMP/anothertests/bisect/test-bisect.t |
|
1507 | --- $TESTTMP/anothertests/bisect/test-bisect.t | |
1452 | +++ $TESTTMP/anothertests/bisect/test-bisect.t.err |
|
1508 | +++ $TESTTMP/anothertests/bisect/test-bisect.t.err | |
@@ -1478,6 +1534,7 b' support bisecting a separate repo' | |||||
1478 | $ hg commit -Am dependent test-bisect-dependent.t |
|
1534 | $ hg commit -Am dependent test-bisect-dependent.t | |
1479 |
|
1535 | |||
1480 | $ rt --known-good-rev=0 test-bisect-dependent.t |
|
1536 | $ rt --known-good-rev=0 test-bisect-dependent.t | |
|
1537 | running 1 tests using 1 parallel processes | |||
1481 |
|
1538 | |||
1482 | --- $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t |
|
1539 | --- $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t | |
1483 | +++ $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t.err |
|
1540 | +++ $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t.err | |
@@ -1500,6 +1557,7 b' support bisecting a separate repo' | |||||
1500 | [2] |
|
1557 | [2] | |
1501 |
|
1558 | |||
1502 | $ rt --known-good-rev=0 --bisect-repo=../bisect test-bisect-dependent.t |
|
1559 | $ rt --known-good-rev=0 --bisect-repo=../bisect test-bisect-dependent.t | |
|
1560 | running 1 tests using 1 parallel processes | |||
1503 |
|
1561 | |||
1504 | --- $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t |
|
1562 | --- $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t | |
1505 | +++ $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t.err |
|
1563 | +++ $TESTTMP/anothertests/bisect-dependent/test-bisect-dependent.t.err | |
@@ -1535,6 +1593,7 b" Test a broken #if statement doesn't brea" | |||||
1535 | > EOF |
|
1593 | > EOF | |
1536 | > done |
|
1594 | > done | |
1537 | $ rt -j 2 |
|
1595 | $ rt -j 2 | |
|
1596 | running 5 tests using 2 parallel processes | |||
1538 | .... |
|
1597 | .... | |
1539 | # Ran 5 tests, 0 skipped, 0 failed. |
|
1598 | # Ran 5 tests, 0 skipped, 0 failed. | |
1540 | skipped: unknown feature: notarealhghavefeature |
|
1599 | skipped: unknown feature: notarealhghavefeature | |
@@ -1572,6 +1631,7 b' Test cases in .t files' | |||||
1572 | > [1] |
|
1631 | > [1] | |
1573 | > EOF |
|
1632 | > EOF | |
1574 | $ rt |
|
1633 | $ rt | |
|
1634 | running 3 tests using 1 parallel processes | |||
1575 | . |
|
1635 | . | |
1576 | --- $TESTTMP/anothertests/cases/test-cases-abc.t |
|
1636 | --- $TESTTMP/anothertests/cases/test-cases-abc.t | |
1577 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err |
|
1637 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err | |
@@ -1595,6 +1655,7 b' Test cases in .t files' | |||||
1595 | --restart works |
|
1655 | --restart works | |
1596 |
|
1656 | |||
1597 | $ rt --restart |
|
1657 | $ rt --restart | |
|
1658 | running 2 tests using 1 parallel processes | |||
1598 |
|
1659 | |||
1599 | --- $TESTTMP/anothertests/cases/test-cases-abc.t |
|
1660 | --- $TESTTMP/anothertests/cases/test-cases-abc.t | |
1600 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err |
|
1661 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err | |
@@ -1620,6 +1681,7 b' Test cases in .t files' | |||||
1620 | $ mkdir output |
|
1681 | $ mkdir output | |
1621 | $ mv test-cases-abc.t#B.err output |
|
1682 | $ mv test-cases-abc.t#B.err output | |
1622 | $ rt --restart --outputdir output |
|
1683 | $ rt --restart --outputdir output | |
|
1684 | running 2 tests using 1 parallel processes | |||
1623 |
|
1685 | |||
1624 | --- $TESTTMP/anothertests/cases/test-cases-abc.t |
|
1686 | --- $TESTTMP/anothertests/cases/test-cases-abc.t | |
1625 | +++ $TESTTMP/anothertests/cases/output/test-cases-abc.t#B.err |
|
1687 | +++ $TESTTMP/anothertests/cases/output/test-cases-abc.t#B.err | |
@@ -1657,12 +1719,14 b' Test TESTCASE variable' | |||||
1657 | > #endif |
|
1719 | > #endif | |
1658 | > EOF |
|
1720 | > EOF | |
1659 | $ rt test-cases-ab.t |
|
1721 | $ rt test-cases-ab.t | |
|
1722 | running 2 tests using 1 parallel processes | |||
1660 | .. |
|
1723 | .. | |
1661 | # Ran 2 tests, 0 skipped, 0 failed. |
|
1724 | # Ran 2 tests, 0 skipped, 0 failed. | |
1662 |
|
1725 | |||
1663 | Support running a specific test case |
|
1726 | Support running a specific test case | |
1664 |
|
1727 | |||
1665 | $ rt "test-cases-abc.t#B" |
|
1728 | $ rt "test-cases-abc.t#B" | |
|
1729 | running 1 tests using 1 parallel processes | |||
1666 |
|
1730 | |||
1667 | --- $TESTTMP/anothertests/cases/test-cases-abc.t |
|
1731 | --- $TESTTMP/anothertests/cases/test-cases-abc.t | |
1668 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err |
|
1732 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err | |
@@ -1686,6 +1750,7 b' Support running a specific test case' | |||||
1686 | Support running multiple test cases in the same file |
|
1750 | Support running multiple test cases in the same file | |
1687 |
|
1751 | |||
1688 | $ rt test-cases-abc.t#B test-cases-abc.t#C |
|
1752 | $ rt test-cases-abc.t#B test-cases-abc.t#C | |
|
1753 | running 2 tests using 1 parallel processes | |||
1689 |
|
1754 | |||
1690 | --- $TESTTMP/anothertests/cases/test-cases-abc.t |
|
1755 | --- $TESTTMP/anothertests/cases/test-cases-abc.t | |
1691 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err |
|
1756 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err | |
@@ -1709,6 +1774,7 b' Support running multiple test cases in t' | |||||
1709 | Support ignoring invalid test cases |
|
1774 | Support ignoring invalid test cases | |
1710 |
|
1775 | |||
1711 | $ rt test-cases-abc.t#B test-cases-abc.t#D |
|
1776 | $ rt test-cases-abc.t#B test-cases-abc.t#D | |
|
1777 | running 1 tests using 1 parallel processes | |||
1712 |
|
1778 | |||
1713 | --- $TESTTMP/anothertests/cases/test-cases-abc.t |
|
1779 | --- $TESTTMP/anothertests/cases/test-cases-abc.t | |
1714 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err |
|
1780 | +++ $TESTTMP/anothertests/cases/test-cases-abc.t#B.err | |
@@ -1743,6 +1809,7 b' Support running complex test cases names' | |||||
1743 | simple |
|
1809 | simple | |
1744 |
|
1810 | |||
1745 | $ rt test-cases-advanced-cases.t |
|
1811 | $ rt test-cases-advanced-cases.t | |
|
1812 | running 3 tests using 1 parallel processes | |||
1746 |
|
1813 | |||
1747 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1814 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t | |
1748 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t#case-with-dashes.err |
|
1815 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t#case-with-dashes.err | |
@@ -1771,6 +1838,7 b' Support running complex test cases names' | |||||
1771 | [1] |
|
1838 | [1] | |
1772 |
|
1839 | |||
1773 | $ rt "test-cases-advanced-cases.t#case-with-dashes" |
|
1840 | $ rt "test-cases-advanced-cases.t#case-with-dashes" | |
|
1841 | running 1 tests using 1 parallel processes | |||
1774 |
|
1842 | |||
1775 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1843 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t | |
1776 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t#case-with-dashes.err |
|
1844 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t#case-with-dashes.err | |
@@ -1788,6 +1856,7 b' Support running complex test cases names' | |||||
1788 | [1] |
|
1856 | [1] | |
1789 |
|
1857 | |||
1790 | $ rt "test-cases-advanced-cases.t#casewith_-.chars" |
|
1858 | $ rt "test-cases-advanced-cases.t#casewith_-.chars" | |
|
1859 | running 1 tests using 1 parallel processes | |||
1791 |
|
1860 | |||
1792 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t |
|
1861 | --- $TESTTMP/anothertests/cases/test-cases-advanced-cases.t | |
1793 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t#casewith_-.chars.err |
|
1862 | +++ $TESTTMP/anothertests/cases/test-cases-advanced-cases.t#casewith_-.chars.err | |
@@ -1829,6 +1898,7 b' Test automatic pattern replacement' | |||||
1829 | > EOF |
|
1898 | > EOF | |
1830 |
|
1899 | |||
1831 | $ rt test-substitution.t |
|
1900 | $ rt test-substitution.t | |
|
1901 | running 1 tests using 1 parallel processes | |||
1832 |
|
1902 | |||
1833 | --- $TESTTMP/anothertests/cases/test-substitution.t |
|
1903 | --- $TESTTMP/anothertests/cases/test-substitution.t | |
1834 | +++ $TESTTMP/anothertests/cases/test-substitution.t.err |
|
1904 | +++ $TESTTMP/anothertests/cases/test-substitution.t.err | |
@@ -1853,5 +1923,6 b' Test automatic pattern replacement' | |||||
1853 | > EOF |
|
1923 | > EOF | |
1854 |
|
1924 | |||
1855 | $ rt --extra-config-opt extensions.purge= test-config-opt.t |
|
1925 | $ rt --extra-config-opt extensions.purge= test-config-opt.t | |
|
1926 | running 1 tests using 1 parallel processes | |||
1856 | . |
|
1927 | . | |
1857 | # Ran 1 tests, 0 skipped, 0 failed. |
|
1928 | # Ran 1 tests, 0 skipped, 0 failed. |
General Comments 0
You need to be logged in to leave comments.
Login now