equal
deleted
inserted
replaced
578 $ cat > test-hghave.t <<EOF |
578 $ cat > test-hghave.t <<EOF |
579 > #require true |
579 > #require true |
580 > $ echo foo |
580 > $ echo foo |
581 > foo |
581 > foo |
582 > EOF |
582 > EOF |
583 $ run-tests.py test-hghave.t |
583 $ run-tests.py $HGTEST_RUN_TESTS_PURE test-hghave.t |
584 . |
584 . |
585 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
585 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
586 |
586 |
587 test that RUNTESTDIR refers the directory, in which `run-tests.py` now |
587 test that RUNTESTDIR refers the directory, in which `run-tests.py` now |
588 running is placed. |
588 running is placed. |
597 > $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py |
597 > $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py |
598 > #!/usr/bin/env python |
598 > #!/usr/bin/env python |
599 > # |
599 > # |
600 > # check-code - a style and portability checker for Mercurial |
600 > # check-code - a style and portability checker for Mercurial |
601 > EOF |
601 > EOF |
602 $ run-tests.py test-runtestdir.t |
602 $ run-tests.py $HGTEST_RUN_TESTS_PURE test-runtestdir.t |
603 . |
603 . |
604 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
604 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
605 |
605 |
606 #if execbit |
606 #if execbit |
607 |
607 |
614 $ chmod +x custom-command.sh |
614 $ chmod +x custom-command.sh |
615 $ cat > test-testdir-path.t <<EOF |
615 $ cat > test-testdir-path.t <<EOF |
616 > $ custom-command.sh |
616 > $ custom-command.sh |
617 > hello world |
617 > hello world |
618 > EOF |
618 > EOF |
619 $ run-tests.py test-testdir-path.t |
619 $ run-tests.py $HGTEST_RUN_TESTS_PURE test-testdir-path.t |
620 . |
620 . |
621 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
621 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
622 |
622 |
623 #endif |
623 #endif |
624 |
624 |
626 $ cat > test-very-slow-test.t <<EOF |
626 $ cat > test-very-slow-test.t <<EOF |
627 > #require slow |
627 > #require slow |
628 > $ echo pass |
628 > $ echo pass |
629 > pass |
629 > pass |
630 > EOF |
630 > EOF |
631 $ run-tests.py test-very-slow-test.t |
631 $ run-tests.py $HGTEST_RUN_TESTS_PURE test-very-slow-test.t |
632 s |
632 s |
633 Skipped test-very-slow-test.t: skipped |
633 Skipped test-very-slow-test.t: skipped |
634 # Ran 0 tests, 1 skipped, 0 warned, 0 failed. |
634 # Ran 0 tests, 1 skipped, 0 warned, 0 failed. |
635 $ run-tests.py --allow-slow-tests test-very-slow-test.t |
635 $ run-tests.py $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t |
636 . |
636 . |
637 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |
637 # Ran 1 tests, 0 skipped, 0 warned, 0 failed. |