README.testsuite 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. automatic testsuite for rsync -*- text -*-
  2. We're trying to develop some more substantial tests to prevent rsync
  3. regressions. Ideally, all code changes or bug reports would come with
  4. an appropriate test suite.
  5. You can run these tests by typing "make check" in the build directory.
  6. The tests will run using the rsync binary in the build directory, so
  7. you do not need to do "make install" first. Indeed, you probably
  8. should not install rsync before running the tests.
  9. If you instead type "make installcheck" then the suite will test the
  10. rsync binary from its installed location (e.g. /usr/local/bin/rsync).
  11. You can use this to test a distribution build, or perhaps to run a new
  12. test suite against an old version of rsync. Note that in accordance
  13. with the GNU Standards, installcheck does not look for rsync on the
  14. path.
  15. If the tests pass, you should see a report to that effect. Some tests
  16. require being root or some other precondition, and so will normally not
  17. be checked -- look at the test scripts for more information.
  18. If the tests fail, you will see rather more output. The scratch
  19. directory will remain in the build directory. It would be useful if
  20. you could include the log messages when reporting a failure.
  21. These tests also run automatically on the build farm, and you can see
  22. the results on http://build.samba.org/.